provider/maas: StopInstances may fail if nodes are removed out of band

Bug #1319016 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Low
Michael Foord

Bug Description

The MAAS "release" operation will fail if any of the specified nodes are unknown. We should either parse the error and retry with the known IDs (ignoring unknown; we call release on StopInstances), or request an option in MAAS to ignore unknown IDs.

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

Some more info that may be relevant here.

<bigjools> folks, when juju destroys an environment, does it keep issuing commands to destroy individual machines if it later notices that one is not in the state it expected (ie getting destroyed)? This might be provider-specific, in which case I'm talking about maas.
<bigjools> axw: you worked on the maas provider recently :) --^
<axw> bigjools: I'll check what it does
* xwwt has quit (Ping timeout: 260 seconds)
<bigjools> cheers
<axw> I think it issues a single release call
<axw> bigjools: http://pad.lv/1319016
<axw> it does a single release API call
<axw> bigjools: why do you ask?
<bigjools> axw: because https://bugs.launchpad.net/maas/+bug/1381619
<mup> Bug #1381619: Failed to destroy-environment when node is in commissioning or new state <cloud-installer> <oil> <juju-core:Triaged> <MAAS:Triaged> <https://launchpad.net/bugs/1381619>
<bigjools> axw: ignore the bug title, look at what greg posted
<bigjools> I'll need to explain some background perhaps:
<bigjools> we added some more states. It used to go from ALLOCATED straight to READY as soon as an API call was issued to release the node, however now it goes via a RELEASING state
<bigjools> but because this broke some API users, we folded RELEASING into ALLOCATED so that API users never see it
<bigjools> I wondered if juju was issuing a release call, and still seeing ALLOCATED when in reality it's RELEASING, so juju issues another release?

Revision history for this message
Michael Foord (mfoord) wrote :
Michael Foord (mfoord)
Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.22
Changed in juju-core:
assignee: nobody → Michael Foord (mfoord)
Curtis Hovey (sinzui)
Changed in juju-core:
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.