Bug 1297757

Summary: Increase start timeout for systemd hook
Product: Red Hat OpenStack Reporter: Matthias Runge <mrunge>
Component: python-django-horizonAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: aortega, athomas, augol, jschluet, mrunge, rbiba, yeylon
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-horizon-8.0.0-10.el7ost Doc Type: Bug Fix
Doc Text:
Previously, no timeout was specified in horizon's systemd snippet for httpd, so the standard one-minute timeout was used when waiting for httpd to fully start up. In some cases, however, especially when running in a virtualized or a very loaded environment, the startup takes longer. Consequently, a failure from systemd sometimes occurred even if httpd was already running. With this update, the timeout has been set to two minutes, which resolves the problem.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:22:02 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 Matthias Runge 2016-01-12 12:05:33 UTC
Description of problem:
under some circumstances, the standard timeout (60 sec) is not enough for startup. This can happen, when starting everything fully virtualized on a slow or loaded machine.

We should increase the timeout (before it is marked as failed) to 2 mins.


[Service]
ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear
ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force
TimeoutStartSec=2min

[Unit]
After=memcached.service



Version-Release number of selected component (if applicable):
openstack-dashboard-8.0.0-8.el7ost.noarch

Comment 4 Amit Ugol 2016-01-25 15:47:40 UTC
# grep TimeoutStartSec /usr/lib/systemd/system/httpd.service.d/openstack-dashboard.conf 
TimeoutStartSec=2min

Comment 5 errata-xmlrpc 2016-04-07 21:22:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html