2015-02-17 19:02:08 |
Matt Fischer |
bug |
|
|
added bug |
2015-02-17 19:02:34 |
Matt Fischer |
description |
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-garbd-staging-001:~# service garbd status
* garb is running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
[DEV] root@bfd02-garbd-staging-001:~# service garbd stop
...done.
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
[DEV] root@bfd02-garbd-staging-001:~# service garbd status
* garb is not running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
Services should be returning non-0 codes when they're down.
For example:
[DEV] root@bfd02-garbd-staging-001:~# service ntp stop
* Stopping NTP server ntpd [ OK ]
[DEV] root@bfd02-garbd-staging-001:~# service ntp status
* NTP server is not running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
3 |
occurs in:
percona-xtradb-cluster-garbd-3.x 3.9.3421.trusty
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-garbd-staging-001:~# service garbd status
* garb is running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
[DEV] root@bfd02-garbd-staging-001:~# service garbd stop
...done.
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
[DEV] root@bfd02-garbd-staging-001:~# service garbd status
* garb is not running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
0
Services should be returning non-0 codes when they're down.
For example:
[DEV] root@bfd02-garbd-staging-001:~# service ntp stop
* Stopping NTP server ntpd [ OK ]
[DEV] root@bfd02-garbd-staging-001:~# service ntp status
* NTP server is not running
[DEV] root@bfd02-garbd-staging-001:~# echo $?
3 |
|
2015-02-17 19:17:13 |
Matt Fischer |
attachment added |
|
garbd_status.patch https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1422863/+attachment/4321307/+files/garbd_status.patch |
|
2015-02-18 07:06:08 |
Valerii Kravchuk |
nominated for series |
|
percona-xtradb-cluster/5.5 |
|
2015-02-18 07:06:08 |
Valerii Kravchuk |
bug task added |
|
percona-xtradb-cluster/5.5 |
|
2015-02-18 07:06:08 |
Valerii Kravchuk |
nominated for series |
|
percona-xtradb-cluster/5.6 |
|
2015-02-18 07:06:08 |
Valerii Kravchuk |
bug task added |
|
percona-xtradb-cluster/5.6 |
|
2015-02-18 07:15:07 |
Valerii Kravchuk |
tags |
|
i51031 |
|
2015-02-18 09:19:43 |
Muhammad Irfan |
percona-xtradb-cluster/5.6: status |
New |
Confirmed |
|
2015-03-07 09:39:58 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.6: assignee |
|
Raghavendra D Prabhu (raghavendra-prabhu) |
|
2015-03-07 10:01:56 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.5: assignee |
|
Raghavendra D Prabhu (raghavendra-prabhu) |
|
2015-03-07 23:58:37 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.6: status |
Confirmed |
Fix Released |
|
2015-03-18 12:03:26 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.5: milestone |
|
5.5.41-25.11 |
|
2015-03-18 18:28:47 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.5: status |
New |
In Progress |
|
2015-03-25 13:24:22 |
Raghavendra D Prabhu |
percona-xtradb-cluster/5.5: status |
In Progress |
Fix Committed |
|
2015-03-30 16:29:10 |
Hrvoje Matijakovic |
percona-xtradb-cluster/5.5: status |
Fix Committed |
Fix Released |
|