Source side post Live Migration Logic cannot disconnect multipath iSCSI devices cleanly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Jeegn Chen | ||
Juno |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When a volume is attached to a VM in the source compute node through multipath, the related files in /dev/disk/by-path/ are like this
stack@ubuntu-
/dev/disk/
/dev/disk/
The information on its corresponding multipath device is like this
stack@ubuntu-
3600601602ba034
size=1.0G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 19:0:0:24 sdl 8:176 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
`- 18:0:0:24 sdj 8:144 active undef running
But when the VM is migrated to the destination, the related information is like the following example since we CANNOT guarantee that all nodes are able to access the same iSCSI portals and the same target LUN number. And the information is used to overwrite connection_info in the DB before the post live migration logic is executed.
stack@ubuntu-
/dev/disk/
/dev/disk/
stack@ubuntu-
3600601602ba034
size=1.0G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 19:0:0:100 sdf 8:176 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
`- 18:0:0:100 sdg 8:144 active undef running
As a result, if post live migration in source side uses <IP>, <IQN> and <TARGET LUN Number> to find the devices to clean up, it may use 192.168.3.51, iqn.1992-
However, the correct one should be 192.168.3.50, iqn.1992-
Similar philosophy in (https:/
[Test Case]
Live migrate an instance which uses iSCSI multipath. Verify the correct target is removed on source hypervisor.
[Regression Potential]
Not much, its included in the next release (Juno). The change introduces a check to use a field already used by fiber multipath connections which was not used by iscsi multipath code path on cleanup. If it fails it would keep remaining behavior of not cleaning up iscsi sessions/paths.
Related branches
Changed in nova: | |
assignee: | nobody → Jeegn Chen (jeegn-chen) |
description: | updated |
Changed in nova: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-1 → 2015.1.0 |
description: | updated |
tags: | removed: in-stable-juno |
tags: |
added: in-stable-juno verification-done removed: verification-needed |
Fix proposed to branch: master /review. openstack. org/114539
Review: https:/