Invalid storage prevents machine removal

Bug #1518480 reported by Ian Booth
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Andrew Wilkins

Bug Description

When adding storage that is invalid (over size limits) juju can no longer remove the machine.

For example:

juju switch amazon
juju bootstrap
juju deploy cs:~chris.macnaughton/trusty/ceph-osd --storage "osd-devices=ebs,2T,1"
juju destroy-service ceph-osd

Juju hangs on destroying the machine that the bad storage was added to.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

shouldn't be able to add invalid storage in the first place (lp:1501709), but it certainly should not pin the machine either

Changed in juju-core:
milestone: 1.26-beta1 → 2.0-alpha2
Changed in juju-core:
milestone: 2.0-alpha2 → 2.0-alpha3
Changed in juju-core:
milestone: 2.0-alpha3 → 2.0-beta4
tags: added: 2.0-count
Changed in juju-core:
milestone: 2.0-beta4 → 2.0.1
affects: juju-core → juju
Changed in juju:
milestone: 2.0.1 → none
milestone: none → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Barry Price (barryprice)
tags: added: canonical-is
Tim Penhey (thumper)
tags: added: new-york
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.3-beta2
Revision history for this message
Andrew Wilkins (axwalk) wrote :

This was actually fixed in 2.3-beta1 (or earlier? I *think* that release though.)

I confirmed with:

 - juju bootstrap aws
 - juju deploy postgresql --storage pgdata=ebs,2T
 (wait for machine to be provisioned; storage fails to provision as expected)
 - juju remove-application postgresql
 (postgresql application, unit and machine are all removed; failed storage remains)
 - juju remove-storage pgdata/0
 (pgdata/0 storage is removed from model)
 - juju destroy-controller -y ...

Changed in juju:
status: Triaged → Fix Committed
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Paul Gear (paulgear) wrote :

@axw: Will machines in this state be correctly cleaned up after the controller is upgraded to 2.3?

Revision history for this message
Andrew Wilkins (axwalk) wrote :

@paulgear I tried to reproduce the issue with 2.0.1, and couldn't. So I don't know. Do you have any affected models? And reproduction steps?

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.