Machine not getting removed

Bug #1799303 reported by Casey Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

I have a machine that's stuck in a staging model on a 2.4.3 controller (prodstack-is). I've tried `juju remove-machine 21` and `juju remove-machine 21 --force` many times, but the machine is not getting removed. I also tried shutting down the instance and removing it with nova, no luck.

(mojo-stg-omnibus)stg-omnibus@wendigo:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
stg-omnibus prodstack-is prodstack-45/bootstack-ps45 2.4.3 unsupported 21:23:45Z
...
Machine State DNS Inst id Series AZ Message
...
21 stopped 10.50.144.24 4a3bb491-733e-46d3-a7cc-89a8e7acc5cb xenial prodstack-zone-1 ACTIVE
...

Revision history for this message
Casey Marshall (cmars) wrote :

Ok, more background on this...

There was storage previously attached to the unit that was placed onto this machine.

I removed the unit, but never removed the storage that was attached to it. The unit went into dying state and eventually removed, but the machine was stuck in a "stopped" state.

I noticed the storage left behind by this unit, removed it, and the machine promptly died and Juju cleaned it up.

So, I think this is still a bug, but there is a potential workaround worth documenting here, in case anyone gets into a similar predicament: if you have a machine that doesn't die, check to make sure the storage that was attached to it is also removed.

Revision history for this message
Casey Marshall (cmars) wrote :
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.5-beta1
status: New → Triaged
importance: Undecided → High
Changed in juju:
milestone: 2.5-beta1 → 2.5-beta2
Revision history for this message
Ian Booth (wallyworld) wrote :

Sometimes the cloud can encounter errors removing / detaching storage. The way forward is to manually fix the issue, but as you say, Juju needs to surface this better to allow to user to act. On that basis, and given what was done to resolve the problem, I'll mark this as a dup of bug 1734287

Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5-beta2 → 2.5-beta3
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.