← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1293926] [NEW] KeyError exception was thrown in post_live_migration

 

Public bug reported:

When testing block live migration, a KeyError exception was thrown in
post_live_migration in nova/virt/libvirt/driver.py on the origin host
after the VM was migrated to the destination host.

This is because connection_info['data'] doesn’t have a key called
‘devices’ in disconnect_volume of LibvirtFibreChannelVolumeDriver.

nova/virt/libvirt/volume.py
class LibvirtFibreChannelVolumeDriver
    def disconnect_volume(self, connection_info, mount_device):
        """Detach the volume from instance_name."""
        super(LibvirtFibreChannelVolumeDriver,
              self).disconnect_volume(connection_info, mount_device)
        devices = connection_info['data']['devices']

The FC driver I'm testing with is the EMC SMI-S FC driver.

This problem is similar to https://bugs.launchpad.net/nova/+bug/1222979.

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  KeyError exception was thrown in post_live_migration

Status in OpenStack Compute (Nova):
  New

Bug description:
  When testing block live migration, a KeyError exception was thrown in
  post_live_migration in nova/virt/libvirt/driver.py on the origin host
  after the VM was migrated to the destination host.

  This is because connection_info['data'] doesn’t have a key called
  ‘devices’ in disconnect_volume of LibvirtFibreChannelVolumeDriver.

  nova/virt/libvirt/volume.py
  class LibvirtFibreChannelVolumeDriver
      def disconnect_volume(self, connection_info, mount_device):
          """Detach the volume from instance_name."""
          super(LibvirtFibreChannelVolumeDriver,
                self).disconnect_volume(connection_info, mount_device)
          devices = connection_info['data']['devices']

  The FC driver I'm testing with is the EMC SMI-S FC driver.

  This problem is similar to
  https://bugs.launchpad.net/nova/+bug/1222979.

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


Follow ups

References