summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/pre
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7124 from mgugino-upstream-stage/fix-version-multiOpenShift Merge Robot2018-02-142-0/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Fix version multi Simplify double upgrade version logic Currently, double upgrade process (3.7 -> 3.9) for control plane attempts to run openshift_version role twice to set the appropriate values for upgrading each major version, 3.8 and 3.9. This commit instructs openshift_version to only inquire about the proper settings for 3.9, and hard-sets the appropriate values for 3.8. This allows a simplification of the openshift_version role, allowing for easier debugging. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1542368
| * Simplify double upgrade version logicMichael Gugino2018-02-132-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, double upgrade process (3.7 -> 3.9) for control plane attempts to run openshift_version role twice to set the appropriate values for upgrading each major version, 3.8 and 3.9. This commit instructs openshift_version to only inquire about the proper settings for 3.9, and hard-sets the appropriate values for 3.8. This allows a simplification of the openshift_version role, allowing for easier debugging. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1542368
* | Fix docker_upgrade variableMichael Gugino2018-02-121-0/+1
|/ | | | | | | | | Currently, docker_upgrade is ignored during cluster upgrades. This commit ensures that the variable is respected. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1543714
* Merge pull request #6926 from abutcher/etcd-ca-hostScott Dodson2018-02-081-22/+0
|\ | | | | Determine which host is the etcd CA host
| * Remove pre upgrade verification step re: etcd ca host.Andrew Butcher2018-02-011-22/+0
| |
* | Fix version handling in 3.8/3.9 control plane upgradesRussell Teague2018-02-022-2/+4
| |
* | upgrades: use openshift_version as a regexp when checking ↵Vadim Rutkovsky2018-01-311-1/+1
|/ | | | | | | | | openshift.common.version This would fix errors like 'Master running 3.9.0 must be upgraded to 3.9* before node upgrade can be run' during the upgrade Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
* Merge pull request #6859 from abutcher/bz1536217OpenShift Merge Robot2018-01-251-0/+22
|\ | | | | | | | | Automatic merge from submit-queue. Bug 1536217: Need to validate etcd serving certs before 3.9 upgrade
| * Redeploy etcd certificates during upgrade when etcd hostname not present in ↵Andrew Butcher2018-01-241-0/+22
| | | | | | | | etcd serving cert SAN.
* | Protect master installed version during node upgradesMichael Gugino2018-01-231-1/+1
|/ | | | | | | | | | Master version is unprotected during all upgrades. During node-only upgrades, master version should remain protected to ensure correct image tag is set for node upgrades. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1536839
* Exclude 3.9 packages during 3.8 upgradeScott Dodson2018-01-171-1/+1
| | | | | | | | There are some obsoletes in 3.9 packages which lead yum to upgrade directly from 3.7 to 3.9 when you ask for 3.8 packages while 3.9 repos are enabled. Since we'd like to allow people to run one playbook to upgrade from 3.7 to 3.8 to 3.9 we need to exclude those packages when upgrading to 3.8
* Limit host group scope on control-plane upgradesMichael Gugino2018-01-091-0/+4
| | | | | This commit limits common init code to exclude oo_nodes_to_config during upgrade_control_plane runs.
* Migrate to import_role for static role inclusionScott Dodson2018-01-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
* Remove references to deployment_typeMichael Gugino2017-12-212-6/+1
| | | | | | | Move openshift_deployment_type check into sanity_check action plugin. Remove compatibility for deployment_type. deployment_type has been deprecated for some time now.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-202-3/+3
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Relocate filter plugins to lib_utilsMichael Gugino2017-12-181-2/+2
| | | | | | | | | | | | | | This commit relocates filter_plugings to lib_utils, changes the namespacing to prevent unintended use of older versions that may be present in filter_plugins/ directory on existing installs. Add lib_utils to meta depends for roles Also consolidate some plugins into lib_utils from various other areas. Update rpm spec, obsolete plugin rpms.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-142-5/+11
|
* Refactor upgrade codepaths step 1Michael Gugino2017-12-128-140/+170
| | | | | | | | | | | | | | | | This commit refactors some upgrade code paths. Touched areas are: 1) Reduces usage of 'oo_all_hosts' in various places, especially when running upgrade_control_plane. 2) Reuses common code across the various upgrade* playbooks. 3) Moves docker upgrade checks into container_runtime_role. 4) Combines smaller playbooks and plays to reduce file sprawl.
* Merge pull request #6278 from mgugino-upstream-stage/service_typeMichael Gugino2017-12-082-7/+7
|\ | | | | Remove openshift.common.service_type
| * Remove openshift.common.service_typeMichael Gugino2017-12-072-7/+7
| | | | | | | | | | | | | | | | This commit removes openshift.common.service_type in favor of openshift_service_type. This commit also removes r_openshift_excluder_service_type from plays in favor of using the role's defaults.
* | Include Deprecation: Convert to import_playbookRussell Teague2017-12-071-1/+1
|/
* Implement container runtime roleMichael Gugino2017-12-011-1/+1
|
* Remove openshift.common.cli_imageMichael Gugino2017-11-271-1/+1
| | | | | This commit removes openshift.common.cli_image in favor of openshift_cli_image.
* Merge pull request #5814 from mgugino-upstream-stage/docker-auth-upgradesOpenShift Merge Robot2017-10-241-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Enable oreg_auth credential replace during upgrades Currently, upgrades run a docker image pull prior to upgrading masters and nodes for containerized installs. If using a secure registry, and a user wishes to upgrade their credentials due to expiry, the image pull will fail. This commit ensures docker login credentials are updated during upgrades, if necessary. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1503995
| * Enable oreg_auth credential replace during upgradesMichael Gugino2017-10-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, upgrades run a docker image pull prior to upgrading masters and nodes for containerized installs. If using a secure registry, and a user wishes to upgrade their credentials due to expiry, the image pull will fail. This commit ensures docker login credentials are updated during upgrades, if necessary. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1503995
* | Merge pull request #5838 from ↵Jan Chaloupka2017-10-241-1/+1
|\ \ | | | | | | | | | | | | ingvagabund/strip-dash-when-comparing-versions-python3 strip dash when comparing version with Python3
| * | strip dash when comparing version with Python3Jan Chaloupka2017-10-231-1/+1
| |/
* | Check if the master service is non-ha or notJan Chaloupka2017-10-231-12/+25
|/
* Ensure upgrade playbook exits on health check failuresRussell Teague2017-10-121-2/+4
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1484324
* check if the storage backend is set to etcd3 before upgrading to 3.7Jan Chaloupka2017-09-251-0/+22
|
* Merge pull request #5478 from sdodson/bz1490677OpenShift Merge Robot2017-09-221-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic merge from submit-queue Default openshift_pkg_version to full version-release during upgrades Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1490677 The versioning scheme for 3.7 pre-releases has changed and now all versions are 3.7.0 and the release is incremented on builds, ie: 3.7.0-0.124.0 upgraded to 3.7.0-0.125.0. If we know we're an upgrade and they haven't requested a specific package version defer the defaulting of openshift_pkg_version until the upgrade playbooks and there set it to the available version including the release.
| * Default openshift_pkg_version to full version-release during upgradesScott Dodson2017-09-201-2/+6
| | | | | | | | | | | | | | | | | | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1490677 The versioning scheme for 3.7 pre-releases has changed and now all versions are 3.7.0 and the release is incremented on builds, ie: 3.7.0-0.124.0 upgraded to 3.7.0-0.125.0. If we know we're an upgrade and they haven't requested a specific package version defer the defaulting of openshift_pkg_version until the upgrade playbooks and there set it to the available version including the release.
* | Merge pull request #5014 from ↵OpenShift Merge Robot2017-09-201-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | juanvallejo/jvallejo/add-additonal-checks-upgrade-path Automatic merge from submit-queue Adding additonal checks upgrade path Depends on https://github.com/openshift/openshift-ansible/pull/4960 TODO - Possibly handle `upgrade` playbook context on `etcd_volume` check cc @sosiouxme @rhcarvalho
| * add additional preflight checks to upgrade pathjuanvallejo2017-08-281-0/+1
| |
* | Cleanup old deployment typesMichael Gugino2017-09-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | Previously, openshift-ansible supported various types of deployments using the variable "openshift_deployment_type" Currently, openshift-ansible only supports two deployment types, "origin" and "openshift-enterprise". This commit removes all logic and references to deprecated deployment types.
* | openshift_sanitize_inventory: Check for required varsSteve Milner2017-09-151-15/+0
| | | | | | | | | | | | | | | | | | Moved the checks for osm_cluster_network_cidr, osm_host_subnet_length, openshift_portal_net from upgrade to openshift_sanitize_inventory as we now consider it a required variable for install, updrade, or scale up. Signed-off-by: Steve Milner <smilner@redhat.com>
* | upgrade: Updates warning on missing required variablesSteve Milner2017-09-121-1/+1
| | | | | | | | Signed-off-by: Steve Milner <smilner@redhat.com>
* | Merge pull request #5256 from ashcrow/1451023Scott Dodson2017-09-111-0/+15
|\ \ | | | | | | upgrade: Verify required network items are set
| * | upgrade: Verify required network items are setSteve Milner2017-09-081-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When upgrading osm_cluster_network_cidr, osm_host_subnet_length, and openshift_portal_net must be set to avoid SDN initialization errors. This was found when the default parameters were changed between Openshift versions. This meant users who upgraded and did not specify either mentioned variable at install/upgrade time ended up getting SDN errors post upgrade. When osm_cluster_network_cidr, osm_host_subnet_length, and openshift_portal_net are not set the upgrade will fail telling the user that the variables must be set and how to find the current values in the current install. References: https://github.com/openshift/openshift-ansible/commit/b50b4ea0b03feb9431abd7294fe4fb6b549ddfc0 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1451023
* | | Fix include path for docker upgrade tasksRussell Teague2017-09-081-2/+4
|/ /
* | Test: Fail on entry point playbooks in commonRussell Teague2017-08-291-0/+0
| |
* | Remove unused upgrade playbookRussell Teague2017-08-231-13/+0
|/
* Remove the origin-master.service and associated filesClayton Coleman2017-08-081-9/+2
| | | | | | From now on, all master configurations use the api / controller split, regardless of HA mode or previous configuration. This will be our only supported configuration starting in 3.7 or 3.8.
* add pre-flight checks to ugrade pathjuanvallejo2017-08-021-0/+13
|
* Revert "Add health checks to upgrade playbook"Rodolfo Carvalho2017-07-281-13/+0
|
* add pre-flight checks to ugrade pathjuanvallejo2017-07-261-0/+13
|
* Replace repoquery with moduleJan Chaloupka2017-06-091-9/+11
|
* verify upgrade targets separately for each group (masters, nodes, etcd)Jan Chaloupka2017-05-312-55/+48
|
* Properly fail if OpenShift RPM version is undefinedRussell Teague2017-05-081-25/+29
|
* move excluder upgrade validation tasks under openshift_excluder roleJan Chaloupka2017-04-281-29/+0
|