instances cannot be deleted if missing instance_info elements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Critical
|
Jim Rollenhagen |
Bug Description
After migrating a running instance from nova-bm -> ironic, the instance cannot be deleted in nova. Doing so results in the following:
er': u'ironic', u'request_id': u'req-50ba4550-
2014-09-12 22:32:47.751 9395 DEBUG ironic.
2014-09-12 22:32:47.751 9395 DEBUG ironic.
2014-09-12 22:32:53.216 9395 DEBUG oslo.messaging.
2014-09-12 22:32:53.217 9395 WARNING ironic.
2014-09-12 22:32:53.221 9395 DEBUG oslo.messaging.
Traceback (most recent call last):
File "/usr/local/
timer()
File "/usr/local/
cb(*args, **kw)
File "/usr/local/
result = function(*args, **kwargs)
File "/usr/local/
node.
File "/usr/local/
six.
File "/usr/local/
task.
File "/usr/local/
pxe_info = _get_image_
File "/usr/local/
d_info = _parse_
File "/usr/local/
info.
File "/usr/local/
deploy_
File "/usr/local/
{'error_msg': error_msg, 'missing_info': missing_info})
MissingParamete
summary: |
- intsances cannot be deleted after migration from nova-bm + instances cannot be deleted after migration from nova-bm, missing + instance_info elements |
Changed in ironic: | |
importance: | Undecided → High |
milestone: | none → juno-rc1 |
Changed in ironic: | |
status: | New → Confirmed |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | juno-rc1 → 2014.2 |
Two issues here caused by missing or incorrect instance_info data after running the ironic- nova-bm- migrate script:
* nova-bm uses root_mb, ironic uses root_gb but there is no conversion happening. Same issue /w ephemeral_mb vs ephemeral_gb, though that wouldn't cause issues here.
* 'image_source' is missing entirely from the node's instance info, it was never migrated to being with. The nova-bm table contains no reference to the image associated with booted instances. To migrate this from nova along with the other data, the migration script would need to also query the nova database directly