From: Eric Harney Date: Wed, 26 Feb 2014 16:38:29 +0000 (-0500) Subject: GlusterFS: Increase snapshot delete job timeout to two hours X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5c79c08f7bb88484a96427d30244057f7cd7cdfc;p=openstack-build%2Fcinder-build.git GlusterFS: Increase snapshot delete job timeout to two hours Increase the timeout for Nova snapshot delete operations from ten minutes to two hours. This helps prevent Cinder from terminating operations prematurely that are still being processed by Nova. It is not uncommon for snapshot delete jobs to run for longer than ten minutes depending on the size of the snapshot and speed of the storage backend. This will be followed up with a more robust mechanism to keep track of snapshot job progress as a later effort. Related-Bug: 1273894 Change-Id: I1ad52568aed1ce1bf593e71704e481b6fe5f44fb --- diff --git a/cinder/volume/drivers/glusterfs.py b/cinder/volume/drivers/glusterfs.py index 01238d9d3..7b98d9153 100644 --- a/cinder/volume/drivers/glusterfs.py +++ b/cinder/volume/drivers/glusterfs.py @@ -799,7 +799,7 @@ class GlusterfsDriver(nfs.RemoteFsDriver): # An update of progress = '90%' means that Nova is done seconds_elapsed = 0 increment = 1 - timeout = 600 + timeout = 7200 while True: s = db.snapshot_get(context, snapshot['id'])