summaryrefslogtreecommitdiff
path: root/roles/openshift_version/tasks
AgeCommit message (Collapse)Author
2018-02-13Simplify double upgrade version logicMichael Gugino
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
2018-02-12Revert openshift_version to previous stateMichael Gugino
2018-02-02Fix version handling in 3.8/3.9 control plane upgradesRussell Teague
2018-01-26Correct 3.7 to 3.9 upgrade openshift_image_tagMichael Gugino
Due to complexities upgrading two versions at the same time, openshift_image_tag was being set incorrectly during control_plane upgrades. This commit ensures that openshift_image_tag is set correctly during this process. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1536839
2018-01-17Add call to 3.8 playbook in 3.9 upgradeScott Dodson
2018-01-17Exclude 3.9 packages during 3.8 upgradeScott Dodson
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
2018-01-09Refactor version and move some checks into sanity_checks.pyMichael Gugino
This commit changes how we handle openshift_version role. Most of the version initialization code is only run on the first master now. All other hosts have values set from the master. Aftwards, we run some basic RPM queries to ensure that the correct version is available on the other nodes. Containerized needs to do their own image checks elsewhere.
2018-01-08Properly cast crio boolean variables to boolMichael Gugino
Variables that are specifically booleans should be cast to bool. This is because users may sometimes pass them as string values. This is particularly prevalent when using ini-style inventories. Affected-by: https://github.com/ansible/ansible/issues/34591 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1531592
2017-12-20Remove openshift.common.{is_atomic|is_containerized}Michael Gugino
We set these variables using facts in init, no need to duplicate the logic all around the codebase.
2017-12-18Relocate filter plugins to lib_utilsMichael Gugino
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.
2017-12-14Deprecate using Ansible tests as filtersRussell Teague
2017-12-07Remove openshift.common.service_typeMichael Gugino
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.
2017-12-01Implement container runtime roleMichael Gugino
2017-11-27Remove openshift.common.cli_imageMichael Gugino
This commit removes openshift.common.cli_image in favor of openshift_cli_image.
2017-11-16Include Deprecation - Init Playbook PathsRussell Teague
2017-10-23Remove base package installMichael Gugino
Currently, base atomic-openshift package is installed for versioning. This doesn't appear to be necessary. This commit removes this step. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1504196
2017-09-25crio: detect the correct version of the imagesGiuseppe Scrivano
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1494357 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-09-20Default openshift_pkg_version to full version-release during upgradesScott Dodson
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.
2017-09-12Only install base openshift package on masters and nodesMichael Gugino
Recent refactoring to remove openshift_common resulted in base openshift rpm's being installed on more hosts than previous. This situation results in hosts that would otherwise not need access to openshift repositories to require them. This patch set results in only openshift_masters and openshift_nodes to have the openshift base package installed.
2017-09-06Remove openshift-commonMichael Gugino
Most of this role's purpose was to set facts. The vast majority of these facts were simply redefining user-supplied variables. This commit also removes various artifacts leftover from previous versions, as well as variables that seem to be entirely unused.
2017-08-29Merge pull request #5214 from giuseppe/rename_crio_variableScott Dodson
crio: rename openshift_docker_use_crio to openshift_use_crio
2017-08-25cri-o: rename openshift_docker_use_crio to openshift_use_crioGiuseppe Scrivano
It is confusing to have _docker_ in the name, since they are two different backends. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-24openshift_version: enterprise accepts new style pre-releaseSteve Milner
Example: v3.7.0-0.104.0 Resolves 5192 Fixes: https://github.com/openshift/openshift-ansible/issues/5192
2017-08-04Merge pull request #4898 from giuseppe/cri-oOpenShift Bot
Merged by openshift-bot
2017-08-03cri-o: skip Set precise containerized version checkGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-07-28Set the openshift_version from the openshift.common.version in case it is emptyJan Chaloupka
It can happen the openshift_version is set to an empty string. Which results in openshift_pkg_version set to "-". Thus, failing installation of base and excluder packages. For more info see https://bugzilla.redhat.com/show_bug.cgi?id=1474871
2017-06-23openshift_version: skip nfs and lb hostsSteve Milner
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1458653
2017-05-31Merge pull request #4225 from ingvagabund/relax-rpm-image-version-checkJan Chaloupka
relax check for rpm version and docker image version equality
2017-05-19allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner
This commit allows to specify imageConfig.format specifically for master or for nodes. One use case of this could be if you want to use customer builder images. In this case imageConfig.format only needs to be changed in the master-config.yml but not in the node-config.yml.
2017-05-18check for rpm version and docker image version equality only if ↵Jan Chaloupka
openshift_pkg_version and openshift_image_tag are not defined
2017-05-15openshift_version: skip rpm version==image version on AtomicGiuseppe Scrivano
since there is no repoquery installed on Atomic Host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-05-11Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka
2017-05-09Fail if rpm version != docker image versionJan Chaloupka
2017-04-18openshift_version: improve messagingLuke Meyer
This role often provides the first failure messages when users' inventory parameters are not going to work out. So, make sure the task names and messages are informative to someone who may not have very much context for what this role does.
2017-04-03Add names to openshift_image_tag assertsSteve Milner
2017-04-03openshift_version now requires prepended version formatsSteve Milner
- openshift_image_tag must start with a v unless it's set to latest - openshift_pkg_version must start with a -
2017-04-03Warn if openshift_image_tag is defined by hand for package installsSteve Milner
2017-04-03Verify openshift_image_tag is valid during openshift_version mainSteve Milner
- origin examples: v1.2.3, v1.2.3-alpha, v1.2.3-beta.1, v1.5.0-rc.0 - openshift-enterprise examples: v3.5, v3.5.3, v3.5.3.4, v3.5.3.4-1
2017-04-03Add openshift_version fact fallback debug messagesSteve Milner
2017-04-03cleanup: when in openshift_version tasks are multilineSteve Milner
2017-03-30Merge pull request #3801 from mtnbikenc/fix-copyOpenShift Bot
Merged by openshift-bot
2017-03-30Merge pull request #3734 from sosiouxme/20170322-deployment-typeOpenShift Bot
Merged by openshift-bot
2017-03-29Correct copy task to use remote sourceRussell Teague
2017-03-29validate and normalize inventory variablesLuke Meyer
In openshift_repos and everywhere, ensure deployment_type and openshift_deployment_type are defined and the same. We really want to set openshift_deployment_type, but users will likely still have just deployment_type, so accept both. And don't make every playbook default openshift_deployment_type to deployment_type. This introduces the openshift_sanitize_inventory role to run before anything else.
2017-03-28Make the OCP available version detection excluder freeJan Chaloupka
When detecting available OCP version via repoquery, use yum.conf file with exclude= set to an empty array. So the detection is independent of the OCP excluder.
2017-01-09Fix openshift_image_tag=latest.Andrew Butcher
2016-11-29allow 'latest' origin_image_tagSeth Jennings
2016-11-14Fix commit-offsets in version detection for containerized installsTim Bielawa
* Applies the chomp_commit_offset logic to container version detection https://bugzilla.redhat.com/show_bug.cgi?id=1389137
2016-08-23Better error if no OpenShift RPMs are available.Devan Goodwin
2016-07-20Slight modification to error when using mismatched openshift_release.Devan Goodwin