summaryrefslogtreecommitdiffstats
path: root/roles/openshift_version
Commit message (Collapse)AuthorAgeFilesLines
* Simplify double upgrade version logicMichael Gugino2018-02-134-7/+24
| | | | | | | | | | | | | | | | | 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
* Revert openshift_version to previous stateMichael Gugino2018-02-125-21/+8
|
* Fix version handling in 3.8/3.9 control plane upgradesRussell Teague2018-02-023-2/+4
|
* Correct 3.7 to 3.9 upgrade openshift_image_tagMichael Gugino2018-01-262-2/+5
| | | | | | | | | | | 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
* Add call to 3.8 playbook in 3.9 upgradeScott Dodson2018-01-173-5/+13
|
* 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
* Refactor version and move some checks into sanity_checks.pyMichael Gugino2018-01-098-233/+102
| | | | | | | | | | | | | 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.
* Properly cast crio boolean variables to boolMichael Gugino2018-01-081-4/+4
| | | | | | | | | | | 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
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-12/+8
| | | | | 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-1/+1
| | | | | | | | | | | | | | 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-141-2/+2
|
* Remove container_runtime from the openshift_versionScott Dodson2017-12-081-1/+0
|
* openshift_version: add dependency to openshift_factsGiuseppe Scrivano2017-12-081-0/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* openshift_version: define openshift_use_crio_onlyGiuseppe Scrivano2017-12-081-0/+2
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* openshift_version: add dependency to container_runtimeGiuseppe Scrivano2017-12-081-0/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Remove openshift.common.service_typeMichael Gugino2017-12-073-7/+13
| | | | | | | | 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.
* Implement container runtime roleMichael Gugino2017-12-012-10/+4
|
* Remove openshift.common.cli_imageMichael Gugino2017-11-271-2/+2
| | | | | This commit removes openshift.common.cli_image in favor of openshift_cli_image.
* Include Deprecation - Init Playbook PathsRussell Teague2017-11-161-2/+2
|
* Remove base package installMichael Gugino2017-10-232-11/+0
| | | | | | | | | | | 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
* crio: detect the correct version of the imagesGiuseppe Scrivano2017-09-251-4/+7
| | | | | | Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1494357 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Default openshift_pkg_version to full version-release during upgradesScott Dodson2017-09-201-2/+7
| | | | | | | | | | | 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.
* Only install base openshift package on masters and nodesMichael Gugino2017-09-122-1/+6
| | | | | | | | | | | 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.
* Remove openshift-commonMichael Gugino2017-09-061-0/+6
| | | | | | | | | 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.
* Merge pull request #5214 from giuseppe/rename_crio_variableScott Dodson2017-08-291-1/+1
|\ | | | | crio: rename openshift_docker_use_crio to openshift_use_crio
| * cri-o: rename openshift_docker_use_crio to openshift_use_crioGiuseppe Scrivano2017-08-251-1/+1
| | | | | | | | | | | | | | It is confusing to have _docker_ in the name, since they are two different backends. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* | openshift_version: enterprise accepts new style pre-releaseSteve Milner2017-08-241-2/+5
|/ | | | | | | Example: v3.7.0-0.104.0 Resolves 5192 Fixes: https://github.com/openshift/openshift-ansible/issues/5192
* Removing dependencies for openshift_repos and setting them up early in the ↵Kenny Woodson2017-08-141-1/+0
| | | | cluster build.
* Merge pull request #4898 from giuseppe/cri-oOpenShift Bot2017-08-041-0/+9
|\ | | | | Merged by openshift-bot
| * cri-o: skip Set precise containerized version checkGiuseppe Scrivano2017-08-031-0/+9
| | | | | | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* | Set the openshift_version from the openshift.common.version in case it is emptyJan Chaloupka2017-07-281-1/+1
|/ | | | | | | 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
* openshift_version: skip nfs and lb hostsSteve Milner2017-06-231-96/+100
| | | | Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1458653
* Merge pull request #4225 from ingvagabund/relax-rpm-image-version-checkJan Chaloupka2017-05-311-2/+7
|\ | | | | relax check for rpm version and docker image version equality
| * check for rpm version and docker image version equality only if ↵Jan Chaloupka2017-05-181-2/+7
| | | | | | | | openshift_pkg_version and openshift_image_tag are not defined
* | allow to configure oreg_url specifically for node or master. refs #4233Tobias Brunner2017-05-191-1/+1
|/ | | | | | | | | 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.
* openshift_version: skip rpm version==image version on AtomicGiuseppe Scrivano2017-05-151-3/+8
| | | | | | since there is no repoquery installed on Atomic Host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka2017-05-114-49/+24
|
* Fail if rpm version != docker image versionJan Chaloupka2017-05-093-40/+58
|
* openshift_version: improve messagingLuke Meyer2017-04-181-18/+38
| | | | | | | 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.
* Add names to openshift_image_tag assertsSteve Milner2017-04-031-2/+4
|
* openshift_version now requires prepended version formatsSteve Milner2017-04-031-14/+0
| | | | | - openshift_image_tag must start with a v unless it's set to latest - openshift_pkg_version must start with a -
* Warn if openshift_image_tag is defined by hand for package installsSteve Milner2017-04-031-0/+12
|
* Verify openshift_image_tag is valid during openshift_version mainSteve Milner2017-04-031-0/+31
| | | | | - 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
* Add openshift_version fact fallback debug messagesSteve Milner2017-04-031-4/+14
|
* cleanup: when in openshift_version tasks are multilineSteve Milner2017-04-033-12/+53
|
* Merge pull request #3801 from mtnbikenc/fix-copyOpenShift Bot2017-03-301-0/+1
|\ | | | | Merged by openshift-bot
| * Correct copy task to use remote sourceRussell Teague2017-03-291-0/+1
| |
* | Merge pull request #3734 from sosiouxme/20170322-deployment-typeOpenShift Bot2017-03-301-8/+0
|\ \ | |/ |/| Merged by openshift-bot
| * validate and normalize inventory variablesLuke Meyer2017-03-291-8/+0
| | | | | | | | | | | | | | | | | | | | 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.
* | Make the OCP available version detection excluder freeJan Chaloupka2017-03-281-1/+28
|/ | | | | | 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.