Bug 920810 - [ORIGIN]openshift-origin-console spec has incorrect path for semanage
Summary: [ORIGIN]openshift-origin-console spec has incorrect path for semanage
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 20:02 UTC by John R
Modified: 2015-05-15 01:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-02 13:59:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John R 2013-03-12 20:02:44 UTC
Description of problem:

openshift-origin-console.spec in the %post section has:

#selinux updated
/sbin/semanage -i - <<_EOF

At least on centos, the path is /usr/sbin/semanage.  It could only be a problem on rhel/centos.

Version-Release number of selected component (if applicable):

openshift/master

How reproducible:

always

Steps to Reproduce:
1. Build openshift-origin-console
2. Install package
3. See error
  
Actual results:

(from a yum update)

Stopping openshift-console: [  OK  ]
/var/www/openshift/console /
Starting openshift-console: [  OK  ]
/var/tmp/rpm-tmp.1KyvTt: line 8: /sbin/semanage: No such file or directory

Expected results:

No error

Additional info:

Comment 1 Rob Millner 2013-03-15 17:35:13 UTC
Fixed in commit c7893eaba4.

Comment 2 Peter Ruan 2013-03-18 23:09:24 UTC
verified with oso-fedora-122... path semanage is in the system $PATH now.

[root@ec2-23-22-166-80 ec2-user]# which semanage
/sbin/semanage


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