terminate instances boot from volume used multipath have residual device
Bug #1402535 reported by
YaoZheng_ZTE
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
ugvddm |
Bug Description
Reproducing method as following:
1、nova.conf configure iscsi_used_
2、launch instance vm1 boot from volume(used HpSan),then attach volume1 for this vm1
3、launch instance vm2 boot from volume(used HpSan),then attach volume2 for this vm2 at the same host
4、terminate vm2
5、vm2 has been destoryed , but /dev/disk/by-path/ device can not be completely removed
summary: |
- terminate instances boot from volume used multipath have esidual + terminate instances boot from volume used multipath have residual device |
tags: | added: libvirt volumes |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → ugvddm (271025598-9) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-2 → 12.0.0 |
To post a comment you must log in.
the reason for this issue : manager. py _shutdown_instance function : libvirt/ volume. py _disconnect_ volume_ multipath_ iscsi function , can run self._rescan_ iscsi() ,because the first volume has not removed san's mapping group yet ,so recsan the first device . so when the vm have destoryed, but the first device is residual . 1-13-SBCJ cinder( keystone_ admin)] # ll /dev/disk/by-path/ 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 0 -> ../../sdb 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 1 -> ../../sdc 1-13-SBCJ cinder( keystone_ admin)] # ll /dev/disk/by-path/ 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 0 -> ../../sdb 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 1 -> ../../sdc 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 2 -> ../../sdd 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 3 -> ../../sde
in /nova/compute/
first, query one instances's two volume, then disconnect volume and delete /dev/disk/by-path/ device.
disconnect the first volume is ok , but the first volume is not removed from san's mapping group, so when disconnect the second volume , in /nova/virt/
Reproducing as following:
1、 launch instance vm1 boot from volume(used HpSan),then attach volume1 for this vm1. /dev/disk/by-path/ as following:
[root@2c514-
total 0
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
2、 launch instance vm2 boot from volume(used HpSan),then attach volume2 for this vm2. /dev/disk/by-path/ as following:
[root@2c514-
total 0
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 19:49 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 19:49 ip-192.
3、terminat instances vm2, /dev/disk/by-path/ as following:
[root@2c514- 1-13-SBCJ cinder( keystone_ admin)] # ll /dev/disk/by-path/ 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 0 -> ../../sdb 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 1 -> ../../sdc 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 2 -> ../../sdd
total 0
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 18:41 ip-192.
lrwxrwxrwx 1 root root 9 Dec 13 19:49 ip-192.
the device ip-192. 14.1.232: 3260-iscsi- iqn.2099- 01.cn.com. zte:usp. spr-4c: 09:b4:b0: 02:30-lun- 2 should be deleted ,but now cannt be removed