Browse Source
fix: incorrect member matching when removing etcd nodes (#11488)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/11499/head
ERIK
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
roles/remove-node/remove-etcd-node/tasks/main.yml
|
@ -26,7 +26,7 @@ |
|
|
- inventory_hostname in groups['etcd'] |
|
|
- inventory_hostname in groups['etcd'] |
|
|
|
|
|
|
|
|
- name: Lookup etcd member id |
|
|
- name: Lookup etcd member id |
|
|
shell: "set -o pipefail && {{ bin_dir }}/etcdctl member list | grep {{ node_ip }} | cut -d, -f1" |
|
|
|
|
|
|
|
|
shell: "set -o pipefail && {{ bin_dir }}/etcdctl member list | grep -w {{ node_ip }} | cut -d, -f1" |
|
|
args: |
|
|
args: |
|
|
executable: /bin/bash |
|
|
executable: /bin/bash |
|
|
register: etcd_member_id |
|
|
register: etcd_member_id |
|
|