Cold migration uses `my_ip` from /etc/nova/nova.conf: From /etc/nova/nova.conf ------------------------ [heat-admin@compute-0 ~]$ sudo grep my_ip /etc/nova/nova.conf ... my_ip=172.17.1.15 ... From /etc/ssh/sshd ------------------ Match LocalAddress 172.17.1.15 User nova_migration AllowTcpForwarding no AuthorizedKeysFile /etc/nova/migration/authorized_keys ForceCommand /bin/nova-migration-wrapper PasswordAuthentication no X11Forwarding no From /etc/hosts --------------- [heat-admin@compute-0 ~]$ sudo grep 172.17.1.15 /etc/hosts 172.17.1.15 compute-0.localdomain compute-0 172.17.1.15 compute-0.internalapi.localdomain compute-0.internalapi Attempting a cold migration ---------------------------- [stack@undercloud-0 testingdir]$ openstack server create --flavor m1.micro --image afd66721-c79b-4a95-9262-c754b34e5549 vm1 +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | JdoWUpqWbRe3 | | config_drive | | | created | 2017-11-24T16:40:32Z | | flavor | m1.micro (11d92f8d-989f-4c57-b906-022daa11f34e) | | hostId | | | id | b649b05b-3a2f-47ed-b239-f4638ac8532b | | image | cirros-0.3.5-x86_64-disk.img (afd66721-c79b-4a95-9262-c754b34e5549) | | key_name | None | | name | vm1 | | progress | 0 | | project_id | b559b9861605421283a9777acb12347f | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2017-11-24T16:40:32Z | | user_id | 8bf235be6491406bb239a16cf009a115 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ [stack@undercloud-0 testingdir]$ openstack server stop vm1 [stack@undercloud-0 testingdir]$ openstack server show vm1 +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-1.localdomain | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.localdomain | | OS-EXT-SRV-ATTR:instance_name | instance-00000001 | | OS-EXT-STS:power_state | Shutdown | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | stopped | | OS-SRV-USG:launched_at | 2017-11-24T16:40:39.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=10.0.0.219 | | config_drive | | | created | 2017-11-24T16:40:32Z | | flavor | m1.micro (11d92f8d-989f-4c57-b906-022daa11f34e) | | hostId | 283b0adfead1d5dd8c951d1f348145d1feead9422b746ae1f3239db9 | | id | b649b05b-3a2f-47ed-b239-f4638ac8532b | | image | cirros-0.3.5-x86_64-disk.img (afd66721-c79b-4a95-9262-c754b34e5549) | | key_name | None | | name | vm1 | | project_id | b559b9861605421283a9777acb12347f | | properties | | | security_groups | name='default' | | status | SHUTOFF | | updated | 2017-11-24T16:46:53Z | | user_id | 8bf235be6491406bb239a16cf009a115 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+ [stack@undercloud-0 testingdir]$ openstack server migrate vm1 [stack@undercloud-0 testingdir]$ openstack server show vm1 +-------------------------------------+---------------------------------------------------------------------+ | Field | Value | +-------------------------------------+---------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-0.localdomain | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain | | OS-EXT-SRV-ATTR:instance_name | instance-00000001 | | OS-EXT-STS:power_state | Shutdown | | OS-EXT-STS:task_state | None | | OS-EXT-STS:vm_state | resized | | OS-SRV-USG:launched_at | 2017-11-24T16:51:20.000000 | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | public=10.0.0.219 | | config_drive | | | created | 2017-11-24T16:40:32Z | | flavor | m1.micro (11d92f8d-989f-4c57-b906-022daa11f34e) | | hostId | 4727eb8578611181e42d44feae3d397183d5ab6472d2483601ba765e | | id | b649b05b-3a2f-47ed-b239-f4638ac8532b | | image | cirros-0.3.5-x86_64-disk.img (afd66721-c79b-4a95-9262-c754b34e5549) | | key_name | None | | name | vm1 | | progress | 0 | | project_id | b559b9861605421283a9777acb12347f | | properties | | | security_groups | name='default' | | status | VERIFY_RESIZE | | updated | 2017-11-24T16:51:20Z | | user_id | 8bf235be6491406bb239a16cf009a115 | | volumes_attached | | +-------------------------------------+---------------------------------------------------------------------+
*** Bug 1478346 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0310