summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml
Commit message (Collapse)AuthorAgeFilesLines
* Test: Fail on entry point playbooks in commonRussell Teague2017-08-291-46/+0
|
* Remove remaining references to openshift-master.serviceClayton Coleman2017-08-081-1/+0
| | | | Prevents playbooks from accidentally restarting the master service.
* Wrap docker stop in retriesScott Dodson2017-07-181-1/+7
|
* 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.
* Cleanup ovs file and restart docker on every upgrade.Devan Goodwin2016-11-301-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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.
* More docker upgrade fixes.Devan Goodwin2016-06-271-5/+4
|
* Only nuke images when crossing the Docker 1.10 boundary in upgrade.Devan Goodwin2016-06-271-17/+10
|
* Refactor 3.2 upgrade to avoid killing nodes without evac.Devan Goodwin2016-06-231-0/+52
We now handle the two pieces of upgrade that require a node evac in the same play. (docker, and node itself)