destroy-environment hangs if it cannot connect to the API server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I know we want to teardown gracefully when we can, but I just ran "juju destroy-environment -y local" and it stuck there for at least 5 minutes.
I ^C and ran it again with --debug and it is spinning on:
2014-04-18 09:42:11 INFO juju.state.api apiclient.go:198 dialing "wss://
2014-04-18 09:42:11 DEBUG juju.state.api apiclient.go:204 error dialing "wss://
I don't mind if it retries for a bit, but even 5 minutes is a bit long, and I certainly would expect it to eventually give up and at least prompt that I might want to use "--force". (I don't mind terribly if it doesn't do it itself, since maybe you need to investigate why things aren't running like you thought they were.)
Changed in juju-core: | |
importance: | High → Medium |
I just ran into this again, and wanted to file it again. Good thing my browser history remembered it.
Really, the command just sits there blankly forever, which is bad UI.