etcd should not fail when adding an already existing member (#6587)
This commit is contained in:
parent
5884eeb606
commit
706c7cb4f1
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
||||||
- name: Join Member | Add member to etcd cluster # noqa 301 305
|
- name: Join Member | Add member to etcd cluster # noqa 301 305
|
||||||
shell: "{{ bin_dir }}/etcdctl member add {{ etcd_member_name }} --peer-urls={{ etcd_peer_url }}"
|
shell: "{{ bin_dir }}/etcdctl member add {{ etcd_member_name }} --peer-urls={{ etcd_peer_url }}"
|
||||||
register: member_add_result
|
register: member_add_result
|
||||||
until: member_add_result.rc == 0
|
until: member_add_result.rc == 0 or 'Peer URLs already exists' in member_add_result.stderr
|
||||||
|
failed_when: member_add_result.rc != 0 and 'Peer URLs already exists' not in member_add_result.stderr
|
||||||
retries: "{{ etcd_retries }}"
|
retries: "{{ etcd_retries }}"
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
delay: "{{ retry_stagger | random + 3 }}"
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue