Bug 1254447

Summary: Packstack --allinone fails while starting HTTPD service
Product: [Community] RDO Reporter: Kiran <kiran7193>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: KiloCC: aortega, derekh, fanxiaoguang008, kiran7193, realei, srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 16:00:47 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:

Description Kiran 2015-08-18 07:38:39 UTC
Description of problem:

[root@Kilo ~]# service httpd restart
Redirecting to /bin/systemctl restart  httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@Kilo ~]# systemctl status httpd.service -l
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Tue 2015-08-18 03:37:25 EDT; 6s ago
  Process: 16884 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 16882 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  Process: 16862 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
  Process: 16849 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput (code=exited, status=0/SUCCESS)
 Main PID: 16882 (code=exited, status=1/FAILURE)

Aug 18 03:37:25 Kilo python[16862]: /usr/lib/python2.7/site-packages/horizon/templates/horizon/_scripts.html
Aug 18 03:37:25 Kilo python[16862]: Compressing... done
Aug 18 03:37:25 Kilo python[16862]: Compressed 5 block(s) from 3 template(s).
Aug 18 03:37:25 Kilo httpd[16882]: AH00526: Syntax error on line 11 of /etc/httpd/conf.d/fcgid.conf:
Aug 18 03:37:25 Kilo httpd[16882]: Invalid command 'FcgidIPCDir', perhaps misspelled or defined by a module not included in the server configuration
Aug 18 03:37:25 Kilo systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 18 03:37:25 Kilo kill[16884]: kill: cannot find process ""
Aug 18 03:37:25 Kilo systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 18 03:37:25 Kilo systemd[1]: Failed to start The Apache HTTP Server.
Aug 18 03:37:25 Kilo systemd[1]: Unit httpd.service entered failed state.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 fanxiaoguagn 2015-11-07 05:02:34 UTC
I have the same errors when I use 
#packstack --allinone
ufter I do
  #yum update

----------------------------following errors-------------------------------
ERROR : Error appeared during Puppet run: 192.168.0.91_keystone.pp
Error: Could not start Service[httpd]: Execution of '/usr/bin/systemctl start httpd' returned 1: Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

[root@fxg-test-91 ~]# systemctl status httpd
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
   Active: failed (Result: exit-code) since Sat 2015-11-07 12:49:59 CST; 11min ago
  Process: 14799 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 14797 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 14797 (code=exited, status=1/FAILURE)

Nov 07 12:49:59 fxg-test-91 httpd[14797]: AH00526: Syntax error on line 11 of /etc/httpd/conf.d/fcgid.conf:
Nov 07 12:49:59 fxg-test-91 httpd[14797]: Invalid command 'FcgidIPCDir', perhaps misspelled or defined by a module not included in the server configuration
Nov 07 12:49:59 fxg-test-91 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 07 12:49:59 fxg-test-91 kill[14799]: kill: cannot find process ""
Nov 07 12:49:59 fxg-test-91 systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 07 12:49:59 fxg-test-91 systemd[1]: Failed to start The Apache HTTP Server.
Nov 07 12:49:59 fxg-test-91 systemd[1]: Unit httpd.service entered failed state.

Comment 2 Martin Magr 2015-11-09 12:12:37 UTC
[para@centos7 ~]$ sudo yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-kilo/rdo-release-kilo-1.noarch.rpm
[...snip...]
Installed:
  rdo-release.noarch 0:kilo-1                                                                                                                                 

Complete!
[para@centos7 ~]$ sudo yum install openstack-packstack
[...snip...]
Installed:
  openstack-packstack.noarch 0:2015.1-0.11.dev1616.g5526c38.el7                                                                                               

Dependency Installed:
  PyYAML.x86_64 0:3.10-11.el7                                                           jbigkit-libs.x86_64 0:2.0-11.el7                                      
  libjpeg-turbo.x86_64 0:1.2.90-5.el7                                                   libtiff.x86_64 0:4.0.3-14.el7                                         
  libwebp.x86_64 0:0.3.0-3.el7                                                          libyaml.x86_64 0:0.1.4-11.el7_0                                       
  openstack-packstack-puppet.noarch 0:2015.1-0.11.dev1616.g5526c38.el7                  openstack-puppet-modules.noarch 0:2015.1.9-4.el7                      
  pyOpenSSL.x86_64 0:0.13.1-3.el7                                                       python-docutils.noarch 0:0.11-0.2.20130715svn7687.el7                 
  python-netaddr.noarch 0:0.7.12-1.el7                                                  python-pillow.x86_64 0:2.0.0-17.gitd1c6db8.el7                        
  ruby.x86_64 0:2.0.0.598-25.el7_1                                                      ruby-irb.noarch 0:2.0.0.598-25.el7_1                                  
  ruby-libs.x86_64 0:2.0.0.598-25.el7_1                                                 rubygem-bigdecimal.x86_64 0:1.2.0-25.el7_1                            
  rubygem-io-console.x86_64 0:0.4.2-25.el7_1                                            rubygem-json.x86_64 0:1.7.7-25.el7_1                                  
  rubygem-psych.x86_64 0:2.0.0-25.el7_1                                                 rubygem-rdoc.noarch 0:4.0.0-25.el7_1                                  
  rubygems.noarch 0:2.0.14-25.el7_1                                                    

Complete!
[para@centos7 ~]$ packstack --allinone
[...snip...]
Adding Horizon manifest entries                      [ DONE ]
[...snip...]
 **** Installation completed successfully ******
[...snip...]
[para@centos7 ~]$ sudo openstack-status
[sudo] password for para: 
== Nova services ==
openstack-nova-api:                     active
openstack-nova-cert:                    active
openstack-nova-compute:                 active
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               active
openstack-nova-conductor:               active
== Glance services ==
openstack-glance-api:                   active
openstack-glance-registry:              active
== Keystone service ==
openstack-keystone:                     active
== Horizon service ==
openstack-dashboard:                    active
== neutron services ==
neutron-server:                         active
neutron-dhcp-agent:                     active
neutron-l3-agent:                       active
neutron-metadata-agent:                 active
neutron-openvswitch-agent:              active
== Swift services ==
openstack-swift-proxy:                  active
openstack-swift-account:                active
openstack-swift-container:              active
openstack-swift-object:                 active
== Cinder services ==
openstack-cinder-api:                   active
openstack-cinder-scheduler:             active
openstack-cinder-volume:                active
openstack-cinder-backup:                active
== Ceilometer services ==
openstack-ceilometer-api:               active
openstack-ceilometer-central:           active
openstack-ceilometer-compute:           active
openstack-ceilometer-collector:         active
openstack-ceilometer-alarm-notifier:    active
openstack-ceilometer-alarm-evaluator:   active
openstack-ceilometer-notification:      active
== Support services ==
mysqld:                                 inactive  (disabled on boot)
openvswitch:                            active
dbus:                                   active
target:                                 active
rabbitmq-server:                        active
memcached:                              active
== Keystone users ==
Warning keystonerc not sourced
[para@centos7 ~]$ 

RDO Kilo Packstack works ok for me on CentOS7. Please attach more information how to reproduce the problem, eg.: OS, openstack-packstack version, openstack-puppet-modules version and log of failed Puppet run.

Comment 3 Lei WANG 2015-11-21 09:41:54 UTC
(In reply to Kiran from comment #0)
> Description of problem:
> 
> [root@Kilo ~]# service httpd restart
> Redirecting to /bin/systemctl restart  httpd.service
> Job for httpd.service failed. See 'systemctl status httpd.service' and
> 'journalctl -xn' for details.
> [root@Kilo ~]# systemctl status httpd.service -l
> httpd.service - The Apache HTTP Server
>    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
>   Drop-In: /usr/lib/systemd/system/httpd.service.d
>            └─openstack-dashboard.conf
>    Active: failed (Result: exit-code) since Tue 2015-08-18 03:37:25 EDT; 6s
> ago
>   Process: 16884 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
> status=1/FAILURE)
>   Process: 16882 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
> (code=exited, status=1/FAILURE)
>   Process: 16862 ExecStartPre=/usr/bin/python
> /usr/share/openstack-dashboard/manage.py compress --force (code=exited,
> status=0/SUCCESS)
>   Process: 16849 ExecStartPre=/usr/bin/python
> /usr/share/openstack-dashboard/manage.py collectstatic --noinput
> (code=exited, status=0/SUCCESS)
>  Main PID: 16882 (code=exited, status=1/FAILURE)
> 
> Aug 18 03:37:25 Kilo python[16862]:
> /usr/lib/python2.7/site-packages/horizon/templates/horizon/_scripts.html
> Aug 18 03:37:25 Kilo python[16862]: Compressing... done
> Aug 18 03:37:25 Kilo python[16862]: Compressed 5 block(s) from 3 template(s).
> Aug 18 03:37:25 Kilo httpd[16882]: AH00526: Syntax error on line 11 of
> /etc/httpd/conf.d/fcgid.conf:
> Aug 18 03:37:25 Kilo httpd[16882]: Invalid command 'FcgidIPCDir', perhaps
> misspelled or defined by a module not included in the server configuration
> Aug 18 03:37:25 Kilo systemd[1]: httpd.service: main process exited,
> code=exited, status=1/FAILURE
> Aug 18 03:37:25 Kilo kill[16884]: kill: cannot find process ""
> Aug 18 03:37:25 Kilo systemd[1]: httpd.service: control process exited,
> code=exited status=1
> Aug 18 03:37:25 Kilo systemd[1]: Failed to start The Apache HTTP Server.
> Aug 18 03:37:25 Kilo systemd[1]: Unit httpd.service entered failed state.
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
> 
> Actual results:
> 
> 
> Expected results:
> 
> 
> Additional info:

I met the same issue when I deploy "allinone" at my CentOS 7
please check "/etc/httpd/conf.d/fcgid.conf" under CentOS
does "LoadModule fcgid_module modules/mod_fcgid.so" is configured at this file or not 

you can refer to: https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-fedora-14

Comment 5 Chandan Kumar 2016-05-19 16:00:47 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.