Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1200187

Summary: [Docs] [Installer] Failed to restart httpd when following the steps in the doc for Installing the Medium
Product: Red Hat OpenStack Reporter: nlahouti
Component: documentationAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: Suyog Sainkar <ssainkar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: adahms, mburns, rhos-maint, sclewis, ssainkar, yeylon
Target Milestone: z2Keywords: Documentation, ZStream
Target Release: Installer   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-04 01:31:59 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: 1199866    

Description nlahouti 2015-03-09 23:42:35 UTC
Description of problem:

I followed the section '3.4. Preparing the Installation Medium' (from RHEL OSP6 installation doc) and after creating medium.conf and restarting the httpd service, I get error shown below.

1. /etc/httpd/conf.d/medium.conf:
Listen 8120
NameVirtualHost *:8120
<VirtualHost *:8120>
 DocumentRoot /var/www/html/
 ServerName server1.cisco.com
 <Directory "/var/www/html/">
 Options All Indexes FollowSymLinks
 Order allow,deny
 Allow from all
 </Directory>
</VirtualHost>

2. then restarting httpd, I get the following error:

# systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
#
# systemctl status -l httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2015-03-09 10:08:50 PDT; 2min 33s ago
  Process: 32517 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 10801 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  Process: 32515 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 32515 (code=exited, status=1/FAILURE)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"

Mar 09 10:08:50 server1 httpd[32515]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf.d/medium.conf:2
Mar 09 10:08:50 server1 httpd[32515]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:8120
Mar 09 10:08:50 server1 httpd[32515]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:8120
Mar 09 10:08:50 server1 httpd[32515]: no listening sockets available, shutting down
Mar 09 10:08:50 server1 httpd[32515]: AH00015: Unable to open logs
Mar 09 10:08:50 server1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 09 10:08:50 server1 systemd[1]: Failed to start The Apache HTTP Server.
Mar 09 10:08:50 server1 systemd[1]: Unit httpd.service entered failed state.
#


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

How reproducible:
shown in the discription

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Mike Burns 2015-03-10 00:43:38 UTC
The problem here is selinux.  The doc needs an additional step:

If you run selinux enforcing, you need to run:

semanage port -a -t http_port_t -p tcp 8120

before restarting httpd.

Comment 6 Dan Macpherson 2015-03-10 18:36:09 UTC
I'm on it. Fix to be published this week.

Comment 10 Dan Macpherson 2015-06-25 01:45:09 UTC
ssainkar -- Any updates from peer review?

Comment 12 Andrew Dahms 2016-01-04 01:31:59 UTC
This content is now live on the Customer Portal; closing.