Bug 1571992

Summary: 3.10.0-0.27.0: openshift_portal_net not honored - serviceNetworkCIDR in master-config.yaml does not have correct value
Product: OpenShift Container Platform Reporter: Mike Fiedler <mifiedle>
Component: InstallerAssignee: Michael Gugino <mgugino>
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.10.0CC: aos-bugs, hongli, jokerman, mmccomas, vlaad, wmeng
Target Milestone: ---   
Target Release: 3.10.0   
Hardware: x86_64   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 19:13:48 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:
Description Flags
inventory, ansible log, master-config
inventory to reproduce on 3.10.0-0.47.0
resulting master-config from 3.10.0-0.47.0 none

Description Mike Fiedler 2018-04-25 21:46:41 UTC
Description of problem:

Installed a 3.10.0-0.27.0 cluster with the following network variables:


openshift-ansible runs successfully, but after the install master-config.yaml on the master contains the default for serviceNetworkCIDR:

  - cidr:
    hostSubnetLength: 9
  hostSubnetLength: 9
  networkPluginName: redhat/openshift-ovs-networkpolicy

Note that the osm_cluster_network value was picked up OK

Version-Release number of the following components:
root@ip-172-31-16-156: ~ # rpm -q openshift-ansible
root@ip-172-31-16-156: ~ # rpm -q ansible
root@ip-172-31-16-156: ~ # ansible --version
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

How reproducible: Not sure.  Using non-default openshift_portal_net seems to trigger it.

Steps to Reproduce:
1.  Install cluster with an inventory similar to the one attached (redacted to remove keys/passwords).

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Attached -vvv log, inventory and master-config.yaml

Comment 1 Mike Fiedler 2018-04-25 21:48:17 UTC
Created attachment 1426879 [details]
inventory, ansible log, master-config

Comment 2 Scott Dodson 2018-05-02 14:17:53 UTC
*** Bug 1566629 has been marked as a duplicate of this bug. ***

Comment 3 Michael Gugino 2018-05-07 20:41:09 UTC
This appears to be a problem with the openshift_facts module.

PR Created: https://github.com/openshift/openshift-ansible/pull/8291

Comment 4 Russell Teague 2018-05-08 18:12:25 UTC
*** Bug 1575919 has been marked as a duplicate of this bug. ***

Comment 6 Mike Fiedler 2018-05-16 17:10:30 UTC
Problem still occurs using openshift-ansible 3.10.0-0.47.0 from May 15th

openshift-ansible.noarch        3.10.0-0.47.0.git.0.c018c8f.el7
openshift-ansible-docs.noarch   3.10.0-0.47.0.git.0.c018c8f.el7
openshift-ansible-roles.noarch  3.10.0-0.47.0.git.0.c018c8f.el7

Using the attached inventory file, master-config.yaml still gets serviceNetworkCIDR of  serviceNetworkCIDR:

Comment 7 Mike Fiedler 2018-05-16 17:11:08 UTC
Created attachment 1437487 [details]
inventory to reproduce on 3.10.0-0.47.0

Comment 8 Mike Fiedler 2018-05-16 17:11:45 UTC
Created attachment 1437488 [details]
resulting master-config from 3.10.0-0.47.0

Comment 9 Mike Fiedler 2018-05-16 18:33:00 UTC
I installed using latest master branch out of git and hit the same issue.

commit df2c352a98465fe28340680b19fb141f7567eea4
Merge: d27fb63 91f78b9

Comment 10 Michael Gugino 2018-05-16 19:06:15 UTC
Possible Fix: https://github.com/openshift/openshift-ansible/pull/8394

Comment 11 Michael Gugino 2018-05-21 18:34:25 UTC
Mike, please let me know if the latest resolves the issue.

Comment 12 Mike Fiedler 2018-05-22 14:53:36 UTC
Verified on 3.10.0-0.50.0 - serviceNetworkCIDR has the specified value.

Comment 14 errata-xmlrpc 2018-07-30 19:13:48 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.