Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Live VM migration (block-migration) fails

Hi,

I need some help about VM live migration (block migration).
I am running 1 controller and 2 compute nodes in a devstack environment with stable/kilo branch. I have configured nova.conf with live_migration_flag by following openstack documentation (http://docs.openstack.org/admin-guide-cloud/compute-configuring-migrations.html)and configure libvirtd to listen on tcp but I do not see vm migrate to new compute node when I use command "nova live-migrate --block-migrate UUID NEW_NODE".

nova.conf (libvirt section)
[libvirt]
vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
inject_partition = -2
live_migration_uri = qemu+ssh://stack@%s/system
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
use_usb_tablet = False
cpu_mode = none
virt_type = qemu

libvirtd.conf

listen_tls=0
listen_tcp=1
tcp_auth="none"

libvirtd is listening on 16509

$ sudo netstat -anp | grep 165
tcp        0      0 0.0.0.0:16509           0.0.0.0:*               LISTEN      18946/libvirtd
tcp6       0      0 :::16509                :::*                    LISTEN      18946/libvirtd    

    Errors under nova log.

    015-09-14 18:46:18.378 ERROR nova.compute.manager [req-d35efe82-3fd6-4c84-953c-256248a34f5b admin admin] [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc713
    9e5] Pre live migration failed at nova1
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] Traceback (most recent call last):
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/manager.py",
    line 5316, in live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     block_migration, disk, dest, migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/rpcapi.py", l
    ine 623, in pre_live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     disk=disk, migrate_data=migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 156, in call
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=self.retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     timeout=timeout, retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 350, in send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 341, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     raise result
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] NoLiveMigrationForConfigDriveInLibVirt_Remote: Live migration of instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes.

Any help?

Thanks,
Hardik

Live VM migration (block-migration) fails

Hi,

Hi,

I need some help about VM live migration (block migration). I am running 1 controller and 2 compute nodes in a devstack environment with stable/kilo branch. I have configured nova.conf with live_migration_flag by following openstack documentation (http://docs.openstack.org/admin-guide-cloud/compute-configuring-migrations.html)and configure libvirtd to listen on tcp but I do not see vm migrate to new compute node when I use command "nova

nova live-migrate --block-migrate UUID NEW_NODE".

NEW_NODE

nova.conf (libvirt section) section)

[libvirt]
vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
inject_partition = -2
live_migration_uri = qemu+ssh://stack@%s/system
live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE
use_usb_tablet = False
cpu_mode = none
virt_type = qemu

libvirtd.conf

libvirtd.conf

listen_tls=0
listen_tcp=1
tcp_auth="none"
 

libvirtd is listening on 16509 16509

$ sudo netstat -anp | grep 165
tcp        0      0 0.0.0.0:16509           0.0.0.0:*               LISTEN      18946/libvirtd
tcp6       0      0 :::16509                :::*                    LISTEN      18946/libvirtd    

    18946/libvirtd

Errors under nova log. 015-09-14 log.

    2015-09-14 18:46:18.378 ERROR nova.compute.manager [req-d35efe82-3fd6-4c84-953c-256248a34f5b admin admin] [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc713
    9e5] Pre live migration failed at nova1
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] Traceback (most recent call last):
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/manager.py",
    line 5316, in live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     block_migration, disk, dest, migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/opt/stack/nova/nova/compute/rpcapi.py", l
    ine 623, in pre_live_migration
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     disk=disk, migrate_data=migrate_data)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 156, in call
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=self.retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     timeout=timeout, retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 350, in send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     retry=retry)
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 341, in _send
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5]     raise result
    2015-09-14 18:46:18.378 TRACE nova.compute.manager [instance: 2ae2fc70-eb23-45f0-8fcb-d65bdc7139e5] NoLiveMigrationForConfigDriveInLibVirt_Remote: Live migration of instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes.

Any help?

Thanks,
Hardik

Any help?

Thanks, Hardik