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
parent
commit
db0138b2f9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/remove-node/remove-etcd-node/tasks/main.yml

2
roles/remove-node/remove-etcd-node/tasks/main.yml

@ -26,7 +26,7 @@
- inventory_hostname in groups['etcd']
- 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:
executable: /bin/bash
register: etcd_member_id

Loading…
Cancel
Save