Bug 1351557 - [RFE] Connectivity checks in heat templates do not verify the management network when it's enabled
Summary: [RFE] Connectivity checks in heat templates do not verify the management netw...
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 10.0 (Newton)
Assignee: Bob Fournier
QA Contact: Marius Cornea
Depends On:
TreeView+ depends on / blocked
Reported: 2016-06-30 10:22 UTC by Marius Cornea
Modified: 2016-12-14 15:42 UTC (History)
11 users (show)

Fixed In Version: openstack-tripleo-heat-templates-5.0.0-0.20160929150845.4cdc4fc.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-12-14 15:42:24 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:2948 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 enhancement update 2016-12-14 19:55:27 UTC

Description Marius Cornea 2016-06-30 10:22:36 UTC
Description of problem:
Connectivity checks do not verify the management network when it's enabled.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Deploy overcloud with management network enabled 

Actual results:
[root@ctrl-r01-01 ~]# grep ctrl-r01-01 /etc/hosts ctrl-r01-01.redhat.local ctrl-r01-01 ctrl-r01-01-external ctrl-r01-01-internalapi ctrl-r01-01-storage ctrl-r01-01-storagemgmt ctrl-r01-01-tenant ctrl-r01-01-management

[root@ctrl-r01-01 ~]# journalctl -l -u os-collect-config | grep ping_test
Jun 30 09:53:28 ctrl-r01-01.redhat.local os-collect-config[3804]: [2016-06-30 05:53:28,702] (heat-config) [DEBUG] [2016-06-30 05:53:27,911] (heat-config) [INFO] ping_test_ips=

Expected results:
The ping_test is also run for the 172.16.17 subnet.

Additional info:

Comment 2 Jaromir Coufal 2016-07-28 17:53:58 UTC
Is this a validation issue? Can you be  more specific about the problem here?

Comment 3 Marius Cornea 2016-07-28 20:02:37 UTC
(In reply to Jaromir Coufal from comment #2)
> Is this a validation issue? Can you be  more specific about the problem here?

Yes, this is a validation issue. During the overcloud deployment there is a validation step that check connectivity between all nodes and controllers. When network isolation is enabled connectivity checks are done for each of the isolated network. The management network is optional so it's activated by the request of the operator. When it's being activated though there is no connectivity validation ran for it so we won't catch any possible misconfigurations with this network.

Comment 5 Tomas Sedovic 2016-08-03 13:44:21 UTC
"Validation" is a bit overloaded here. This is not something coming out of the Ansible-based validations that show up in the UI but it's a check within the Heat templates (I think).

It's also not something that's broken (or halting the deployment) per se. The check verifies we can access the networks being deployed. However, if we enable the management network, it's not verified in the same way.

Comment 6 Bob Fournier 2016-08-03 13:51:21 UTC
This is a a ping test that is done by heat at the end of deployment.  It finds the active networks on the controller, from a list of networks, and pings each one.  The management network ip is missing from this list in overcloud.yaml, which is why it is not getting pinged.

    type: OS::TripleO::AllNodes::Validation
        - ' '
        - - {get_attr: [Controller, resource.0.external_ip_address]}
          - {get_attr: [Controller, resource.0.internal_api_ip_address]}
          - {get_attr: [Controller, resource.0.storage_ip_address]}
          - {get_attr: [Controller, resource.0.storage_mgmt_ip_address]}
          - {get_attr: [Controller, resource.0.tenant_ip_address]}

Comment 7 Bob Fournier 2016-08-03 21:54:34 UTC
Created upstream patch to add management_ip_address to list IPs to ping.

The upstream bug is here:

Comment 8 Jaromir Coufal 2016-09-30 08:28:44 UTC
Seems to be merged.

Comment 11 Marius Cornea 2016-10-17 16:29:52 UTC
Looks good:

[root@overcloud-compute-0 heat-admin]# journalctl -l -u os-collect-config | grep ping_test
Oct 17 12:13:45 overcloud-compute-0.localdomain os-collect-config[4454]: [2016-10-17 12:13:45,039] (heat-config) [DEBUG] [2016-10-17 12:13:44,139] (heat-config) [INFO] ping_test_ips=

[root@overcloud-compute-0 heat-admin]# grep management /etc/hosts overcloud-controller-0.management.localdomain overcloud-controller-0.management

Comment 13 errata-xmlrpc 2016-12-14 15:42:24 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.


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