Bug 808082 - Monitoring and Config not working with SELinux enabled
Summary: Monitoring and Config not working with SELinux enabled
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
: 1014909 (view as bug list)
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2012-03-29 14:14 UTC by schuler.philipp
Modified: 2019-10-10 09:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-14 20:41:48 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.