Skip to content

Commit

Permalink
Merge pull request #5256 from ashcrow/1451023
Browse files Browse the repository at this point in the history
upgrade: Verify required network items are set
  • Loading branch information
sdodson authored Sep 11, 2017
2 parents e33eefb + 10ecef4 commit f95e3c4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inventory/byo/hosts.origin.example
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true',
# WORKAROUND : If you must use an overlapping subnet, you can configure a non conflicting
# docker0 CIDR range by adding '--bip=192.168.2.1/24' to DOCKER_NETWORK_OPTIONS
# environment variable located in /etc/sysconfig/docker-network.
# When upgrading these must be specificed!
#osm_cluster_network_cidr=10.128.0.0/14
#openshift_portal_net=172.30.0.0/16

Expand All @@ -634,6 +635,7 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true',

# Configure number of bits to allocate to each host’s subnet e.g. 9
# would mean a /23 network on the host.
# When upgrading this must be specificed!
#osm_host_subnet_length=9

# Configure master API and console ports.
Expand Down
2 changes: 2 additions & 0 deletions inventory/byo/hosts.ose.example
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true',
# WORKAROUND : If you must use an overlapping subnet, you can configure a non conflicting
# docker0 CIDR range by adding '--bip=192.168.2.1/24' to DOCKER_NETWORK_OPTIONS
# environment variable located in /etc/sysconfig/docker-network.
# When upgrading these must be specificed!
#osm_cluster_network_cidr=10.128.0.0/14
#openshift_portal_net=172.30.0.0/16

Expand All @@ -642,6 +643,7 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true',

# Configure number of bits to allocate to each host’s subnet e.g. 9
# would mean a /23 network on the host.
# When upgrading this must be specificed!
#osm_host_subnet_length=9

# Configure master API and console ports.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
deployment types
when: deployment_type not in ['origin','openshift-enterprise', 'online']

# osm_cluster_network_cidr, osm_host_subnet_length and openshift_portal_net are
# required when upgrading to avoid changes that may occur between releases
# Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1451023
- assert:
that:
- "osm_cluster_network_cidr is defined"
- "osm_host_subnet_length is defined"
- "openshift_portal_net is defined"
msg: >
osm_cluster_network_cidr, osm_host_subnet_length, and openshift_portal_net are required inventory
variables when upgrading. These variables should match what is currently used in the cluster. If
you don't remember what these values are you can find them in /etc/origin/master/master-config.yaml
on a master with the names clusterNetworkCIDR (osm_cluster_network_cidr),
osm_host_subnet_length (hostSubnetLength), and openshift_portal_net (hostSubnetLength).
# Error out in situations where the user has older versions specified in their
# inventory in any of the openshift_release, openshift_image_tag, and
# openshift_pkg_version variables. These must be removed or updated to proceed
Expand Down

0 comments on commit f95e3c4

Please sign in to comment.