Ver Fonte

Don't upgrade nodes which only have dedicated etcd

Vadim Rutkovsky há 6 anos atrás
pai
commit
998831e513

+ 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 }}"