Device descriptor not removed with different iqn and multipath enabled.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Jorge Niedbalski | ||
Ubuntu |
New
|
Undecided
|
Jorge Niedbalski |
Bug Description
[Environment]
OpenStack Kilo
Trusty 14.04.4
[Description]
if the attached multipath devices doesn't have same iqn like regular lvm+iscsi backend, in_use will be false.
In that case,_disconnec
[Reproduction]
1) Enable cinder LVM ISCSI on /etc/cinder/
volume_
2) Enable iscsi_use_multipath on /etc/nova/nova.conf on your compute nodes:
iscsi_use_multipath = True
3) Create 3 cinder volumes
$ cinder create 1
$ cinder create 1
$ cinder create 1
$ cinder list
ubuntu@
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 10844be6-
| 1648d24c-
| 53d6bb4e-
+------
4) Attach them to nova
$ nova volume-attach instance_id 10844be6-
$ nova volume-attach instance_id 1648d24c-
$ nova volume-attach instance_id 53d6bb4e-
5) Check on the nova-compute unit for the current multipath/session status
tcp: [1] 10.5.1.43:3260,1 iqn.2010-
tcp: [2] 10.5.1.43:3260,1 iqn.2010-
tcp: [3] 10.5.1.43:3260,1 iqn.2010-
Multipath:
root@juju-
33000000300000001 dm-2 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 10:0:0:1 sdb 8:16 active ready running
33000000100000001 dm-0 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 8:0:0:1 sdg 8:96 active ready running
33000000200000001 dm-1 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 9:0:0:1 sda 8:0 active ready running
6) Detach the current volumes.
First.
ubuntu@
ubuntu@
33000000300000001 dm-2 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 10:0:0:1 sdb 8:16 active ready running
33000000100000001 dm-0 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
33000000200000001 dm-1 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 9:0:0:1 sda 8:0 active ready running
Second raises the faulty state
33000000300000001 dm-2 IET,VIRTUAL-DISK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 10:0:0:1 sdb 8:16 active ready running
33000000100000001 dm-0 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
33000000200000001 dm-1 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
Third, raises the faulty state also
sudo: unable to resolve host juju-1374999-
33000000300000001 dm-2 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
33000000100000001 dm-0 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
33000000200000001 dm-1 ,
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
`- #:#:#:# - #:# active faulty running
Manual fix.
root@juju-
root@juju-
root@juju-
Changed in nova: | |
status: | New → In Progress |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
description: | updated |
Changed in nova: | |
assignee: | Jorge Niedbalski (niedbalski) → Felipe Reyes (freyes) |
Changed in nova: | |
assignee: | Felipe Reyes (freyes) → nobody |
Changed in nova: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in ubuntu: | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
This issue seems same as bug 1374999, which has a patch by Felipe Reyes: /review. openstack. org/135382
https:/
The issue may be solved by the patch.