Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of three problems:
A. some strange stuff during reload
B. stop&reload - don't know this
C. force-reload
Version-Release number of selected component (if applicable):
rhnsd-4.7.0-4.el5
How reproducible:
always
Steps to Reproduce:
A]
1.
[root@xen83 ~]# /etc/init.d/rhnsd reload
[root@xen83 ~]# echo $? [ OK ]
0
Actual results:
It places [OK] in wrong line
Expected results:
Reloading Red Hat Network Daemon: [OK]
B]
stop and reload
[root@xen83 ~]# /etc/init.d/rhnsd stop
Stopping Red Hat Network Daemon: [ OK ]
[root@xen83 ~]# /etc/init.d/rhnsd reload
[root@xen83 ~]# echo $? [FAILED]
0
When service is stopped and you try reload then it writes [failed] but return code is zero. I am not sure what should be correct message and correct return code here.
C]
'force-reload' has to be there somehow
service rhnsd force-reload
actual result
echo $?=1, which is wrong
expected result
# if it is unimplemented then error code should be 3
Additional info:
see https://fedoraproject.org/wiki/Packaging/SysVInitScript
I could not reproduce behaviour described in A]
Correct behaviour for B] should be not write anything on output at all.
Best fix for C] would be implement force-reload.
(In reply to comment #2)
> I could not reproduce behaviour described in A]
I still could see it with rhnsd-4.7.0-4.el5, is there some newer version?
[root@qa-psklenar ~]# /etc/init.d/rhnsd reload
[root@qa-psklenar ~]# #this is line after ---- >>>>>>>> [ OK ]
[root@qa-psklenar ~]# rpm -q rhnsd
rhnsd-4.7.0-4.el5
re B] hmm some script do not write anything at all (sshd) some print [FAILURE] (httpd). I choose the second behaviour, but now it should return status code 7 which is:
7: program is not running
Fixed in spacewalk git commits:
217731a7bcbb4c1966f00343e256a8b45359405b (C part)
bc56ff799287f2a799a3fe4ae529e5f35ab03db4 (B part)
Not cherrypicking to rhel6 as we will be rebasing within a month.
Yes, in beta1 should go:
rhnsd-4.8.1-2.el6.x86_64
But yes, it is still not there.
OK. I'm ignoring this part since rhnsd-4.8.1-2.el6.x86_64 obviously do not have this bug (A] part)
Changing to VERIFIED
Testing procedure:
- automation on i386, x86_64
- manual run on x86_64, RHEL6.0-20100422.12
Results:
A] output on rhel6 is neat
Reloading Red Hat Network Daemon: [ OK ]
B] 7 (program is not running) is returned
C] lsb force-reload is implemented
Verified against:
rhnsd-4.9.3-2.el6
Comment 11releng-rhel@redhat.com
2010-07-02 19:49:15 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.