Destroying a service in error state fails silently
Bug #1168154 reported by
Madison Scott-Clary
This bug report is a duplicate of:
Bug #1183309: destroy-service should have a force option.
Edit
Remove
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Triaged
|
Low
|
Unassigned |
Bug Description
If a service fails to deploy, it cannot be destroyed.
To reproduce:
1. Bootstrap
2. Deploy buildbot-master
3. Watch debug-log for install hook failure
4. Destroy buildbot-master
This should really be handled with a --force flag for destroy-service, as in lp:1183309 et al, but it could possibly be mitigated as described in the comments.
Changed in juju-core: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in juju-core: | |
status: | Confirmed → In Progress |
status: | In Progress → Confirmed |
tags: | added: destroy-service |
To post a comment you must log in.
Sounds to me like "working as intended". You need to resolve the install error (`juju resolved buildbot-master/0`) to unblock the unit and allow it to complete its lifecycle. Am I missing something?
There is a case to be made that we could somewhat extend the range of situations in which unit.Destroy directly removes the unit, so that it's considered fair game up until the first moment the agent sets status -- is this what you're looking for?
I am much more concerned about the buildbot failure, though. Do you know anything about its cause?