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

Bug #1373054 reported by Mikhail Kebich on 2014-09-23
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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.

Mikhail Kebich (mkebich) wrote :
description: updated
Sean Dague (sdague) on 2014-09-23
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
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) on 2016-03-02
Changed in nova:
assignee: nobody → Feng Xi Yan (yanfengxi)
status: Incomplete → Confirmed
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
Feng Xi Yan (yanfengxi) on 2016-03-09
description: updated

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.

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  Edit
Everyone can see this information.

Other bug subscribers