summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-04-11 16:41:48 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2016-04-12 16:08:54 -0400
commit0879620498b1251f3a375b9a5657c16dd571906a (patch)
treede68246c033f9932975f79a2de74ae1b08eddbfb /playbooks/common/openshift-cluster
parent5c7b510d2ac016c8bb09463307f9a471cc924a9d (diff)
downloadopenshift-0879620498b1251f3a375b9a5657c16dd571906a.tar.gz
openshift-0879620498b1251f3a375b9a5657c16dd571906a.tar.bz2
openshift-0879620498b1251f3a375b9a5657c16dd571906a.tar.xz
openshift-0879620498b1251f3a375b9a5657c16dd571906a.zip
Bug 1324728 - Ansible should not downgrade docker when installing 3.2 containerized env
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml
index 957a22ce9..eb12fcabe 100644
--- a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/upgrade.yml
@@ -11,6 +11,20 @@
- include: docker_upgrade.yml
when: not openshift.common.is_atomic | bool
+# The cli image is used by openshift_facts to determine the currently installed
+# version. We need to explicitly pull the latest image to handle cases where
+# the locally cached 'latest' tag is older the g_new_version.
+- name: Download cli image
+ hosts: oo_masters_to_config:oo_nodes_to_config
+ roles:
+ - openshift_facts
+ tasks:
+ - name: Pull Images
+ command: >
+ docker pull {{ item }}:latest
+ with_items:
+ - "{{ openshift.common.cli_image }}"
+
###############################################################################
# Upgrade Masters
###############################################################################