Bug 1200187 - [Docs] [Installer] Failed to restart httpd when following the steps in the doc for Installing the Medium
Summary: [Docs] [Installer] Failed to restart httpd when following the steps in the do...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 6.0 (Juno)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: z2
: Installer
Assignee: Dan Macpherson
QA Contact: Suyog Sainkar
URL:
Whiteboard:
Depends On:
Blocks: 1199866
TreeView+ depends on / blocked
 
Reported: 2015-03-09 23:42 UTC by nlahouti
Modified: 2016-01-04 01:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-04 01:31:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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