Bug 1067025

Summary: The init script actions reload and force-reload are not implemented correctly
Product: [Community] RDO Reporter: Jaroslav Henner <jhenner>
Component: distributionAssignee: Alan Pevec <apevec>
Status: CLOSED WONTFIX QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JunoCC: hguemar, jschluet, markmc, ndipanov, rbryant, srevivo, yeylon
Target Milestone: ---Keywords: Automation, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 18:32:49 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:

Description Jaroslav Henner 2014-02-19 14:23:36 UTC
Description of problem:
By the LSB, issuing
 * service something reload  
   should reload
   or exit with exit status 3 -- reload not supported
 * service something force-reload
   should do equivalent of try-restart if reload is not supported

This is not the case of current init scripts implementation.


Version-Release number of selected component (if applicable):
openstack-nova-api-2013.2.1-1.el6ost.noarch


How reproducible:
always


Steps to Reproduce:

# Ensure service is stopped
service openstack-nova-api stop

# Following should not (re)start if the service is stopped
service openstack-nova-api force-reload
Stopping openstack-nova-api:                               [FAILED]
Starting openstack-nova-api:                               [  OK  ]

# As nova should be able to reload (by SIGHUP), reload should 
# * rather send that signal
# * or it should exit with error 3, but it does:
[root@jhenner-node ~]# service openstack-nova-api start
[root@jhenner-node ~]# service openstack-nova-api reload; echo $?
Stopping openstack-nova-api:                               [  OK  ]
Starting openstack-nova-api:                               [  OK  ]
0


Actual results:
LSB incompliance


Expected results:
LSB compliance 


Additional info:
Incorrect behaviour may be causing problems with puppet and other conf-enforcement tools.

http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Comment 2 Jaroslav Henner 2014-02-19 14:34:14 UTC
at least cinder, heat, keystone suffers from the same problems. I am going to be lazy and switch the component to distribution instead of cloning this bug more times.

Comment 3 Jaroslav Henner 2014-02-19 19:09:11 UTC
I have also discovered that openstack-swift doesn't support force-reload nor reload, which it should, according to LSB.

Comment 6 hguemar 2015-12-16 18:32:49 UTC
RDO Juno is EOL + we don't support other init system except systemd