Live migration is not working in Red Hat OpenStack Platform 10

Solution Verified - Updated -

Issue

  • Live migration is not working in Red Hat OpenStack Platform 10

The live migration starts:

compute1/var/log/nova/nova-api.log:2017-07-25 17:12:22.321 772422 DEBUG nova.compute.api [req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b c9f9ef4aea9748cabfe743d4835c2a08 75c2172567214b67aa233ed375fcd230 - default default] [instance: 51a8e533-1638-4774-8c40-67ddd27aba59] Fetching instance by UUID get /usr/lib/python2.7/site-packages/nova/compute/api.py:2213
compute1/var/log/nova/nova-api.log:2017-07-25 17:12:22.379 772422 DEBUG nova.compute.api [req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b c9f9ef4aea9748cabfe743d4835c2a08 75c2172567214b67aa233ed375fcd230 - default default] [instance: 51a8e533-1638-4774-8c40-67ddd27aba59] Going to try to live migrate instance to COMPUTE_NODE live_migrate /usr/lib/python2.7/site-packages/nova/compute/api.py:3621

But errors with a host key verification failure:

$ egrep req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b COMPUTE_NODE*/var/log/nova/* | egrep -i 'fail|warning|error'
compute2/var/log/nova/nova-compute.log:2017-07-25 17:12:25.070 495279 ERROR nova.virt.libvirt.driver [req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b c9f9ef4aea9748cabfe743d4835c2a08 75c2172567214b67aa233ed375fcd230 - - -] [instance: 51a8e533-1638-4774-8c40-67ddd27aba59] Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+ssh://nova_migration@COMPUTE_NODE/system?keyfile=/etc/nova/migration/identity: Cannot recv data: Host key verification failed.: Connection reset by peer
compute2/var/log/nova/nova-compute.log:2017-07-25 17:12:25.082 495279 DEBUG nova.virt.libvirt.migration [req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b c9f9ef4aea9748cabfe743d4835c2a08 75c2172567214b67aa233ed375fcd230 - - -] [instance: 51a8e533-1638-4774-8c40-67ddd27aba59] VM running on src, migration failed find_job_type /usr/lib/python2.7/site-packages/nova/virt/libvirt/migration.py:225
compute2/var/log/nova/nova-compute.log:2017-07-25 17:12:25.083 495279 ERROR nova.virt.libvirt.driver [req-eab0d0dc-9c33-42ee-9e35-de52a6bcd60b c9f9ef4aea9748cabfe743d4835c2a08 75c2172567214b67aa233ed375fcd230 - - -] [instance: 51a8e533-1638-4774-8c40-67ddd27aba59] Migration operation has aborted

In nova.conf, the SSH method is being used:

$ grep uri /etc/nova/nova.conf
...
live_migration_uri=qemu+ssh://nova_migration@%s/system?keyfile=/etc/nova/migration/identity
...

And the contents of the files referenced do not have SSH keys in them:

$ cat etc/nova/migration/identity 
# SSH identity file (private key) for Openstack Nova migration
#
# Generate an ssh key pair for this host.
# Add the private key (e.g id_rsa) to this file.
# Add the public key (e.g id_rsa.pub) to /etc/nova/migration/authorized_keys
# on the migration target hosts.
$ cat etc/nova/migration/authorized_keys 
# SSH authorized_keys file for Openstack Nova migration
#
# This controls with hosts are allowed to migration VMs to this host.
# Append the SSH public keys of authorized hosts to this file.

Environment

  • Red Hat OpenStack Platform 10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content