Bug 613920

Summary: piranha init script -- status and stop actions do not work well
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: piranhaAssignee: Marek Grac <mgrac>
Status: CLOSED CURRENTRELEASE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: cluster-maint, djansa, lhh
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: piranha-0.8.5-7.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 22:13:44 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:
Attachments:
Description Flags
Proposed patch none

Description Milos Malik 2010-07-13 08:51:13 UTC
Description of problem:
Both "status" and "stop" actions implemented by init script do not work well. Does not matter if SELinux is in enforcing or permissive mode. The result is always the same.

Version-Release number of selected component (if applicable):
ipvsadm-1.25-7.el6.i686
piranha-0.8.5-6.el6.i686
selinux-policy-3.7.19-31.el6.noarch
selinux-policy-targeted-3.7.19-31.el6.noarch

How reproducible:
always

Steps to Reproduce:
# getenforce 
Permissive
# ps auxZ | grep piranha
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 8308 0.0  0.1 4308 748 pts/0 S+ 10:44   0:00 grep piranha
# service piranha-gui start
Starting piranha-gui:                                      [  OK  ]
# ps auxZ | grep piranha
unconfined_u:system_r:piranha_web_t:s0 root 8320 0.4  1.1 24220  6064 ?        Ss   10:45   0:00 /usr/sbin/httpd -f /etc/sysconfig/ha/conf/httpd.conf
unconfined_u:system_r:piranha_web_t:s0 piranha 8322 0.0  0.5 24220 3052 ?      S    10:45   0:00 /usr/sbin/httpd -f /etc/sysconfig/ha/conf/httpd.conf
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 8324 0.0  0.1 4308 744 pts/0 S+ 10:45   0:00 grep piranha
# service piranha-gui status
piranha_gui is stopped
# service piranha-gui stop
Shutting down piranha-gui:                                 [FAILED]
# ps auxZ | grep piranha
unconfined_u:system_r:piranha_web_t:s0 root 8320 0.0  1.1 24220  6064 ?        Ss   10:45   0:00 /usr/sbin/httpd -f /etc/sysconfig/ha/conf/httpd.conf
unconfined_u:system_r:piranha_web_t:s0 piranha 8322 0.0  0.5 24220 3052 ?      S    10:45   0:00 /usr/sbin/httpd -f /etc/sysconfig/ha/conf/httpd.conf
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 8350 0.0  0.1 4308 748 pts/0 S+ 10:45   0:00 grep piranha
#
  
Actual results:


Expected results:


Additional info:
One of the httpd processes is running under root and the other is running under piranha user. Is it intentional?

Comment 2 Marek Grac 2010-07-14 10:06:25 UTC
Created attachment 431725 [details]
Proposed patch

Two problems due to change for SELinux:
 * different path to PID file
 * different application to run
   piranha status returns 'httpd is running' but this is only minor problem as piranha is in fact httpd

Comment 6 releng-rhel@redhat.com 2010-11-10 22:13:44 UTC
Red Hat Enterprise Linux 6.0 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.