Ironic: "nova delete" doesn't work when instance is spawning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
The "nova delete" command can be issued while the instance is spawning and even Ironic support aborting a deployment mid-operation (when node is in WAITDEPLOY state).
But if you issue a "nova delete" while the instance is spawming with the Ironic driver the instance will be stuck there and nothing will happen. That's because of a lock[1], basically the Ironic driver won't return from spawn() until the node have been successfully deployed or error out and that's holding the lock.
WORKAROUND:
As a work around, you can issue "nova delete" to the instance and that will mark the task_state as "deleting". And then you can delete the instance directly via the Ironic API as well by doing:
$ ironic node-set-
That will realease the instance.
Changed in nova: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
tags: | added: ironic |
Changed in nova: | |
importance: | Undecided → Medium |
summary: |
- Ironic: "nova delete" doesn't work when instance is spawming + Ironic: "nova delete" doesn't work when instance is spawning |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/182992
Review: https:/