Bug 1501564
| Summary: | Cold-migration should use the internal_api network | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Ollie Walsh <owalsh> |
| Component: | openstack-tripleo-heat-templates | Assignee: | Emilien Macchi <emacchi> |
| Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 11.0 (Ocata) | CC: | astupnik, augol, berrange, cory.bannister, dasmith, dbecker, eglynn, gkadam, hjensas, j.beisiegel, jhakimra, jmelvin, kchamart, kiyyappa, lyarwood, mbooth, mburns, mlopes, morazi, owalsh, rhel-osp-director-maint, rkharwar, sbauza, sclewis, sferdjao, sgordon, slinaber, srevivo, vromanso |
| Target Milestone: | z4 | Keywords: | Triaged, ZStream |
| Target Release: | 11.0 (Ocata) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-heat-templates-6.2.4-1.el7ost puppet-nova-10.4.1-4.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
The source IP address for cold migration and resize was previously determined by the default gateway configured on the source compute node. The my_ip option is now explicitly set to the internal_api network IP in nova.conf, ensuring the correct network is used for this traffic.
|
Story Points: | --- |
| Clone Of: | 1486948 | Environment: | |
| Last Closed: | 2018-02-13 16:31:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1486948, 1501567, 1552855 | ||
| Bug Blocks: | 1528858 | ||
*** 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 |
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 | | +-------------------------------------+---------------------------------------------------------------------+