Bug 790663

Summary: "Service unavailable or restarting" happens when SELinux is enforcing
Product: [Retired] Subscription Asset Manager Reporter: yu zheng <yuzheng>
Component: katello-configureAssignee: Bryan Kearney <bkearney>
Status: CLOSED DUPLICATE QA Contact: Eric Sammons <esammons>
Severity: high Docs Contact:
Priority: high    
Version: 1.0.0CC: khong
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-15 13:01:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 703617    

Description yu zheng 2012-02-15 06:09:09 UTC
Description of problem:
A newly deployed SAM server doesn't work. All headpin commands return "Service unavailable or restarting, try later".

Build: 2012-02-13.1 on puddle

Version-Release number of selected component (if applicable):
katello-headpin-all-0.1.135-2.el6.noarch
katello-cli-headpin-0.1.15-2.el6.noarch
thumbslug-0.0.21-1.el6.noarch
candlepin-0.5.18-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1.Install katello-headpin-all and configure to SAM successfully.
2.Use headpin command to get the status of the katello server.
[root@samserv ~]# headpin -u admin -p admin ping
Service unavailable or restarting, try later
3.Get status of SELinux.
[root@samserv ~]# getenforce
Enforcing
  
Actual results:
Katello service is unavailable.

Expected results:
Status of the katello server should display successfully after configuring.

Additional info:
If SElinux is closed manually, the SAM server will work normally.
[root@samserv ~]# setenforce 0
[root@samserv ~]# getenforce
Permissive
[root@samserv ~]# headpin -u admin -p admin ping
--------------------------------------------------------------------------------
                                 Katello Status

 Status   Service          Result   Duration   Message
--------------------------------------------------------------------------------
 ok
          candlepin        ok       2702ms
          candlepin_auth   ok       16ms
          elasticsearch    ok       3343ms
          katello_jobs     ok       1575ms

Comment 1 Bryan Kearney 2012-02-15 13:01:26 UTC

*** This bug has been marked as a duplicate of bug 790507 ***