Confirm migration fails when executed with "nova migrate" instead of "nova resize"
Bug #1136768 reported by
Alessandro Pilotti
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Smith |
Bug Description
Cold migration fails when executed with "nova migrate <id>" and followed by "nova resize-confirm <id>" or "nova resize-revert <id>" with the following error:
summary: |
- Confirm migration fails when run with "nova migrate" instead of "nova - resize" + Confirm migration fails when executed with "nova migrate" instead of + "nova resize" |
Changed in nova: | |
assignee: | nobody → Dan Smith (danms) |
importance: | Undecided → High |
milestone: | none → grizzly-rc1 |
status: | New → Confirmed |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Fei Long Wang (flwang) → Dan Smith (danms) |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
To post a comment you must log in.
This issue is caused by deleting the non-existed metadata with prefix "old_" in function confirm_resize().
Based on current implement, when calling "nova migrate <server>" with allow_resize_ to_same_ host=true and there is only one host, No metadata with prefix 'old_' will be saved. But on calling "resize-confirm", confirm_resize() will try to delete both the metadata with prefix 'old_' and 'new_ '. Then user will run into exception which said: "KeyError: 'old_instance_ type_memory_ mb'"
So I'm going to submit a fix to make sure the metadata with prefix "old_" will be savid in _finish_resize() to avoid the exception.