Bug 893562

Summary: [engine-setup] Fails to setup ports when SElinux is disabled.
Product: [Retired] oVirt Reporter: Kiril Nesenko <knesenko>
Component: ovirt-engine-installerAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.2CC: acathrow, chuck, dfediuck, iheim, jkt, mail, rmj, sstsalazar, yohmura
Target Milestone: ---Keywords: Regression
Target Release: 3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 905443 (view as bug list) Environment:
Last Closed: 2013-09-23 07:35:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 905443, 953347    
Attachments:
Description Flags
logs none

Description Kiril Nesenko 2013-01-09 13:09:01 UTC
Created attachment 675538 [details]
logs

Description of problem:
engine-setup fails to setup http port when selinux is disabled.

[root@vm-17-135 yum.repos.d]# engine-setup 
Welcome to oVirt Engine setup utility

In order to proceed the installer must stop the ovirt-engine service
Would you like to stop the ovirt-engine service? (yes|no): yes
 oVirt Engine uses httpd to proxy requests to the application server.
It looks like the httpd installed locally is being actively used.
The installer can override current configuration .
Alternatively you can use JBoss directly (on ports higher than 1024)
Do you wish to override current httpd configuration and restart the service? ['yes'| 'no']  [yes] : 
HTTP Port  [80] : 
Error: failed adding port 80 to http_port_t because it is already preallocated in selinux.
Please choose a different port.
HTTP Port  [80] : 8080
Error: failed adding port 8080 to http_port_t because it is already preallocated in selinux.
Please choose a different port.
HTTP Port  [80] : 9999
Error: failed adding port 9999 to http_port_t because it is already preallocated in selinux.
Please choose a different port.
HTTP Port  [80] : 5678
Error: failed adding port 5678 to http_port_t because it is already preallocated in selinux.
Please choose a different port.


Version-Release number of selected component (if applicable):
ovirt-engine-3.2.0-1.20130109.gitd1d2442.fc18.noarch

How reproducible:
Always

Steps to Reproduce:
1. Disable selinux and run setup.
2.
3.
  
Actual results:
Fails to setup ports

Expected results:
Need to print nice error message to a user - that selinux is disabled.

Additional info:

Comment 3 Sander Salazar 2013-01-18 00:50:10 UTC
I'd like to confirm that as today,with a clean install and the system fully updated, the problem remains.

Comment 4 Charles Lacroix 2013-01-22 05:23:17 UTC
I also get the same issue with ovirt 3.1 and selinux disabled.

Comment 5 Alex Lourie 2013-01-23 20:48:36 UTC
patch uploaded for review: http://gerrit.ovirt.org/#/c/11345/

Comment 11 Dennis Böck 2013-02-21 09:11:26 UTC
Today I was able to reproduce the (I thought patched) bug with the most current software of Fedora 18 and Ovirt 3.2.
Is there any other solution (workaround)?

Comment 12 Itamar Heim 2013-02-27 21:26:15 UTC
(In reply to comment #11)
> Today I was able to reproduce the (I thought patched) bug with the most
> current software of Fedora 18 and Ovirt 3.2.
> Is there any other solution (workaround)?

Dennis - most recent as 'nightly', or 3.2 GA?

Comment 13 Dennis Böck 2013-03-04 08:52:46 UTC
Sorry, I used 3.2 GA. I thought the patch is included, since it was finished before the 3.2 release.

Comment 14 Itamar Heim 2013-08-21 16:42:44 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 15 Itamar Heim 2013-09-23 07:35:38 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)