← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1373054] [NEW] VMWare compute driver incorrectly attaches volumes on iSCSI for target with multiple LUNs

 

Public bug reported:

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).

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: vmware volumes

** Attachment added: "openstack+vcenter.png"
   https://bugs.launchpad.net/bugs/1373054/+attachment/4212656/+files/openstack%2Bvcenter.png

** Description changed:

  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.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
+ 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).

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1373054

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

Status in OpenStack Compute (Nova):
  New

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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1373054/+subscriptions


Follow ups

References