Bug 803727

Summary: silent ps -o pid,user,context,args -C matahari-brokerd
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: procpsAssignee: Jaromír Cápík <jcapik>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: albert, ooprala, ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-04 11:43:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milos Malik 2012-03-15 14:17:24 UTC
Description of problem:


Version-Release number of selected component (if applicable):
RHEL6.3-20120313.n.0
procps-3.2.8-21.el6.x86_64

How reproducible:
always

Steps to Reproduce:
# service matahari-broker start
Starting Matahari broker daemon:                           [  OK  ]
# ps -efZ | grep mata
unconfined_u:system_r:qpidd_t:s0 qpidd    4272     1  0 14:14 ?        00:00:00 /usr/sbin/matahari-brokerd --port=49000 --data-dir=/var/lib/matahari --no-module-dir --load-module=/usr/lib64/qpid/daemon/ssl.so --pid-dir /var/run/matahari --config /etc/matahari-broker.conf --daemon
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 4287 4173  0 14:14 pts/0 00:00:00 grep mata
# ps -o pid,user,context,args -C matahari-brokerd
  PID USER     CONTEXT                         COMMAND
# ps -efZ | grep mata
unconfined_u:system_r:qpidd_t:s0 qpidd    4272     1  0 14:14 ?        00:00:00 /usr/sbin/matahari-brokerd --port=49000 --data-dir=/var/lib/matahari --no-module-dir --load-module=/usr/lib64/qpid/daemon/ssl.so --pid-dir /var/run/matahari --config /etc/matahari-broker.conf --daemon
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 4290 4173  0 14:14 pts/0 00:00:00 grep mata
# service matahari-broker status
qpidd (pid  4272) is running...
# 
  
Actual results:
* "ps -o pid,user,context,args -C matahari-brokerd" does not print info about matahari-brokerd

Expected results:
* "ps -o pid,user,context,args -C matahari-brokerd" prints info about matahari-brokerd

Comment 2 RHEL Program Management 2012-07-10 06:46:50 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 01:56:47 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 4 Ondrej Oprala 2012-09-04 11:43:32 UTC
This actually isn't a bug, as the ps -C switch looks up processes based on their command name, which in this case is qpidd, which is forked after running the service, not matahari-brokerd. The grep match above actually matches one of qpidd's arguments. Closing NOTABUG.