diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-09-11 14:08:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-11 14:08:27 -0400 |
commit | f95e3c4133e8d8e4878b1e37398c5b2288f81905 (patch) | |
tree | 350f0c199072b7e5fb3bb836b18ac4976de402b2 /playbooks/common | |
parent | e33eefbcb2b04ea2a985b253bddf13539fbf6eea (diff) | |
parent | 10ecef48e62ae6338ce10417dd153c0a388eb2cf (diff) | |
download | openshift-f95e3c4133e8d8e4878b1e37398c5b2288f81905.tar.gz openshift-f95e3c4133e8d8e4878b1e37398c5b2288f81905.tar.bz2 openshift-f95e3c4133e8d8e4878b1e37398c5b2288f81905.tar.xz openshift-f95e3c4133e8d8e4878b1e37398c5b2288f81905.zip |
Merge pull request #5256 from ashcrow/1451023
upgrade: Verify required network items are set
Diffstat (limited to 'playbooks/common')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/pre/verify_inventory_vars.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/verify_inventory_vars.yml b/playbooks/common/openshift-cluster/upgrades/pre/verify_inventory_vars.yml index 9a959a959..78923e04f 100644 --- a/playbooks/common/openshift-cluster/upgrades/pre/verify_inventory_vars.yml +++ b/playbooks/common/openshift-cluster/upgrades/pre/verify_inventory_vars.yml @@ -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 |