High CPU usage telemetry_upload.py when no internet connection
See original GitHub issueI lost internet connectivity while our software was trying to run az
for keyvault lookups. Then this happened:
Environment summary
az --version = 2.0.17
Windows 10 v1607 (OS Build 14393.1944)
Full command-line for one of those processes:
"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core\telemetry_upload.py" "[{\"name\": \"azurecli/commands/keyvault-secret-show\", \"properties\": {\"Reserved.DataModel.EntityType\": \"UserTask\", \"Reserved.DataModel.Action.Type\": \"Atomic\", \"Reserved.DataModel.Action.Result\": \"Failure\", \"Reserved.ChannelUsed\": \"AI\", \"Reserved.EventId\": \"c1ff0ae4-b3d5-4218-823c-dcb91db4dc26\", \"Reserved.SequenceNumber\": 1, \"Reserved.SessionId\": \"a1cee7d3-0840-4ffd-a406-4dbc10d725d7\", \"Reserved.TimeSinceSessionStart\": 0, \"Reserved.DataModel.Source\": \"DataModelAPI\", \"Reserved.DataModel.EntitySchemaVersion\": 4, \"Reserved.DataModel.Severity\": 0, \"Reserved.DataModel.ProductName\": \"azurecli\", \"Reserved.DataModel.FeatureName\": \"commands\", \"Reserved.DataModel.EntityName\": \"keyvault-secret-show\", \"Reserved.DataModel.CorrelationId\": \"6f619da6-dd28-4192-bdca-cede461a046c\", \"Context.Default.VS.Core.ExeName\": \"azurecli\", \"Context.Default.VS.Core.ExeVersion\": \"2.0.16@none\", \"Context.Default.VS.Core.MacAddressHash\": \"5da9c032f0f44a0c1510177db732ab61c521995612e7777d6d52385e0782de2e\", \"Context.Default.VS.Core.Machine.Id\": \"5da9c032-f0f4-4a0c-1510-177db732ab61\", \"Context.Default.VS.Core.OS.Type\": \"windows\", \"Context.Default.VS.Core.OS.Version\": \"10.0.14393\", \"Context.Default.VS.Core.User.Id\": \"6d047a0a-98c9-11e7-832e-6c4008a83ec5\", \"Context.Default.VS.Core.User.IsMicrosoftInternal\": \"False\", \"Context.Default.VS.Core.User.IsOptedIn\": \"True\", \"Context.Default.VS.Core.TelemetryApi.ProductVersion\": \"azurecli@2.0.16\", \"Context.Default.AzureCLI.Source\": \"az\", \"Context.Default.AzureCLI.ClientRequestId\": \"e9249d12-f61f-11e7-b16d-6c4008a83ec4\", \"Context.Default.AzureCLI.CoreVersion\": \"2.0.16\", \"Context.Default.AzureCLI.InstallationId\": \"6d047a0a-98c9-11e7-832e-6c4008a83ec5\", \"Context.Default.AzureCLI.ShellType\": \"cmd\", \"Context.Default.AzureCLI.UserAzureId\": \"42fb4f40fed79ba0dac131b56a0ffc9890ea8e9158cbb2ce3a156c54f8f8ec4c\", \"Context.Default.AzureCLI.UserAzureSubscriptionId\": \"00abbc18-78e7-4052-9a0f-84076b2737f3\", \"Context.Default.AzureCLI.DefaultOutputType\": \"unknown\", \"Context.Default.AzureCLI.EnvironmentVariables\": \"[]\", \"Context.Default.AzureCLI.Locale\": \"en_US,cp1252\", \"Context.Default.AzureCLI.StartTime\": \"2018-01-10 11:04:17.395925\", \"Context.Default.AzureCLI.EndTime\": \"2018-01-10 11:04:18.271566\", \"Context.Default.AzureCLI.OutputType\": \"tsv\", \"Context.Default.AzureCLI.Parameters\": \"--vault-name,-n,--query,-o\", \"Context.Default.AzureCLI.PythonVersion\": \"3.6.1\"}}, {\"name\": \"azurecli/commands/outer-exception\", \"properties\": {\"Reserved.DataModel.EntityType\": \"Fault\", \"Reserved.DataModel.Fault.Description\": \"Unexpected exception caught during application execution.\", \"Reserved.DataModel.Correlation.1\": \"6f619da6-dd28-4192-bdca-cede461a046c,UserTask,\", \"Reserved.DataModel.Fault.TypeString\": \"CLIError\", \"Reserved.DataModel.Fault.Exception.Message\": \"Max retries exceeded attempting to connect to vault. The vault may not exist or you may need to flush your DNS cache and try again later.\", \"Reserved.DataModel.Fault.Exception.StackTrace\": \"[_site-packages\\\\azure\\\\cli\\\\main.py_, line 36, in main\\n cmd_result = APPLICATION.execute(args)\\n_, _site-packages\\\\azure\\\\cli\\\\core\\\\application.py_, line 212, in execute\\n result = expanded_arg.func(params)\\n_, _site-packages\\\\azure\\\\cli\\\\core\\\\commands\\\\__init__.py_, line 377, in __call__\\n return self.handler(*args, **kwargs)\\n_, _site-packages\\\\azure\\\\cli\\\\command_modules\\\\keyvault\\\\_command_type.py_, line 94, in _execute_command\\n raise CLIError(\\_Max retries exceeded attempting to connect to vault. \\_\\n_]\", \"Reserved.ChannelUsed\": \"AI\", \"Reserved.EventId\": \"a275e012-488d-4f11-adc2-81616363ecef\", \"Reserved.SequenceNumber\": 1, \"Reserved.SessionId\": \"a1cee7d3-0840-4ffd-a406-4dbc10d725d7\", \"Reserved.TimeSinceSessionStart\": 0, \"Reserved.DataModel.Source\": \"DataModelAPI\", \"Reserved.DataModel.EntitySchemaVersion\": 4, \"Reserved.DataModel.Severity\": 0, \"Reserved.DataModel.ProductName\": \"azurecli\", \"Reserved.DataModel.FeatureName\": \"commands\", \"Reserved.DataModel.EntityName\": \"keyvault-secret-show\", \"Reserved.DataModel.CorrelationId\": \"4a1d649c-a77b-45b0-ab59-8a890e2ab7a1\", \"Context.Default.VS.Core.ExeName\": \"azurecli\", \"Context.Default.VS.Core.ExeVersion\": \"2.0.16@none\", \"Context.Default.VS.Core.MacAddressHash\": \"5da9c032f0f44a0c1510177db732ab61c521995612e7777d6d52385e0782de2e\", \"Context.Default.VS.Core.Machine.Id\": \"5da9c032-f0f4-4a0c-1510-177db732ab61\", \"Context.Default.VS.Core.OS.Type\": \"windows\", \"Context.Default.VS.Core.OS.Version\": \"10.0.14393\", \"Context.Default.VS.Core.User.Id\": \"6d047a0a-98c9-11e7-832e-6c4008a83ec5\", \"Context.Default.VS.Core.User.IsMicrosoftInternal\": \"False\", \"Context.Default.VS.Core.User.IsOptedIn\": \"True\", \"Context.Default.VS.Core.TelemetryApi.ProductVersion\": \"azurecli@2.0.16\", \"Context.Default.AzureCLI.Source\": \"az\", \"Context.Default.AzureCLI.ClientRequestId\": \"e9249d12-f61f-11e7-b16d-6c4008a83ec4\", \"Context.Default.AzureCLI.CoreVersion\": \"2.0.16\", \"Context.Default.AzureCLI.InstallationId\": \"6d047a0a-98c9-11e7-832e-6c4008a83ec5\", \"Context.Default.AzureCLI.ShellType\": \"cmd\", \"Context.Default.AzureCLI.UserAzureId\": \"42fb4f40fed79ba0dac131b56a0ffc9890ea8e9158cbb2ce3a156c54f8f8ec4c\", \"Context.Default.AzureCLI.UserAzureSubscriptionId\": \"00abbc18-78e7-4052-9a0f-84076b2737f3\", \"Context.Default.AzureCLI.DefaultOutputType\": \"unknown\", \"Context.Default.AzureCLI.EnvironmentVariables\": \"[]\", \"Context.Default.AzureCLI.Locale\": \"en_US,cp1252\", \"Context.Default.AzureCLI.StartTime\": \"2018-01-10 11:04:17.395925\", \"Context.Default.AzureCLI.EndTime\": \"2018-01-10 11:04:18.271566\", \"Context.Default.AzureCLI.OutputType\": \"tsv\", \"Context.Default.AzureCLI.Parameters\": \"--vault-name,-n,--query,-o\", \"Context.Default.AzureCLI.PythonVersion\": \"3.6.1\"}}]"
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Problem with high CPU usage and Disk usage when i connect ...
I have a problem since 1 month with my Laptop which is running windows 8.1, when i connect to internet (turn on WiFi...
Read more >How to Fix High CPU Usage - Intel
Find out all the reasons why your PC displays high CPU usage. Our step-by-step guide will show you how to fix your CPU...
Read more >How to Lower CPU Usage: Common Causes & Tips - N-able
The symptoms of high CPU usage are familiar: the cursor moves jerkily and slowly, and applications begin to lag or shut down.
Read more >Troubleshooting High CPU Utilization - Cisco
The CPU utilization history shows when the CPU is consistently receiving network packets, but it does not show the cause. Enter the Cisco...
Read more >high CPU usage, even with no tabs opened - Mozilla Support
Hi Firefox start to take a lot of CPU depending on how many tabs are opened (that is normal of course especially if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will close this issue since it was addressed in a recent build. Please feel free to reopen if it is an issue in the latest build.
The fix is here: https://github.com/Azure/azure-cli/pull/4992