application in error state cannot be removed and blocks destroy-model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth | ||
2.1 |
Fix Released
|
High
|
Ian Booth |
Bug Description
I managed to fail to provision the first machine for a new application, and got into this error:
$ juju status
Model Controller Cloud/Region Version
default test-jam maas21 2.1-rc1.1
App Version Status Scale Charm Store Rev OS Notes
ubuntu error 0/1 ubuntu jujucharms 10 ubuntu
Unit Workload Agent Machine Public address Ports Message
ubuntu/0 error lost cannot add a new machine: unexpected: ServerError: 503 Service Unavailable (<!DOCTYPE HTML PUBLIC "-/
...
Machine State DNS Inst id Series AZ
(note we have a separate problem where the error string is a full HTML response.)
At this point, there are no machines for this application, nor even any functional units of the application. So there are no machines that I can "remove-machine --force".
I did try "juju resolved --no-retry ubuntu/0" and the unit goes into 'resolved' status (trying to run it again tells me it is in the resolved state already), but it doesn't change status output.
$ juju remove-application ubuntu
Does return a successful code, but doesn't seem to do anything, and there is no '--force' for remove-application.
Both "juju destroy-model" and "juju destroy-controller" get stuck waiting for that application to die.
Changed in juju: | |
milestone: | none → 2.2.0-alpha1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Caught a similar issue: after running 'remove- application' a machine and its corresponding unit got destroyed but not the application itself which just hangs in the 'waiting' state.
https:/ /paste. ubuntu. com/23921449/ (see zaqar's state)
(package versions are included in the paste)
2.1~beta4- 0ubuntu1~ 16.04.1~ juj