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.

Bug 691137

Summary: "service rhsmcertd start" reports [FAILED] on s390x and ppc64
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: bkearney, bugproxy, jkachuck, mbanas, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:40:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 568421, 684385    
Attachments:
Description Flags
/etc/init.d/rhsmcertd restart ; /etc/init.d/rhsmcertd status ; # console output in log.txt none

Description John Sefler 2011-03-27 00:32:08 UTC
Description of problem:
Calls to "service rhsmcertd start" reports [FAILED] on architectures s390x and ppc64.
However, the rhsmcertd actually does start despite the FAILED report.
This misbehavior does not happen on x86_64 or i386.


Version-Release number of selected component (if applicable):
[root@ibm-z10-05 ~]# rpm -q subscription-manager
subscription-manager-0.95.5-1.el6.s390x

[root@ibm-z10-05 ~]# uname -a
Linux ibm-z10-05.rhts.eng.bos.redhat.com 2.6.32-125.el6.s390x #1 SMP Mon Mar 21 10:20:35 EDT 2011 s390x s390x s390x GNU/Linux

How reproducible:
100%

Steps to Reproduce:
[root@ibm-z10-05 ~]# service rhsmcertd stop
Stopping rhsmcertd[  OK  ]
[root@ibm-z10-05 ~]# service rhsmcertd status
rhsmcertd is stopped
[root@ibm-z10-05 ~]# ps -ef | grep [rR]hsmcertd
[root@ibm-z10-05 ~]# service rhsmcertd start
Starting rhsmcertd 1[FAILED]
[root@ibm-z10-05 ~]# service rhsmcertd status
rhsmcertd (pid 55197) is running...
[root@ibm-z10-05 ~]# ps -ef | grep [rR]hsmcertd
root     55197     1  0 20:00 ?        00:00:00 /usr/bin/rhsmcertd 1
[root@ibm-z10-05 ~]# 

^^^ It is very strange that the service start reports FAILED while the succeeding calls to status and a ps call appear as though the service start was a success.  Is this a bug with rhsmcertd, or a bug with service?  or maybe its the return code that rhsmcertd returns.

Actual results:
Starting rhsmcertd 1[FAILED]

Expected results:
Starting rhsmcertd 1[  OK  ]




Additional info:
I have also seen this same misbehavior on ppc64
> [root@ibm-js22-03 ~]# uname -a
> Linux ibm-js22-03.rhts.eng.bos.redhat.com 2.6.32-124.el6.ppc64 #1
> SMP Wed Mar 16 11:45:11 EDT 2011 ppc64 ppc64 ppc64 GNU/Linux
>
> [root@ibm-js22-03 ~]# service rhsmcertd stop
> Stopping rhsmcertd[ OK ]
> [root@ibm-js22-03 ~]# service rhsmcertd status
> rhsmcertd is stopped
> [root@ibm-js22-03 ~]# service rhsmcertd start
> Starting rhsmcertd 1[FAILED]
> [root@ibm-js22-03 ~]# service rhsmcertd status
> rhsmcertd (pid 26023) is running...
> [root@ibm-js22-03 ~]# service rhsmcertd start
> rhsmcertd is already running

Comment 2 James Bowes 2011-03-31 12:15:20 UTC
The daemon wasn't setting a return code on success, only on failure. on s390x and ppc64, this resulted in a non-zero return code.

Fixed in master, rhel6, and rhel5.7 branches.

Comment 4 Bryan Kearney 2011-04-05 13:50:08 UTC
*** Bug 691577 has been marked as a duplicate of this bug. ***

Comment 5 IBM Bug Proxy 2011-04-05 13:54:57 UTC
Created attachment 489984 [details]
/etc/init.d/rhsmcertd restart ;  /etc/init.d/rhsmcertd status ; # console output in log.txt

Comment 7 John Sefler 2011-04-06 14:36:30 UTC
[root@ibm-js22-vios-02-lp1 ~]# rpm -q subscription-manager
subscription-manager-0.95.6-1.el6.ppc64

[root@ibm-js22-vios-02-lp1 ~]# service rhsmcertd stop
Stopping rhsmcertd[  OK  ]
[root@ibm-js22-vios-02-lp1 ~]# service rhsmcertd status
rhsmcertd is stopped
[root@ibm-js22-vios-02-lp1 ~]# ps -ef | grep [rR]hsmcertd
[root@ibm-js22-vios-02-lp1 ~]# service rhsmcertd start
Starting rhsmcertd 240[  OK  ]
[root@ibm-js22-vios-02-lp1 ~]# service rhsmcertd status
rhsmcertd (pid 4897) is running...
[root@ibm-js22-vios-02-lp1 ~]# ps -ef | grep [rR]hsmcertd
root      4897     1  0 10:19 ?        00:00:00 /usr/bin/rhsmcertd 240
[root@ibm-js22-vios-02-lp1 ~]# service rhsmcertd restart
Stopping rhsmcertd[  OK  ]
Starting rhsmcertd 240[  OK  ]

^^^ all expected behavior

VERIFIED ppc64

Comment 8 John Sefler 2011-04-06 15:29:27 UTC
[root@ibm-z10-32 ~]# rpm -q subscription-manager
subscription-manager-0.95.6-1.el6.s390x

[root@ibm-z10-32 ~]# service rhsmcertd stop
Stopping rhsmcertd[  OK  ]
[root@ibm-z10-32 ~]# service rhsmcertd status
rhsmcertd is stopped
[root@ibm-z10-32 ~]# ps -ef | grep [rR]hsmcertd
[root@ibm-z10-32 ~]# service rhsmcertd start
Starting rhsmcertd 240[  OK  ]
[root@ibm-z10-32 ~]# service rhsmcertd status
rhsmcertd (pid 37947) is running...
[root@ibm-z10-32 ~]# ps -ef | grep [rR]hsmcertd
root     37947     1  0 11:28 ?        00:00:00 /usr/bin/rhsmcertd 240
[root@ibm-z10-32 ~]# service rhsmcertd restart
Stopping rhsmcertd[  OK  ]
Starting rhsmcertd 240[  OK  ]

^^^ all expected behavior

VERIFIED s390x

Comment 9 John Sefler 2011-04-08 11:05:46 UTC
*** Bug 675125 has been marked as a duplicate of this bug. ***

Comment 10 IBM Bug Proxy 2011-04-11 11:51:12 UTC
------- Comment From Subrata Modak subrata.ibm.com 2011-04-11 07:47 EDT-------
Redhat,

This is still reproducible on SNAP2 on PPC64. Please see the results:

[root@devl4e-little-lp3 ~]# service rhsmcertd status
rhsmcertd (pid 1742) is running...
[root@devl4e-little-lp3 ~]# service rhsmcertd stop
Stopping rhsmcertd                                         [  OK  ]
[root@devl4e-little-lp3 ~]# service rhsmcertd start
Starting rhsmcertd 240                                     [FAILED]
[root@devl4e-little-lp3 ~]# service rhsmcertd status
rhsmcertd (pid 32008) is running...

[root@devl4e-little-lp3 ~]# uname -a
Linux <> 2.6.32-128.el6.ppc64 #1 SMP Mon Mar 28 21:49:38 EDT 2011 ppc64 ppc64 ppc64 GNU/Linux
[root@devl4e-little-lp3 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.1 Beta (Santiago)
Kernel \r on an \m

Regards--
Subrata

Comment 11 John Sefler 2011-04-11 13:52:39 UTC
I believe the error seen in comment 10 is because your build (built on Mar 28) was with subscription-manager 95.5 :
http://download.devel.redhat.com/devel/candidate-trees/RHEL6.1-20110328.1/6.1/Server/ppc64/os/Packages/subscription-manager-0.95.5-1.el6.ppc64.rpm

Newer builds of rhel6.1 appear to have the newer subscription-manager 95.6 which fixes this bug :
http://download.devel.redhat.com/devel/candidates/RHEL6.1-20110407.2/6/Server/x86_64/os/Packages/subscription-manager-0.95.6-1.el6.x86_64.rpm

I don't know what the SNAPSHOT numbers are.

Comment 12 IBM Bug Proxy 2011-04-15 11:00:54 UTC
------- Comment From Subrata Modak subrata.ibm.com 2011-04-15 06:53 EDT-------
> Ok. i can see this version on SS3. I will retest it and let you know.

Hello Redhat,

The issue is fixed on SS3. Thanks.

[root@devl4e-little-lp3 ~]# service rhsmcertd status
rhsmcertd (pid 1793) is running...
[root@devl4e-little-lp3 ~]# service rhsmcertd stop
[root@devl4e-little-lp3 ~]# service rhsmcertd status
[root@devl4e-little-lp3 ~]# service rhsmcertd start
[root@devl4e-little-lp3 ~]# service rhsmcertd status
rhsmcertd (pid 2186) is running...
[root@devl4e-little-lp3 ~]# rpm -qa | grep -i subscription-manager
subscription-manager-gnome-0.95.6-1.el6.ppc64
subscription-manager-firstboot-0.95.6-1.el6.ppc64
[root@devl4e-little-lp3 ~]# uname -a
Linux devl4e-little-lp3.austin.ibm.com 2.6.32-130.el6.ppc64 #1 SMP Tue Apr 5 19:52:26 EDT 2011 ppc64 ppc64 ppc64 GNU/Linux
[root@devl4e-little-lp3 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.1 Beta (Santiago)
Kernel \r on an \m

Regards--
Subrata

Comment 13 errata-xmlrpc 2011-05-19 13:40:40 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html