VMWare compute driver incorrectly attaches volumes on iSCSI for target with multiple LUNs

Bug #1373054 reported by Mikhail Kebich
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

VMWare compute driver incorrectly attaches volumes on iSCSI for target with multiple LUNs.

Driver handles only first LUN for the target with iqn retrieved from Cinder service to attach volume:

at nova.virt.vmwareapi.volumeops.VMwareVolumeOps._iscsi_get_target(self, data), line 169:
    for lun in target.lun:
        if 'host.ScsiDisk' in lun.scsiLun:
            scsi_lun_key = lun.scsiLun
            break

Thus, only one volume will be attached to VM, but multiple times (see in attachment).

Another problem is, when we detaching more than one iSCSI volume, the first volume could be detached, but the second one will fail, because the driver could not get the iSCSI target after detaching the first volume without any rescan operation.

Tags: vmware volumes
Revision history for this message
Mikhail Kebich (mkebich-deactivatedaccount) wrote :
description: updated
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Matt Riedemann (mriedem) wrote :

What version of nova was this reported against? Is this still an issue on stable/liberty or master (mitaka)?

Changed in nova:
status: Confirmed → Incomplete
Feng Xi Yan (yanfengxi)
Changed in nova:
assignee: nobody → Feng Xi Yan (yanfengxi)
status: Incomplete → Confirmed
Revision history for this message
weihongj (weihongj) wrote :

This problem is reproduce in a client demo environment. it's unacceptable. Only one iscsi lun can be assign to one vmware instance in on exsi server.

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Feng Xi Yan (yanfengxi) wrote :
Feng Xi Yan (yanfengxi)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/287055
Reason: This patch has been sitting unchanged for more than 12 weeks. I am therefore going to abandon it to keep the nova review queue sane. Please feel free to restore the change if you're still working on it.

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → Confirmed
assignee: Feng Xi Yan (yanfengxi) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.