Selaa lähdekoodia

Don't upgrade nodes which only have dedicated etcd

Vadim Rutkovsky 7 vuotta sitten
vanhempi
commit
998831e513
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      playbooks/common/openshift-cluster/upgrades/pre/config.yml

+ 3 - 0
playbooks/common/openshift-cluster/upgrades/pre/config.yml

@@ -71,6 +71,9 @@
   - role: openshift_facts
   tasks:
   - import_tasks: verify_upgrade_targets.yml
+    vars:
+      dedicated_etcds: "{{ groups['oo_etcd_to_config'] | difference(groups['oo_masters']) }}"
+    when: inventory_hostname not in dedicated_etcds
 
 - name: Verify docker upgrade targets
   hosts: "{{ l_upgrade_docker_target_hosts }}"