summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/docker
Commit message (Collapse)AuthorAgeFilesLines
* Fix docker_upgrade variableMichael Gugino2018-02-121-1/+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
* Add the ability to specify a timeout for node drain operationsScott Dodson2018-01-101-3/+9
|
* Migrate to import_role for static role inclusionScott Dodson2018-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Move validate_hosts to prerequisites.ymlMichael Gugino2017-12-201-3/+0
| | | | | | Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-203-4/+4
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Deprecate using Ansible tests as filtersRussell Teague2017-12-143-7/+7
|
* Refactor upgrade codepaths step 1Michael Gugino2017-12-123-83/+3
| | | | | | | | | | | | | | | | 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.
* Add openshift_facts to upgrade plays for service_typeMichael Gugino2017-12-091-0/+1
| | | | | Bring openshift_facts into scope for plays that utilize openshift_service_type as it is defined there.
* Merge pull request #6278 from mgugino-upstream-stage/service_typeMichael Gugino2017-12-082-6/+6
|\ | | | | Remove openshift.common.service_type
| * Remove openshift.common.service_typeMichael Gugino2017-12-072-6/+6
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #6371 from mtnbikenc/include-to-import_playbookOpenShift Merge Robot2017-12-072-5/+5
|\ \ | |/ |/| | | | | | | | | | | | | | | Automatic merge from submit-queue. Include Deprecation: Convert to import_playbook * Converts playbooks/ to use `import_playbook`. * Updates remaining `include:` tasks to `include_tasks:` Trello: https://trello.com/c/ZTyZu3UM/484-3-ansible-24-include-deprecation
| * Include Deprecation: Convert to import_playbookRussell Teague2017-12-072-5/+5
| |
* | Remove all uses of openshift.common.admin_binaryScott Dodson2017-12-071-1/+1
|/ | | | Replace with `oc adm`
* Implement container runtime roleMichael Gugino2017-12-011-4/+0
|
* retry package operationsLuke Meyer2017-11-301-0/+2
| | | | | | When a package install/update fails due to network blips or other spotty availability, retry it. If the failure is a real failure (e.g. package is really not there) it still fails after 3 tries (Ansible default).
* With dnf repoquery and excluded packages, --disableexcludes=all is needed to ↵Jan Pazdziora2017-11-221-1/+1
| | | | list the package with --installed.
* Playbook Consolidation - InitializationRussell Teague2017-11-151-1/+1
|
* more retries on repoquery_cmdLuke Meyer2017-09-191-0/+4
|
* Remove openshift-commonMichael Gugino2017-09-061-1/+0
| | | | | | | | | 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.
* Test: Fail on entry point playbooks in commonRussell Teague2017-08-293-1/+1
|
* Remove remaining references to openshift-master.serviceClayton Coleman2017-08-082-2/+0
| | | | Prevents playbooks from accidentally restarting the master service.
* Merge pull request #4778 from jkaurredhat/drain_upgrade-1.6Scott Dodson2017-07-181-1/+1
|\ | | | | drain still pending in below files without fix :
| * drain still pending in below files without fix :jkaurredhat2017-07-181-1/+1
| | | | | | | | | | | | | | playbooks/common/openshift-cluster/upgrades/docker/docker_upgrade.yml playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml Signed-off-by: jkaurredhat <jkaur@redhat.com>
* | Add drain retries after 60 second delayScott Dodson2017-07-181-0/+4
| |
* | Wrap docker stop in retriesScott Dodson2017-07-181-1/+7
| |
* | Test docker restart with retries 3 delay 30Steve Milner2017-07-181-0/+4
| |
* | increase implicit 300s default timeout to explicit 600sJan Chaloupka2017-06-281-0/+1
|/
* Refactor docker upgrade playbooksRussell Teague2017-04-103-0/+97
| | | | | The playbooks were crossing byo/common boundaries for task includes. This moves all 'common' files/tasks into the 'common' folder.
* Merge pull request #2786 from dgoodwin/docker-1.12Scott Dodson2017-01-171-3/+3
|\ | | | | Begin requiring Docker 1.12.
| * Begin requiring Docker 1.12.Devan Goodwin2016-11-101-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Building off the work done for Docker 1.10, we now require Docker 1.12 by default. The upgrade process was already set to ensure you are running the latest docker during upgrade, and the standalone docker upgrade playbook can also be used if desired. As before, you can override this Docker 1.12 requirement by setting a docker_version=1.10.3 (or similar), and you can skip the default to upgrade docker by setting docker_upgrade=False.
* | Remove spurious argumentRodolfo Carvalho2017-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The script nuke_images.sh was introduced in 0c31d72be3bf32f848eedad9859a81ba858f8c8f and seems that the shell argument $1 was never used (the only $1 in the script back then refers to a field in a awk script). There was a reference to $2 that was always undefined/empty. The script was then simplified in b89c835e3235f2628b37de15713c311d1b5a4bad, removing any reference to $1 and $2. This commit cleans up the only call site to the shell script.
* | Use openshift.common.hostname when verifying API port available.Andrew Butcher2017-01-061-7/+5
| |
* | YAML LintingRussell Teague2016-12-121-2/+1
| | | | | | | | | | * Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
* | Silence warnings when using rpm directlyDag Wieers2016-12-081-0/+2
| |
* | Cleanup ovs file and restart docker on every upgrade.Devan Goodwin2016-11-302-27/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 3.3 one of our services lays down a systemd drop-in for configuring Docker networking to use lbr0. In 3.4, this has been changed but the file must be cleaned up manually by us. However, after removing the file docker requires a restart. This had big implications particularly in containerized environments where upgrade is a very fragile series of upgrading and service restarts. To avoid double docker restarts, and thus double service restarts in containerized environments, this change does the following: - Skip restart during docker upgrade, if it is required. We will restart on our own later. - Skip containerized service restarts when we upgrade the services themselves. - Clean shutdown of all containerized services. - Restart Docker. (always, previously this only happened if it needed an upgrade) - Ensure all containerized services are restarted. - Restart rpm node services. (always) - Mark node schedulable again. At the end of this process, docker0 should be back on the system.
* | Refactor to use Ansible package moduleRussell Teague2016-11-171-1/+1
|/ | | | | The Ansible package module will call the correct package manager for the underlying OS.
* Fix typosRodolfo Carvalho2016-10-191-1/+1
|
* upgrade: Don't check avail docker version if not already installed.Devan Goodwin2016-10-141-2/+4
|
* Use pre_upgrade tag instread of a dry run variable.Devan Goodwin2016-09-291-1/+1
|
* Merge pull request #2295 from dgoodwin/override-docker-upgradeScott Dodson2016-09-151-1/+1
|\ | | | | Allow overriding the Docker 1.10 requirement for upgrade.
| * Allow overriding the Docker 1.10 requirement for upgrade.Devan Goodwin2016-08-151-1/+1
| | | | | | | | Respect an explicit docker_version, and the use of docker_upgrade=False.
* | Reload docker facts after upgrading dockerScott Dodson2016-08-301-0/+4
|/
* Improvements for Docker 1.10+ upgrade image nuking.Devan Goodwin2016-08-111-0/+14
| | | | | | | | | | | | | | | | In a parallel step prior to real upgrade tasks, clear out all unused Docker images on all hosts. This should be relatively safe to interrupt as no real upgrade steps have taken place. Once into actual upgrade, we again clear all images only this time with force, and after stopping and removing all containers. Both rmi commands use a new and hopefully less error prone command to do the removal, this should avoid missed orphans as we were hitting before. Added some logging around the current image count before and after this step, most of them are only printed if we're crossing the 1.10 boundary but one does not, just for additional information in your ansible log.
* Shutdown Docker before upgrading the rpm.Devan Goodwin2016-08-101-0/+4
| | | | | This avoids the automatic image migration in 1.10, which can take a very long time and potentially cause rpm db corruption.
* Fixes for non-containerized separate etcd hosts.Devan Goodwin2016-06-281-1/+1
|
* More docker upgrade fixes.Devan Goodwin2016-06-272-21/+16
|
* Only nuke images when crossing the Docker 1.10 boundary in upgrade.Devan Goodwin2016-06-272-23/+21
|
* Allow skipping Docker upgrade during OpenShift upgrade.Devan Goodwin2016-06-241-0/+13
|
* Refactor 3.2 upgrade to avoid killing nodes without evac.Devan Goodwin2016-06-232-0/+89
We now handle the two pieces of upgrade that require a node evac in the same play. (docker, and node itself)