pyclustercheck doesn't work as expected when available when donor is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Raghavendra D Prabhu |
Bug Description
see https:/
When it's started with -a 1 like this:
pyclustercheck -a 1
the result is not ok when the server is donor:
mysql -e "show global status like 'wsrep_
+------
| Variable_name | Value |
+------
| wsrep_local_
| wsrep_local_state | 2 |
| wsrep_local_
+------
CACHED: Percona XtraDB Cluster Node is not synced
Changing the if condition like bellow (addind int( ) )works:
elif res[0]['Value'] == '4' or (int(opts.
example:
mysql -e "show global status like 'wsrep_
+------
| Variable_name | Value |
+------
| wsrep_local_
| wsrep_local_state | 2 |
| wsrep_local_
+------
Percona XtraDB Cluster Node is synced
Related branches
Changed in percona-xtradb-cluster: | |
status: | Fix Committed → Fix Released |
#32811