def post_live_migration(self, context, instance, block_device_info, migrate_data=None):
    block_device_mapping = driver.block_device_info_get_mapping(block_device_info)
    for vol in block_device_mapping:
        connection_info = vol['connection_info']
        disk_dev = vol['mount_device'].rpartition('/')[2]
        self._disconnect_volume(connection_info, disk_dev)
def post_live_migration(self, context, instance, block_device_info, migrate_data=None):
    block_device_mapping = driver.block_device_info_get_mapping(block_device_info)
    for vol in block_device_mapping:
        connection_info = vol['connection_info']
        disk_dev = vol['mount_device'].rpartition('/')[2]
        self._disconnect_volume(connection_info, disk_dev)