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