Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1105607

Summary: clustercheck script should read variables from /etc/sysconfig/clustercheck
Product: Red Hat OpenStack Reporter: Ryan O'Hara <rohara>
Component: mariadb-galeraAssignee: Ryan O'Hara <rohara>
Status: CLOSED NEXTRELEASE QA Contact: Leonid Natapov <lnatapov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 6)CC: ajeain, sclewis
Target Milestone: rcKeywords: OtherQA
Target Release: 5.0 (RHEL 6)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-galera-5.5.37-5.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1122686 (view as bug list) Environment:
Last Closed: 2014-07-23 19:57:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122686    

Description Ryan O'Hara 2014-06-06 13:58:40 UTC
The 'clustercheck' helper script should read all variables from /etc/sysconfig/clustercheck. This file contains information required to check mariadb-galera cluster state, such as username, password, port, etc. If clustercheck cannot read variables from /etc/sysconfig/culstercheck, it will use default values which will almost certainly fail.

Running clustercheck on RHOS-5.0, RHEL-6.5 currently gives:

# clustercheck
HTTP/1.1 503 Service Unavailable
Content-Type: text/plain
Connection: close
Content-Length: 44

Percona XtraDB Cluster Node is not synced.

In this particular case this is wrong. The node is an synced member of the mariadb-galera cluster. The expected result is:

# clustercheck 
HTTP/1.1 200 OK
Content-Type: text/plain
Connection: close
Content-Length: 40

Percona XtraDB Cluster Node is synced.

Using 'bash -x' to run clustercheck makes the undelying mysql command visible, and clearly shows that the default values are being used, not the values in /etc/sysconfig/cluster.

Comment 1 Ryan O'Hara 2014-06-06 14:03:10 UTC
I actually fixed this upstream a while back:

https://github.com/rohara/percona-clustercheck/commit/d0f366eeb91b72aaf022342b886062366a4e5f63

But it never got pulled into a RHOS-5.0 build. Easy fix, just requires rebuild.

Comment 2 Ryan O'Hara 2014-06-06 21:52:29 UTC
The clustercheck script in rhos-5.0-rhel-7 branch is already up to date. This bug only exists in rhos-5.0-rhel-6 branch.

Comment 4 Ami Jeain 2014-07-17 14:49:37 UTC
part of an HA setup