failed attach leaves stale iSCSI session on compute host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Version: 2012.1~
I attempted to attach an iSCSI volume to one of my instances. This
failed because I specified /dev/vdb as the device, which was in use.
Any further attempts to attach the volume then also failed. When I
inspected nova-compute.log, I discovered the following at the end
(full log attached):
(nova.rpc.common): TRACE: Stdout: 'Logging in to [iface: default, target: iqn.2010-
(nova.rpc.common): TRACE: Stderr: 'iscsiadm: Could not login to [iface: default, target: iqn.2010-
I guessed from this that the previous failed attach had left the iSCSI
session up and that nova-compute wasn't able to deal with this. I logged
into the compute node, removed it with "iscsiadm --mode node
--targetname iqn.2010-
YY.YY.YY.15:3260 --logout" and was then able to attach the volume
to my instance.
I believe this has since been fixed: https:/ /review. openstack. org/#change, 4611
This may be a duplicate of bug #914974.
Paul, can you test on a more recent version of nova if you have access to such a deployment? Using the latest trunk I was unable to reproduce.