garbd service status always returns 0, breaking puppet
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
Undecided
|
Raghavendra D Prabhu | |||
5.6 |
Fix Released
|
Undecided
|
Raghavendra D Prabhu |
Bug Description
occurs in:
percona-
service garbd status always returns 0. This breaks automation like puppet which assumes that with a successful return code, garbd is always running.
[DEV] root@bfd02-
* garb is running
[DEV] root@bfd02-
0
[DEV] root@bfd02-
...done.
[DEV] root@bfd02-
0
[DEV] root@bfd02-
* garb is not running
[DEV] root@bfd02-
0
Services should be returning non-0 codes when they're down.
For example:
[DEV] root@bfd02-
* Stopping NTP server ntpd [ OK ]
[DEV] root@bfd02-
* NTP server is not running
[DEV] root@bfd02-
3
I am able to reproduce this issue on PXC 5.6 setup
root@node1:~# dpkg -l | grep -i "percona" xtradb- cluster- client- 5.6 5.6.21- 25.8-938. trusty amd64 Percona XtraDB Cluster database client binaries xtradb- cluster- common- 5.6 5.6.21- 25.8-938. trusty amd64 Percona XtraDB Cluster database common files (e.g. /etc/mysql/my.cnf) xtradb- cluster- galera- 3.x 3.8.3390.trusty amd64 Galera components of Percona XtraDB Cluster xtradb- cluster- garbd-3. x 3.8.3390.trusty amd64 Garbd components of Percona XtraDB Cluster xtradb- cluster- server- 5.6 5.6.21- 25.8-938. trusty amd64 Percona XtraDB Cluster database server binaries
ii percona-xtrabackup 2.2.8-5059-1.trusty amd64 Open source backup tool for InnoDB and XtraDB
ii percona-
ii percona-
ii percona-
ii percona-
ii percona-
root@node1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
root@node1:~# service garbd status
* garb is running
root@node1:~# echo $?
0
root@node1:~# service garbd stop
...done.
root@node1:~# echo $?
0
root@node1:~# ps -ef | grep -v grep | grep garbd
root@node1:~#
root@node1:~# service garbd status
* garb is not running
root@node1:~# echo $?
0