live-migration cinder boot volume target_lun id incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Anthony Lee | ||
Juno |
Fix Released
|
Undecided
|
Unassigned | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When nova goes to cleanup _post_live_
I can reproduce this 100% of the time with a cinder iSCSI backend, such as 3PAR.
This is a Fresh install on 2 new servers with no attached storage from Cinder and no VMs.
I create a cinder volume from an image.
I create a VM booted from that Cinder volume. That vm shows up on host1 with a LUN id of 0.
I live migrate that vm. The vm moves to host 2 and has a LUN id of 0. The LUN on host1 is now gone.
I create another cinder volume from image.
I create another VM booted from the 2nd cinder volume. The vm shows up on host1 with a LUN id of 0.
I live migrate that vm. The VM moves to host 2 and has a LUN id of 1.
_post_live_migrate is called on host1 to clean up, and gets failures, because it's asking cinder to delete the volume
on host1 with a target_lun id of 1, which doesn't exist. It's supposed to be asking cinder to detach LUN 0.
First migrate
HOST2
2014-03-04 19:02:07.870 WARNING nova.compute.
river_volume_type': u'iscsi', 'serial': u'83fb6f13-
, u'target_lun': 0, u'access_mode': u'rw'}}, 'disk_bus': u'virtio', 'device_type': u'disk', 'delete_
HOST1
2014-03-04 19:02:16.775 WARNING nova.compute.
u'serial': u'83fb6f13-
Second Migration
This is in _post_live_
2014-03-04 19:24:51.626 WARNING nova.compute.
summary: |
- live-migration cinder boot volume target_lun id + live-migration cinder boot volume target_lun id incorrect |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Rohan (kanaderohan) |
tags: | added: live-migrate |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Rohan (kanaderohan) → nobody |
status: | In Progress → New |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Bartosz Fic (bartosz-fic) |
tags: | added: volumess |
tags: |
added: volumes removed: volumess |
Changed in nova: | |
assignee: | Bartosz Fic (bartosz-fic) → Anthony Lee (anthony-mic-lee) |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-3 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/79368
Review: https:/