RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 954188 - install fails if selinux is disabled
Summary: install fails if selinux is disabled
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-packstack
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Derek Higgins
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-21 18:32 UTC by Robert Harker
Modified: 2013-06-24 15:17 UTC (History)
5 users (show)

Fixed In Version: openstack-packstack-2013.1.1-0.8.dev601
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-24 15:17:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Robert Harker 2013-04-21 18:32:20 UTC
Description of problem:
If I try and install packstack on a system with selinux already disabled I get this error:

PackStackError: Error during puppet run :
err: /Stage[main]//Exec[setenforce 0]/
returns: change from notrun to 0 failed: setenforce 0 returned 1 instead of one of [0] at /var/tmp/packstack/defbe7b7c8f143baa728c7b6af557644/manifests/10.4.0.1 93_ring_swift.pp:56

Happens on both CentOS 6.4 and Fedora 18

Version-Release number of selected component (if applicable):
openstack-packstack.noarch         2013.1.1-0.5.dev538.el6    @openstack-grizzly


How reproducible:
Very

Steps to Reproduce:
1.Install CentOS or Fedora with selinux disabled
2. Run:
   packstack --allinone
  
Actual results:
PackStackError: Error during puppet run :
err: /Stage[main]//Exec[setenforce 0]/
returns: change from notrun to 0 failed: setenforce 0 returned 1 instead of one of [0] at /var/tmp/packstack/defbe7b7c8f143baa728c7b6af557644/manifests/10.4.0.1 93_ring_swift.pp:56

Expected results:


Additional info:
For additional information see:
http://openstack.redhat.com/forum/discussion/comment/69#Comment_69

Comment 1 Derek Higgins 2013-04-24 13:34:32 UTC
submitted fix to remove the call to setenfoce
https://review.openstack.org/27418

I don't think is required anymore and even if it was its a problem with policies not packstack

Comment 2 Jon Stanley 2013-04-29 20:05:52 UTC
In the meanwhile, I've replaced /usr/sbin/setenforce with a shell script that exits 0 to get past this. That should help Robert get installed in the meanwhile.


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