Description of problem: According to https://github.com/openshift/openshift-docs/issues/1700: <--snip--> The default values for pod networking have changed: clusterNetworkCIDR (osm_cluster_network_cidr in ansible) now defaults to 10.128.0.0/14 (10.128.0.0 - 10.131.255.255) rather than 10.1.0.0/16. hostSubnetLength (osm_host_subnet_length in ansible) now defaults to 9 rather than 8 (meaning each node will be assigned a /23 subnet rather than a /24) <--snip--> After installation, found ansible is still setting its default value to "10.1.0.0/16" (refer to playbooks/byo/roles/openshift_facts/library/openshift_facts.py) # cat /etc/origin/master/master-config.yaml <--snip--> networkConfig: clusterNetworkCIDR: 10.1.0.0/16 hostSubnetLength: 8 networkPluginName: redhat/openshift-ovs-subnet # serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet serviceNetworkCIDR: 172.30.0.0/16 <--snip--> Version-Release number of selected component (if applicable): openshift-ansible-roles-3.0.62-1.git.0.394cb87.el7.noarch How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/b50b4ea0b03feb9431abd7294fe4fb6b549ddfc0 Update defaults for clusterNetworkCIDR & hostSubnetLength Per https://github.com/openshift/openshift-docs/issues/1700: The default values for pod networking have changed: - clusterNetworkCIDR now defaults to 10.128.0.0/14 (10.128.0.0 - 10.131.255.255) rather than 10.1.0.0/16. - hostSubnetLength now defaults to 9 rather than 8 (meaning each node will be assigned a /23 subnet rather than a /24) Fixes Bug 1320952
Verified this bug with openshift-ansible-3.4.18-1.git.0.ed7dac0.el7.noarch, and PASS. # cat /etc/origin/master/master-config.yaml <--snip--> networkConfig: clusterNetworkCIDR: 10.128.0.0/14 hostSubnetLength: 9 networkPluginName: redhat/openshift-ovs-subnet # serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet serviceNetworkCIDR: 172.30.0.0/16 externalIPNetworkCIDRs: - 0.0.0.0/0 <--snip--> New an app, sti build successfully, and new network default setting take effect now. # oc get po -n install-test NAME READY STATUS RESTARTS AGE mongodb-1-v3ipr 1/1 Running 0 1h nodejs-mongodb-example-1-5rlh3 1/1 Running 0 1h nodejs-mongodb-example-1-build 0/1 Completed 0 1h # oc describe po nodejs-mongodb-example-1-5rlh3 -n install-test|grep IP IP: 10.128.0.20
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-2017:0066