destroy-model does not work when charm is stuck in upgrading state

Bug #1671476 reported by Sandor Zeestraten
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Anastasia

Bug Description

# Versions
Juju 2.1.1
MAAS 2.1.3

# Issue
Destroying a model which contains a charm stuck in a permanent upgrading state (see #1671428) does not work.
Running "juju destroy-model" will simply hang while outputting "Waiting on model to be removed, ..."

remove-application, remove-unit and remove-machine do not work.

# Workaround
Killing the controller is the only thing that worked.

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.2.0
Changed in juju:
milestone: 2.2-beta2 → 2.2-beta3
Revision history for this message
John A Meinel (jameinel) wrote :

bug #1671428 is a special case because the database itself was corrupted for the information about the charm. We cannot change anything related to the unit because the database records themselves are broken.

If it is still true that a unit that has a hook error is able to block destroy-model, then we should address this more significantly.

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

Destroy-model failure has been fixed as part of PR https://github.com/juju/juju/pull/7218, against develop (2.2).

If you are still observing a failure, please provide a re-producible scenario.

Changed in juju:
status: Triaged → Fix Committed
assignee: nobody → Anastasia (anastasia-macmood)
Changed in juju:
status: Fix Committed → 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.