httpd start failed during gnocchi installation

Bug #1605064 reported by yanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

1:packstack install openstack,during gnocchi installation,httpd start failed,Error msg as follows:
PuppetError: Error appeared during Puppet run: 192.168.1.254_gnocchi.pp
Error: /Stage[main]/Apache::Service/Service[httpd]: Failed to call refresh: Could not restart Service[httpd]: Execution of '/usr/bin/systemctl restart httpd' returned 1: Job for httpd.service failed because a timeout was exceeded. See "systemctl status httpd.service" and "journalctl -xe" for details.
You will find full trace in log /var/tmp/packstack/20160720-222023-92qT7K/manifests/192.168.1.254_gnocchi.pp.log

2:use systemctl commond to show the httpd status,the status is failed

3:use systemctl commond to restart httpd,wait a minute,the httpd become active
[root@localhost home]# systemctl status httpd
?httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           忖openstack-dashboard.conf
   Active: active (running) since Wed 2016-07-20 23:04:17 EDT; 3min 31s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 31046 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 409 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
  Process: 337 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
 Main PID: 635 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
   CGroup: /system.slice/httpd.service
           忖635 /usr/sbin/httpd -DFOREGROUND
           忖644 /usr/sbin/httpd -DFOREGROUND
           忖645 keystone-admin -DFOREGROUND
           忖646 keystone-main -DFOREGROUND
           忖647 /usr/sbin/httpd -DFOREGROUND
           忖648 /usr/sbin/httpd -DFOREGROUND
           忖649 /usr/sbin/httpd -DFOREGROUND
           忖650 /usr/sbin/httpd -DFOREGROUND
           忖651 /usr/sbin/httpd -DFOREGROUND
           忖652 /usr/sbin/httpd -DFOREGROUND
           忖653 /usr/sbin/httpd -DFOREGROUND
           忖654 /usr/sbin/httpd -DFOREGROUND
           忖655 /usr/sbin/httpd -DFOREGROUND
           忖656 /usr/sbin/httpd -DFOREGROUND
           忖657 /usr/sbin/httpd -DFOREGROUND

Jul 20 23:03:27 localhost.localdomain python[409]: ERROR:scss.ast:Function not found: function-exists:1
Jul 20 23:03:27 localhost.localdomain python[409]: ERROR:scss.ast:Function not found: function-exists:1
Jul 20 23:04:16 localhost.localdomain python[409]: Found 'compress' tags in:
Jul 20 23:04:16 localhost.localdomain python[409]: /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html
Jul 20 23:04:16 localhost.localdomain python[409]: /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
Jul 20 23:04:16 localhost.localdomain python[409]: /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html
Jul 20 23:04:16 localhost.localdomain python[409]: Compressing... done
Jul 20 23:04:16 localhost.localdomain python[409]: Compressed 5 block(s) from 3 template(s) for 2 context(s).
Jul 20 23:04:17 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
Jul 20 23:07:41 localhost.localdomain systemd[1]: Started The Apache HTTP Server.

so I guess if the timeout time of gnocchi installation is too short?

Revision history for this message
yanwei (yanwei) wrote :

This problem occurs every time in my test environment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.