|
|
3efd08 |
From a4433085bf38719bd22a7cfe507c503885c839f2 Mon Sep 17 00:00:00 2001
|
|
|
3efd08 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
3efd08 |
Date: Tue, 4 Feb 2020 14:39:39 +0000
|
|
|
3efd08 |
Subject: [PATCH] openstack: Increase Cinder volume attach timeout to 5 minutes
|
|
|
3efd08 |
(RHBZ#1685032).
|
|
|
3efd08 |
|
|
|
3efd08 |
In some cases we have observed the time taken for a Cinder volume to
|
|
|
3efd08 |
attach to the conversion appliance can be longer than the current 60
|
|
|
3efd08 |
seconds. Increase the timeout to 5 minutes.
|
|
|
3efd08 |
|
|
|
3efd08 |
Thanks: Ming Xie.
|
|
|
3efd08 |
|
|
|
3efd08 |
(cherry picked from commit e2ce290f6e366716f857eeaddc1dc680e5608c80
|
|
|
3efd08 |
in virt-v2v)
|
|
|
3efd08 |
---
|
|
|
3efd08 |
v2v/output_openstack.ml | 4 ++--
|
|
|
3efd08 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
3efd08 |
|
|
|
3efd08 |
diff --git a/v2v/output_openstack.ml b/v2v/output_openstack.ml
|
|
|
3efd08 |
index d187f1d5d..bebf9af18 100644
|
|
|
3efd08 |
--- a/v2v/output_openstack.ml
|
|
|
3efd08 |
+++ b/v2v/output_openstack.ml
|
|
|
3efd08 |
@@ -38,7 +38,7 @@ let openstack_binary = "openstack"
|
|
|
3efd08 |
let available_timeout = 300 (* seconds *)
|
|
|
3efd08 |
|
|
|
3efd08 |
(* Timeout waiting for Cinder volumes to attach to the appliance. *)
|
|
|
3efd08 |
-let attach_timeout = 60 (* seconds *)
|
|
|
3efd08 |
+let attach_timeout = 300 (* seconds *)
|
|
|
3efd08 |
|
|
|
3efd08 |
(* The -oo options supported by this output method. *)
|
|
|
3efd08 |
type os_options = {
|
|
|
3efd08 |
@@ -336,7 +336,7 @@ class output_openstack output_conn output_password output_storage
|
|
|
3efd08 |
if String.length id > prefix_len then String.sub id 0 prefix_len
|
|
|
3efd08 |
else id in
|
|
|
3efd08 |
|
|
|
3efd08 |
- with_timeout
|
|
|
3efd08 |
+ with_timeout ~sleep:5
|
|
|
3efd08 |
(sprintf (f_"waiting for cinder volume %s to attach to the conversion appliance") id)
|
|
|
3efd08 |
attach_timeout
|
|
|
3efd08 |
(fun () ->
|
|
|
3efd08 |
--
|
|
|
3efd08 |
2.25.4
|
|
|
3efd08 |
|