destroy-environment hangs if it cannot connect to the API server

Bug #1309441 reported by John A Meinel
14
This bug affects 3 people
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://10.0.3.1:17070/"
2014-04-18 09:42:11 DEBUG juju.state.api apiclient.go:204 error dialing "wss://10.0.3.1:17070/", will retry: websocket.Dial wss://10.0.3.1:17070/: dial tcp 10.0.3.1:17070: connection refused

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.)

Revision history for this message
John A Meinel (jameinel) wrote :

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.

tags: added: destroy-environment ui
Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Medium
Revision history for this message
James Troup (elmo) wrote :

This looks like a duplicate of LP #1413052

Revision history for this message
Anastasia (anastasia-macmood) wrote :

There have been a lot of changes in the area, especially for both -destroy-model and -controller equivalent. We believe this to be resolved.

If you are still seeing issues with Juju2, please file a bug on "juju" launchpad project with newer logs.

Changed in juju-core:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.