azure-cli: Azure CLI Commands Hang - Possibly due to telemetry_upload.py
I am currently running docker containers that execute azure cli commands. Some of the azure cli commands involve “az group create” / “az group deploy” / “az vm create” / “az vm extension set” etc. It is not all the time, but these commands hang at times.
Delving deeper into the processes that are being run, I found many such following processes by running htop.
113 jenkins 20 0 93708 18324 3152 S 0.0 0.1 0:00.38 /usr/lib/python2.7/site-packages/azure/cli/core/telemetry_upload.pyc
These processes run for hours at times. When I kill these processes, my scripts and commands continue so I believe there is some connection to my scripts hanging due to these telemetry_upload calls.
I saw that there used to be issues with the telemetry_upload in the past, but I thought that the issues were patched. Can I get some eyes on this possible issue?
This situation has been happening for the past week and hitting a stumping point.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version
) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Installation Method:
pip install azure-cli
Environment that uses the azure-cli: Docker Containers
CLI version
azure-cli (2.0.31)
acr (2.0.23)
acs (2.0.31)
advisor (0.5.1)
appservice (0.1.31)
backup (1.1.1)
batch (3.2.0)
batchai (0.2.0)
billing (0.1.8)
cdn (0.0.14)
cloud (2.0.13)
cognitiveservices (0.1.12)
command-modules-nspkg (2.0.1)
configure (2.0.15)
consumption (0.3.0)
container (0.1.22)
core (2.0.31)
cosmosdb (0.1.20)
dla (0.0.19)
dls (0.0.21)
eventgrid (0.1.12)
eventhubs (0.1.2)
extension (0.0.12)
feedback (2.1.1)
find (0.2.9)
interactive (0.3.19)
iot (0.1.19)
keyvault (2.0.21)
lab (0.0.21)
monitor (0.1.5)
network (2.0.28)
nspkg (3.0.2)
profile (2.0.22)
rdbms (0.2.1)
redis (0.2.12)
reservations (0.1.2)
resource (2.0.27)
role (2.0.22)
servicebus (0.1.2)
servicefabric (0.0.12)
sql (2.0.25)
storage (2.0.31)
vm (2.0.30)
Python location '/usr/bin/python'
Extensions directory '/jenkins/.azure/cliextensions'
Python (Linux) 2.7.14 (default, Feb 22 2018, 22:05:16)
[GCC 6.2.1 20160822]
Legal docs and information: aka.ms/AzureCliLegal
Linux 5df116efa954 3.10.0-514.21.2.el7.x86_64 #1 SMP Tue Jun 20 12:24:47 UTC 2017 x86_64 GNU/Linux```
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (8 by maintainers)
thanks for the information @steveyang95 . the blocking is at the
client.flush()
where the application insight is blocked trying to transmit data. I’ll see what I can do.