Comment 19 for bug 1443977

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Steps:
1. Deploy environment of released MOS 7.0 (MirantisOpenStack-7.0.iso) and install MU1 updates repos.
Settings:
Kilo on Ubuntu 14.04
1 controller, 1 compute, 1 cinder node.
Cinder LVM over iSCSI for volumes, Neutron VLAN, QEMU

2. SSH to compute node.
3. Configure "iscsi_use_multipath=True" in [libvirt] section of /etc/nova/nova.conf on compute node.
4. Then restart nova-compute service.
5. Launch an instance.
6. Create 3 volumes and attach them to instance.
7. Check iscsiadm and multipath:
root@node-5:/var/log/nova# iscsiadm --mode session ; multipath -ll
tcp: [1] 192.168.1.1:3260,1 iqn.2010-10.org.openstack:volume-022fbe38-6605-4033-9214-f5fe0ae99821
tcp: [2] 192.168.1.1:3260,1 iqn.2010-10.org.openstack:volume-0b632367-4a2d-4252-9fa7-9a3fcd73efda
tcp: [3] 192.168.1.1:3260,1 iqn.2010-10.org.openstack:volume-241b85e5-f87a-4902-bc2e-7efb67d7e93e
33000000300000001 dm-5 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 4:0:0:1 sdc 8:32 active ready running
33000000100000001 dm-3 IET,VIRTUAL-DISK
size=3.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 2:0:0:1 sda 8:0 active ready running
33000000200000001 dm-4 IET,VIRTUAL-DISK
size=2.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 3:0:0:1 sdb 8:16 active ready running

8. Detach volumes from instance one by one.
9. Recheck iscsiadm and multipath:
root@node-5:/var/log/nova# iscsiadm --mode session ; multipath -ll
iscsiadm: No active sessions.
33000000300000001 dm-5 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=enabled
  `- #:#:#:# - #:# failed faulty running
33000000100000001 dm-3 ,
size=3.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=enabled
  `- #:#:#:# - #:# failed faulty running
33000000200000001 dm-4 ,
size=2.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=enabled
  `- #:#:#:# - #:# failed faulty running

As we can see IQNs was closed, but volumes stuck in multipath list with faulty condition.