浏览代码

Dedicated etcd nodes should not be added to oo_nodes_to_upgrade

Vadim Rutkovsky 6 年之前
父节点
当前提交
5059ee408a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml

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

@@ -42,5 +42,8 @@
       groups: oo_nodes_to_upgrade
       ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
       ansible_become: "{{ g_sudo | default(omit) }}"
+    when: item not in dedicated_etcds
+    vars:
+      dedicated_etcds: "{{ groups['oo_etcd_to_config'] | difference(groups['oo_masters']) }}"
     with_items: "{{ groups['temp_nodes_to_upgrade'] | default(groups['oo_nodes_to_config']) }}"
     changed_when: False