소스 검색

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.
Devan Goodwin 8 년 전
부모
커밋
6d48f9f72d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      playbooks/common/openshift-cluster/upgrades/etcd/backup.yml

+ 1 - 1
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