Bug 1501564 - Cold-migration should use the internal_api network
Summary: Cold-migration should use the internal_api network
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z4
: 11.0 (Ocata)
Assignee: Emilien Macchi
QA Contact: Joe H. Rahme
URL:
Whiteboard:
: 1478346 (view as bug list)
Depends On: 1486948 1501567 1552855
Blocks: 1528858
TreeView+ depends on / blocked
 
Reported: 2017-10-12 20:46 UTC by Ollie Walsh
Modified: 2021-12-10 15:28 UTC (History)
29 users (show)

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.
Clone Of: 1486948
Environment:
Last Closed: 2018-02-13 16:31:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 509647 0 None MERGED Expose my_ip 2020-03-26 02:58:29 UTC
OpenStack gerrit 510539 0 None MERGED Fix cold/live migration network config 2020-03-26 02:58:29 UTC
Red Hat Issue Tracker OSP-4724 0 None None None 2021-12-10 15:28:41 UTC
Red Hat Knowledge Base (Solution) 3299341 0 None None None 2018-01-04 17:50:03 UTC
Red Hat Product Errata RHBA-2018:0310 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 director Bug Fix Advisory 2018-02-14 00:13:02 UTC

Comment 5 Joe H. Rahme 2017-11-24 16:54:56 UTC
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                    |                                                                     |
+-------------------------------------+---------------------------------------------------------------------+

Comment 6 Ollie Walsh 2018-01-04 17:50:04 UTC
*** Bug 1478346 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2018-02-13 16:31:58 UTC
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


Note You need to log in before you can comment on or make changes to this bug.