Actions
Bug #13709
closedinit script reload doesn't work on EL7
% Done:
0%
Source:
Community (user)
Tags:
Backport:
hammer, infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Checked on ceph-radosgw-0.94.5-0.el7.centos.x86_64:
# /etc/init.d/ceph-radosgw reload Reloading ceph-radosgw configuration (via systemctl): Job for ceph-radosgw.service failed. See 'systemctl status ceph-radosgw.service' and 'journalctl -xn' for details. [FAILED]
This is because in the reload case, killproc $RADOSGW -SIGHUP
is handled by sh's built-in kill which doesn't understand -SIGHUP
- Output of the init script with
-x
Nov 06 09:36:33 cephrgwd01.cern.ch ceph-radosgw[31731]: + kill -SIGHUP 31250 Nov 06 09:36:33 cephrgwd01.cern.ch ceph-radosgw[31731]: + RC=1 Nov 06 09:36:33 cephrgwd01.cern.ch ceph-radosgw[31731]: + '[' 1 -eq 0 ']' Nov 06 09:36:33 cephrgwd01.cern.ch ceph-radosgw[31731]: + failure 'radosgw -SIGHUP' Nov 06 09:36:33 cephrgwd01.cern.ch ceph-radosgw[31731]: + local rc=1
- Manual confirmation of the issue:
sh-4.2# kill -SIGHUP `pidof radosgw` sh: kill: SIGHUP: invalid signal specification sh-4.2# kill -HUP `pidof radosgw` sh-4.2# echo $? 0 sh-4.2#
There's a pull request coming to fix this.
Actions