summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-11-28 15:21:26 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2016-11-28 15:21:26 -0400
commit6d48f9f72d47824e4c7a5dd3d358a5ba2cf62b9b (patch)
treea0c6d2525561cc7e8f966f5c1d126508e7e64507
parent90fb07f40aa3945e71d3941bca54867c649bc95f (diff)
downloadopenshift-6d48f9f72d47824e4c7a5dd3d358a5ba2cf62b9b.tar.gz
openshift-6d48f9f72d47824e4c7a5dd3d358a5ba2cf62b9b.tar.bz2
openshift-6d48f9f72d47824e4c7a5dd3d358a5ba2cf62b9b.tar.xz
openshift-6d48f9f72d47824e4c7a5dd3d358a5ba2cf62b9b.zip
Fix invalid embedded etcd fact in etcd upgrade playbook.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1398549 Was getting a different failure here complaining that openshift was not in the facts, as we had not loaded facts for the first master during playbook run. However this check was used recently in upgrade_control_plane and should be more reliable.
-rw-r--r--playbooks/common/openshift-cluster/upgrades/etcd/backup.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml b/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
index 57d4fe4b6..b7f0267c1 100644
--- a/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
+++ b/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
@@ -1,7 +1,7 @@
- name: Backup etcd
hosts: etcd_hosts_to_backup
vars:
- embedded_etcd: "{{ hostvars[groups.oo_first_master.0].openshift.master.embedded_etcd }}"
+ embedded_etcd: "{{ groups.oo_etcd_to_config | default([]) | length == 0 }}"
timestamp: "{{ lookup('pipe', 'date +%Y%m%d%H%M%S') }}"
roles:
- openshift_facts