Bug 1084836
Summary: | pulp-server init script returns wrong exit code with 'status' argument when it's stopped | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Satoru SATOH <ssato> | ||||||
Component: | RHUA | Assignee: | RHUI Bug List <rhui-bugs> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Irina Gulina <igulina> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 2.1.3 | CC: | cduryee, igulina, pcreech, tsanders | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 3.0.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-03-01 22:08:08 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: | |||||||||
Attachments: |
|
Description
Satoru SATOH
2014-04-07 00:13:34 UTC
Created attachment 883445 [details] The patch for /etc/rc.d/init.d/pulp-server to make it compatible with LSB init script spec. I missed the explanation of the LSB init script spec [1], In case of an error while processing any init-script action except for status, the init script shall print an error message and exit with a non-zero status code: 1 generic or unspecified error (current practice) 2 invalid or excess argument(s) 3 unimplemented feature (for example, "reload") ... and updated the patch to make it comply with the above. [1] http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html Example session log of /etc/rc.d/init.d/pulp-server with the patch applied: [root@rhua ~]# service pulp-server try-restart; echo $? Not implemented: try-restart 3 [root@rhua ~]# service pulp-server reload; echo $? Not implemented: reload 3 [root@rhua ~]# service pulp-server force-reload; echo $? Not implemented: force-reload 3 [root@rhua ~]# service pulp-server monitor; echo $? Usage: pulp-server {init|start|stop|status|restart} 2 [root@rhua ~]# This should be resolved by the newer pulp version in RHUI-3 >> for i in httpd qpidd mongod; do systemctl stop $i; done ... >> systemctl status httpd; echo $1 ... 3 >> systemctl status qpidd; echo $1 ... 3 >> systemctl status mongod; echo $1 ... 3 Checked on RHUI3 iso 20160531 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0367 |