Skip to content

az vm extension set: LRO polling hangs indefinitely #755

Description

This is a worse manifestation of #596

az vm extension set -n CustomScriptForLinux --publisher Microsoft.OSTCExtensions --auto-upgrade-minor-version -g ahmet-test --vm-name ub16 --settings '{"commandToExecute":"date"}'

This command normally takes 1-2 minutes to complete...

Start this command and wait 3 seconds and start hitting ctrl+c, you won't be able to exit it.

➜  ~ az vm extension set -n CustomScriptForLinux --publisher Microsoft.OSTCExtensions --auto-upgrade-minor-version -g ahmet-test --vm-name ub16 --settings '{"commandToExecute":"date"}'
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z
^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z

I had to stop the process using OS X kill command.

I encourage you to try this, mostly because my az is aliased to docker run --rm -i -t [...] az and it might be a signal handling issue in az CLI (docker sends SIGTERM on Ctrl+C) or might be some signal forwarding issue in Docker CLI. So I'm not 100% sure if the problem is isolated to az CLI.

You should be able to repro this easily on Linux/OS X outside container if it's an az CLI issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions