Live migration failed when the instance is booted with volume and config drive

Bug #1791224 reported by Tao Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Tao Li
Pike
Fix Released
Undecided
Unassigned

Bug Description

Description
===========

Volume-backed instances fails to live-migrate when config-drive is enabled, the config drive uses iso9660 format. When the instance booted from volume, the libvirt raised an exception: pre-creation of storage targets for incremental storage migration is not supported. In live-migration process, nova considers this instance to live-migrate with block-migrate, but the config drive is copied from source host to dest host in live-migration, and no local disk to migrated by libvirt, so libvirt raised this exception. I think this is a bug. If there is no local disk to migrate by libvirt, we shouldn't use block-migrate.

Steps to reproduce
==================
1. Boot a instance with volume and configdrive.
2. Live-migrate the instance with block-migrate=auto

Expected result
===============
The instance live-migrate successfully.

Actual result
=============
The instance failed to live-migrate, and livrit raised an exception. The message is pre-creation of storage targets for incremental storage migration is not supported.

Environment
===========

Openstack verison: Pike
Livirt version: 3.2.0
Qemu version: 2.9.0

In nova.conf
[libvirt]
images_type = raw

Tao Li (eric-litao)
description: updated
Tao Li (eric-litao)
Changed in nova:
assignee: nobody → Tao Li (eric-litao)
Revision history for this message
Matt Riedemann (mriedem) wrote :

Does it work if the config drive format is vfat?

https://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.config_drive_format

What version of libvirt / qemu do you have?

Revision history for this message
Tao Li (eric-litao) wrote :

I haven't tested it when the config drive format is vfat.

The environment information:

Openstack verison: Pike
Livirt version: 3.2.0
Qemu version: 2.9.0

In nova.conf
[libvirt]
images_type = raw

Revision history for this message
Tao Li (eric-litao) wrote :

I saw the latest Pike stable have fixed this issue in https://github.com/openstack/nova/blob/3da97201757c81574e3b03108c95cb29e7d7eba3/nova/virt/libvirt/guest.py#L662, so we can close this bug.

tags: added: live-migration
Revision history for this message
Artom Lifshitz (notartom) wrote :

Closing, as per comment #3.

Changed in nova:
status: New → Fix Released
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.