diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-08-10 10:40:20 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-08-10 10:40:20 -0300 |
commit | f67fcebdf7dde847c39b0ed450ce7267f2945ebe (patch) | |
tree | f7320d08a90d69a76096d7a036a675db328ad383 | |
parent | f555b4c341ff96d3c4f6bd86919c1a47b1193b0e (diff) | |
download | openshift-f67fcebdf7dde847c39b0ed450ce7267f2945ebe.tar.gz openshift-f67fcebdf7dde847c39b0ed450ce7267f2945ebe.tar.bz2 openshift-f67fcebdf7dde847c39b0ed450ce7267f2945ebe.tar.xz openshift-f67fcebdf7dde847c39b0ed450ce7267f2945ebe.zip |
Shutdown Docker before upgrading the rpm.
This avoids the automatic image migration in 1.10, which can take a very
long time and potentially cause rpm db corruption.
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml index 20d66522f..5fa4b7355 100644 --- a/playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml @@ -18,9 +18,13 @@ register: nuke_images_result when: docker_upgrade_nuke_images is defined and docker_upgrade_nuke_images | bool +- service: name=docker state=stopped + - name: Upgrade Docker action: "{{ ansible_pkg_mgr }} name=docker{{ '-' + docker_version }} state=present" +- service: name=docker state=started + - name: Restart containerized services service: name={{ item }} state=started with_items: |