Bug 1243365

Summary: No way to specify deployment timeout
Product: Red Hat OpenStack Reporter: Steven Hardy <shardy>
Component: python-rdomanager-oscpluginAssignee: Dougal Matthews <dmatthew>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: unspecified Docs Contact:
Priority: high    
Version: DirectorCC: akrivoka, calfonso, dmacpher, hbrock, jslagle, mburns, rhel-osp-director-maint, sasha
Target Milestone: gaKeywords: Triaged
Target Release: Director   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-rdomanager-oscplugin-0.0.8-41.el7ost Doc Type: Bug Fix
Doc Text:
A timeout could not be set, which meant deployments always timeout after one hour. This fix adds a timeout argument that allows users to set a custom timeout. It defaults to four hours.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:59:37 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 Steven Hardy 2015-07-15 10:07:02 UTC
Description of problem:
When deploying via the ucli, there's no way to specify the stack timeout, so the default value (1 hour, configurable via stack_action_timeout in heat.conf) is always used.

This is likely to be too low for large deployments, and it's less than the undercloud token expiry (set to 4 hours by default), so we should make it configurable via the CLI.

The heatclient convention for this is -t/--timeout

So we need something like:

openstack overcloud deploy --timeout 240

Which would result in a 4 hour timout (heatclient and the heat API expects the timeout in minutes)

The API call stack_args need to have timeout_mins added to them with this value.

Comment 3 Dougal Matthews 2015-07-15 10:19:41 UTC
Patch midstream https://review.gerrithub.io/#/c/239943/

Comment 6 Steven Hardy 2015-07-15 13:16:04 UTC
To clarify the workaround, if this isn't configurable via the CLI, you can set the global timeout in the heat config to a higher value:

- Edit /etc/heat/heat.conf on the undercloud to specify stack_action_timeout = 14400 (4 hours in seconds, matches the undercloud keystone token expiration)
- Restart the openstack-heat-engine process

This will give a global 4 hour timeout when not specifying any timeout via the CLI/API.

Comment 7 Hugh Brock 2015-07-17 09:53:25 UTC
I'm moving this back to GA since we have two other fixes we have to merge today anyway. It's been breaking a lot of our QE test deployments, I believe.

Comment 10 Alexander Chuzhoy 2015-07-21 15:12:01 UTC
Verified:
Environment:
instack-undercloud-2.1.2-21.el7ost.noarch


the timeout is specified in CLI with: -t <min>

tested with seeting it to 1 minute - the deployment exited after 1 minute.

Comment 12 errata-xmlrpc 2015-08-05 13:59:37 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://access.redhat.com/errata/RHEA-2015:1549