Bug 1045321

Summary: Return exit code 134 when rhsmcertd is started and status-checked.
Product: Red Hat Enterprise Linux 7 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WORKSFORME QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney, candlepin-bugs, gxing, liliu, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-10 02:47:47 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:
Bug Depends On:    
Bug Blocks: 863175    

Description qianzhan 2013-12-20 07:10:13 UTC
Description of problem:
Return exit code 134 when rhsmcertd is started and status-checked.

Version-Release number of selected component (if applicable):
subscription-manager: 1.10.8-1.el7
python-rhsm: 1.10.8-1.el7


How reproducible:
always

Steps to Reproduce:
1. Stop the rhsmcertd service 
[root@dhcp-65-40 ~]# service rhsmcertd stop
Redirecting to /bin/systemctl stop  rhsmcertd.service

2. Check the exit code

[root@dhcp-65-40 ~]# service rhsmcertd status
Redirecting to /bin/systemctl status  rhsmcertd.service
rhsmcertd.service - Enable periodic update of entitlement certificates.
   Loaded: loaded (/usr/lib/systemd/system/rhsmcertd.service; enabled)
   Active: inactive (dead) since Fri 2013-12-20 02:04:30 EST; 1min 17s ago
  Process: 12348 ExecStart=/usr/bin/rhsmcertd (code=exited, status=0/SUCCESS)
 Main PID: 12349 (code=killed, signal=TERM)

Dec 20 02:02:38 dhcp-65-40.nay.redhat.com systemd[1]: Starting Enable periodi...
Dec 20 02:02:38 dhcp-65-40.nay.redhat.com systemd[1]: Started Enable periodic...
Dec 20 02:03:17 dhcp-65-40.nay.redhat.com systemd[1]: Started Enable periodic...
Dec 20 02:04:30 dhcp-65-40.nay.redhat.com systemd[1]: Stopping Enable periodi...
Dec 20 02:04:30 dhcp-65-40.nay.redhat.com systemd[1]: Stopped Enable periodic...
Dec 20 02:05:45 dhcp-65-40.nay.redhat.com systemd[1]: Stopped Enable periodic...
Hint: Some lines were ellipsized, use -l to show in full.
[root@dhcp-65-40 ~]# echo $?
3


3. Start the rhsmcertd service
[root@dhcp-65-40 ~]# service rhsmcertd start
Redirecting to /bin/systemctl start  rhsmcertd.service

4. Check the exit code
[root@dhcp-65-40 ~]# service rhsmcertd status
Redirecting to /bin/systemctl status  rhsmcertd.service
rhsmcertd.service - Enable periodic update of entitlement certificates.
   Loaded: loaded (/usr/lib/systemd/system/rhsmcertd.service; enabled)
   Active: active (running) since Fri 2013-12-20 02:06:26 EST; 12s ago
  Process: 13111 ExecStart=/usr/bin/rhsmcertd (code=exited, status=0/SUCCESS)
 Main PID: 13112 (rhsmcertd)
   CGroup: /system.slice/rhsmcertd.service
           └─13112 /usr/bin/rhsmcertd
Assertion 'n_pids > 0' failed at src/shared/cgroup-show.c:47, function show_pid_array(). Aborting.
Aborted (core dumped)

[root@dhcp-65-40 ~]# echo $?
134

Actual results:
As step 4.

Expected results:
The exit code should be 0 after rhsmcertd is started and status-checked.

Additional info:

Comment 2 qianzhan 2014-01-09 08:04:49 UTC
Hi,

I verified this bug with new build (RHEL-7.0-20140108.0), and it does not exist any more. So I believe the bug has been fixed in the new build. 

Is there anyone can set it as ON_QA status so that I can move it from ON_QA to VERIFIED?



The following is my verification:

1. Version-Release number of selected component:

[root@dhcp-65-192 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 1.4.3.23-1.el6sam_splice-Headpin
subscription-manager: 1.10.10-1.el7
python-rhsm: 1.10.10-1.el7


2. Start the rhsmcertd service:
 
[root@dhcp-65-192 ~]# service rhsmcertd start
Redirecting to /bin/systemctl start  rhsmcertd.service

3. Check the exit code

[root@dhcp-65-192 ~]# service rhsmcertd status
Redirecting to /bin/systemctl status  rhsmcertd.service
rhsmcertd.service - Enable periodic update of entitlement certificates.
   Loaded: loaded (/usr/lib/systemd/system/rhsmcertd.service; enabled)
   Active: active (running) since Thu 2014-01-09 00:45:48 CST; 30min ago
  Process: 9384 ExecStart=/usr/bin/rhsmcertd (code=exited, status=0/SUCCESS)
 Main PID: 9385 (rhsmcertd)
   CGroup: /system.slice/rhsmcertd.service
           └─9385 /usr/bin/rhsmcertd

Jan 09 00:45:48 dhcp-65-192.nay.redhat.com systemd[1]: Starting Enable period...
Jan 09 00:45:48 dhcp-65-192.nay.redhat.com systemd[1]: Started Enable periodi...
Jan 09 01:15:48 dhcp-65-192.nay.redhat.com systemd[1]: Started Enable periodi...
Hint: Some lines were ellipsized, use -l to show in full.


[root@dhcp-65-192 ~]# echo $?
0