KeyError exception was thrown in post_live_migration

Bug #1293926 reported by Xing Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

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.

Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

Does the fix for https://bugs.launchpad.net/nova/+bug/1327497 help you solve the issue.

Revision history for this message
Xing Yang (xing-yang) wrote :

This is a duplicate of https://bugs.launchpad.net/nova/+bug/1288360. Should be fixed already in Juno. I just added a comment in 1288360.

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.