Bug 808082

Summary: Monitoring and Config not working with SELinux enabled
Product: [Community] Spacewalk Reporter: schuler.philipp
Component: ServerAssignee: Tomas Lestach <tlestach>
Status: CLOSED NEXTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.7CC: william
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-14 20:41:48 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: 1484117    

Description schuler.philipp 2012-03-29 14:14:21 UTC
Description of problem:
when having selinux enabled service wont start up properly for monitoring and config

Version-Release number of selected component (if applicable):
1.7 postgres backend , Centos 6


Steps to Reproduce:
1. setenforce 1
2. spacewalk-selinux-enable
3. spacewalk-service-start
  
Actual results:
2012-03-29 16:08:38 InstallSoftwareConfig: 	!! DBI connect('dbname=spaceschema','spaceuser',...) failed: could not connect to server: Permission denied
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"? at /usr/share/perl5/vendor_perl/RHN/DBI.pm line 72

	Starting InstallSoftwareConfig ...  [ FAIL ]
2012-03-29 16:08:38 InstallSoftwareConfig: WARNING: STARTED BUT *NOT* RUNNING
2012-03-29 16:08:38 InstallSoftwareConfig: ERRORS ENCOUNTERED DURING LAST ACTION:
2012-03-29 16:08:38 InstallSoftwareConfig: 	!! DBI connect('dbname=spaceschema','spaceuser',...) failed: could not connect to server: Permission denied
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"? at /usr/share/perl5/vendor_perl/RHN/DBI.pm line 72

2012-03-29 16:08:38 Monitoring: 	!! Monitoring configuration load failed
2012-03-29 16:08:38 Monitoring: 	!! Monitoring configuration not loaded - not starting MOC functions!
[ FAIL ]
2012-03-29 16:08:38 Monitoring: WARNING: STARTED BUT *NOT* RUNNING
2012-03-29 16:08:38 Monitoring: ERRORS ENCOUNTERED DURING LAST ACTION:
2012-03-29 16:08:38 Monitoring: 	!! Monitoring configuration load failed
2012-03-29 16:08:38 Monitoring: 	!! Monitoring configuration not loaded - not starting MOC functions!
Starting MonitoringScout ...  
2012-03-29 16:08:38 InstallSoftwareConfig: WARNING: STARTED BUT *NOT* RUNNING
2012-03-29 16:08:38 InstallSoftwareConfig: ERRORS ENCOUNTERED DURING LAST ACTION:
2012-03-29 16:08:38 InstallSoftwareConfig: 	!! DBI connect('dbname=spaceschema','spaceuser',...) failed: could not connect to server: Permission denied
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"? at /usr/share/perl5/vendor_perl/RHN/DBI.pm line 72

Expected results:
should startup without errors just like with selinux disabled

Additional info:

Comment 1 Michael Mráka 2013-10-07 07:08:35 UTC
*** Bug 1014909 has been marked as a duplicate of this bug. ***

Comment 3 schuler.philipp 2017-03-14 20:41:48 UTC
I'm closing this as it was affecting 1.7, now we are at 2.6, monitoring got dropped anyways

Comment 4 Eric Herget 2017-09-28 17:56:42 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.