From 5c79c08f7bb88484a96427d30244057f7cd7cdfc Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 26 Feb 2014 11:38:29 -0500 Subject: [PATCH] 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 --- cinder/volume/drivers/glusterfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- 2.45.2