← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1234834] Re: Libvirt multipath test fails on a system with real iSCSI devices

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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/1234834

Title:
  Libvirt multipath test fails on a system with real iSCSI devices

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The libvirt test_libvirt_kvm_iser_volume_with_multipath_getmpdev
  expects a system with no real iscsi devices. It fudges the list of
  block devices, but will still end up with a call to
  _get_iscsi_devices() which will actually walk the system /dev/disk/by-
  path/ip-* entries and return them. On a system with no iscsi devices,
  this is fine, but on one with some, it will end up failing like this:

  ======================================================================
  FAIL: nova.tests.virt.libvirt.test_libvirt_volume.LibvirtVolumeTestCase.test_libvirt_kvm_iser_volume_with_multipath_getmpdev
  tags: worker-0
  ----------------------------------------------------------------------
  Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "nova/tests/virt/libvirt/test_libvirt_volume.py", line 524, in test_libvirt_kvm_iser_volume_with_multipath_getmpdev
      libvirt_driver.disconnect_volume(connection_info, 'vde')
    File "nova/openstack/common/lockutils.py", line 246, in inner
      return f(*args, **kwargs)
    File "nova/virt/libvirt/volume.py", line 601, in disconnect_volume
      return self._disconnect_volume_multipath_iscsi(iser_properties)
    File "nova/virt/libvirt/volume.py", line 355, in _disconnect_volume_multipath_iscsi
      for device in devices]
    File "nova/virt/libvirt/volume.py", line 685, in _get_multipath_iqn
      return entry.split("iser-")[1].split("-lun")[0]
  IndexError: list index out of range
  ======================================================================

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