Browse Source
Fix missing broken_etcd filter in recover control plane task (#7619)
pull/7623/head
Florian Ruynat
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
roles/recover_control_plane/etcd/tasks/main.yml
|
@ -24,6 +24,8 @@ |
|
|
- name: Set has_quorum fact |
|
|
- name: Set has_quorum fact |
|
|
set_fact: |
|
|
set_fact: |
|
|
has_quorum: "{{ etcd_endpoint_health.stderr_lines | select('match', '.*is healthy.*') | list | length >= etcd_endpoint_health.stderr_lines | select('match', '.*is unhealthy.*') | list | length }}" |
|
|
has_quorum: "{{ etcd_endpoint_health.stderr_lines | select('match', '.*is healthy.*') | list | length >= etcd_endpoint_health.stderr_lines | select('match', '.*is unhealthy.*') | list | length }}" |
|
|
|
|
|
when: |
|
|
|
|
|
- groups['broken_etcd'] |
|
|
|
|
|
|
|
|
- include_tasks: recover_lost_quorum.yml |
|
|
- include_tasks: recover_lost_quorum.yml |
|
|
when: |
|
|
when: |
|
|