From f67fcebdf7dde847c39b0ed450ce7267f2945ebe Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Wed, 10 Aug 2016 10:40:20 -0300 Subject: 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. --- playbooks/common/openshift-cluster/upgrades/docker/upgrade.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'playbooks/common/openshift-cluster/upgrades') 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: -- cgit v1.2.3