summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-11 13:33:16 -0700
committerGitHub <noreply@github.com>2017-10-11 13:33:16 -0700
commitb708f6353f3ac9c26a72a010e8737c08f72b0e45 (patch)
tree759b495a9032eaa053427cc9f3790fd2f535d89d
parent94656ef680c235f8777d48528c314357673d255c (diff)
parent884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1 (diff)
downloadopenshift-b708f6353f3ac9c26a72a010e8737c08f72b0e45.tar.gz
openshift-b708f6353f3ac9c26a72a010e8737c08f72b0e45.tar.bz2
openshift-b708f6353f3ac9c26a72a010e8737c08f72b0e45.tar.xz
openshift-b708f6353f3ac9c26a72a010e8737c08f72b0e45.zip
Merge pull request #5727 from mtnbikenc/fix-1499254
Automatic merge from submit-queue. 1499254 Ensure host was reached for proper conditional validation If a host was unreachable during module setup, facts will not be initialized properly and will result in later failures when stepping through host groups. Verification that 'openshift' is defined will skip any hosts which were previously unreachable and did not have facts initialized. Fixes 1499254 https://bugzilla.redhat.com/show_bug.cgi?id=1499254
-rw-r--r--playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
index 72de63070..fc1cbf32a 100644
--- a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
@@ -30,6 +30,7 @@
ansible_become: "{{ g_sudo | default(omit) }}"
with_items: " {{ groups['oo_nodes_to_config'] }}"
when:
+ - hostvars[item].openshift is defined
- hostvars[item].openshift.common.hostname in nodes_to_upgrade.results.results[0]['items'] | map(attribute='metadata.name') | list
changed_when: false