소스 검색

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