Bug 748018

Summary: deltacloud fails to restart w/ selinux enforcing
Product: [Retired] CloudForms Cloud Engine Reporter: wes hayutin <whayutin>
Component: deltacloud-coreAssignee: Francesco Vollero <fvollero>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: rananda
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-21 17:51:24 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 wes hayutin 2011-10-21 17:50:24 UTC
Description of problem:

will have to reverify if this happens in a normal scenario.. for what its worth here is the current scenario

1. setup aeolus w/ selinux enforcing.. you can do so by renaming /usr/sbin/setenforce
2. install, configure.. so far so good I think
3. pull the latest conductor code from git, rake rpms, install new conductor rpms
4. aeolus-restart-services

get the following in the log..


Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

q^C
[root@qeblade5 noarch]# cat /var/log/deltacloud-core/mock.log 
/usr/bin/deltacloudd[8365]: >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
/usr/bin/deltacloudd[8365]: >> Debugging ON
/usr/bin/deltacloudd[8365]: >> Maximum connections set to 1024
/usr/bin/deltacloudd[8365]: >> Listening on localhost:3002, CTRL+C to stop
/usr/bin/deltacloudd[9012]: >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
/usr/bin/deltacloudd[9012]: >> Debugging ON
/usr/bin/deltacloudd[9012]: >> Maximum connections set to 1024
/usr/bin/deltacloudd[9012]: >> Listening on localhost:3002, CTRL+C to stop
/usr/bin/deltacloudd[9012]: /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server'
/usr/bin/deltacloudd[9012]: : 
/usr/bin/deltacloudd[9012]: no acceptor
/usr/bin/deltacloudd[9012]:  (
/usr/bin/deltacloudd[9012]: RuntimeError
/usr/bin/deltacloudd[9012]: )
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/tcp_server.rb:16:in `connect'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:53:in `start'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/bin/deltacloudd[9012]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/bin/deltacloudd[9012]: 	from /usr/share/deltacloud-core/bin/deltacloudd:223
/usr/bin/deltacloudd[9012]: 	from /usr/bin/deltacloudd:5:in `load'
/usr/bin/deltacloudd[9012]: 	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/utils.rb:105: warning: already initialized constant HEX
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/utils.rb:107: warning: already initialized constant TO_REMEMBER
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/utils.rb:108: warning: already initialized constant ASCII
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/errors.rb:128: warning: already initialized constant DEFAULT_CLOSE_ON_4XX_PROBABILITY
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/parsers.rb:47: warning: already initialized constant DEFAULT_XML_LIBRARY
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/awsbase.rb:66: warning: already initialized constant AMAZON_PROBLEMS
/usr/bin/deltacloudd[8365]: /usr/lib/ruby/gems/1.8/gems/aws-2.5.5/lib/ses/../awsbase/awsbase.rb:86: warning: already initialized constant DEFAULT_SIGNATURE_VERSION
/usr/bin/deltacloudd[9620]: >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
/usr/bin/deltacloudd[9620]: >> Debugging ON
/usr/bin/deltacloudd[9620]: >> Maximum connections set to 1024
/usr/bin/deltacloudd[9620]: >> Listening on localhost:3002, CTRL+C to stop
/usr/bin/deltacloudd[9620]: /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server'
/usr/bin/deltacloudd[9620]: : 
/usr/bin/deltacloudd[9620]: no acceptor
/usr/bin/deltacloudd[9620]:  (
/usr/bin/deltacloudd[9620]: RuntimeError
/usr/bin/deltacloudd[9620]: )
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/tcp_server.rb:16:in `connect'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:53:in `start'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/bin/deltacloudd[9620]: 	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/bin/deltacloudd[9620]: 	from /usr/share/deltacloud-core/bin/deltacloudd:223
/usr/bin/deltacloudd[9620]: 	from /usr/bin/deltacloudd:5:in `load'
/usr/bin/deltacloudd[9620]: 	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/bin/deltacloudd[8365]: >> Stopping ...
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api

/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `chdir': Permission denied - /root/rpmbuild/RPMS/noarch (Errno::EACCES)
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:171:in `run_command'
	from /usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
	from /usr/share/deltacloud-core/bin/deltacloudd:223
	from /usr/bin/deltacloudd:5:in `load'
	from /usr/bin/deltacloudd:5
Starting Deltacloud API :: mock :: http://localhost:3002/api


odd. yes.. and needs more poking at...


****
After temporarily disabling selinux.. setenforce 0, deltacloud started

Comment 1 wes hayutin 2011-10-21 17:51:24 UTC
actually it didnt start :(