Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenStack Yoga #2

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions tasks/galera_server_cluster_state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
The cluster may be broken, the cluster state is not known to be good.
Fix the cluster state before re-running the playbooks. To ignore the
cluster state set '-e galera_ignore_cluster_state=true'.
when:
- _node_status.rc != 0
- (_node_status.stdout.split()[-1] | default(false)) in ["2", "4"]
# State 2 means Donor, State 4 means Synced
when: >-
_node_status.rc != 0
or (_node_status.stdout.split()[-1] | default(false)) not in ["2", "4"]

- name: Check cluster name
command: >
Expand All @@ -46,6 +47,6 @@
"/etc/mysql/conf.d/cluster.cnf" on the host, and the "wsrep_cluster_name"
value set in your running galera cluster. To ignore the
cluster state set '-e galera_ignore_cluster_state=true'.
when:
- _cluster_name.rc != 0
- (_cluster_name.stdout.split()[-1] | default(false)) != galera_cluster_name
when: >-
_cluster_name.rc != 0
or (_cluster_name.stdout.split()[-1] | default(false)) != galera_cluster_name