|
|
e9bfca |
From 92035bb2924846ea96aeeec9f9d76839c146eaca Mon Sep 17 00:00:00 2001
|
|
|
e9bfca |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
e9bfca |
Date: Tue, 5 Jun 2018 19:09:43 +0100
|
|
|
e9bfca |
Subject: [PATCH] v2v: -o rhv-upload: Set inactivity timeout (RHBZ#1586198).
|
|
|
e9bfca |
MIME-Version: 1.0
|
|
|
e9bfca |
Content-Type: text/plain; charset=UTF-8
|
|
|
e9bfca |
Content-Transfer-Encoding: 8bit
|
|
|
e9bfca |
|
|
|
e9bfca |
This increases the inactivity timeout for transfers from the default
|
|
|
e9bfca |
(60 seconds in oVirt < 4.2.3, 600 seconds in >= 4.2.3), up to 1 hour,
|
|
|
e9bfca |
so that we should never hit it for ordinary transfers.
|
|
|
e9bfca |
|
|
|
e9bfca |
Note this requires oVirt >= 4.2.3. The corresponding oVirt fix was
|
|
|
e9bfca |
https://bugzilla.redhat.com/1563278
|
|
|
e9bfca |
|
|
|
e9bfca |
I also replaced the deprecated ‘image’ parameter with ‘disk’.
|
|
|
e9bfca |
|
|
|
e9bfca |
Thanks: Nir Soffer, Daniel Erez.
|
|
|
e9bfca |
(cherry picked from commit f25404c65f8e078a3ca5bd5a1ab91343edd22506)
|
|
|
e9bfca |
---
|
|
|
e9bfca |
v2v/rhv-upload-plugin.py | 5 ++---
|
|
|
e9bfca |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
e9bfca |
|
|
|
e9bfca |
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
|
|
|
e9bfca |
index 791c9e7d2..b4557b83c 100644
|
|
|
e9bfca |
--- a/v2v/rhv-upload-plugin.py
|
|
|
e9bfca |
+++ b/v2v/rhv-upload-plugin.py
|
|
|
e9bfca |
@@ -123,9 +123,8 @@ def open(readonly):
|
|
|
e9bfca |
# Create a new image transfer.
|
|
|
e9bfca |
transfer = transfers_service.add(
|
|
|
e9bfca |
types.ImageTransfer(
|
|
|
e9bfca |
- image = types.Image(
|
|
|
e9bfca |
- id = disk.id
|
|
|
e9bfca |
- )
|
|
|
e9bfca |
+ disk = types.Disk(id = disk.id),
|
|
|
e9bfca |
+ inactivity_timeout = 3600,
|
|
|
e9bfca |
)
|
|
|
e9bfca |
)
|
|
|
e9bfca |
debug("transfer.id = %r" % transfer.id)
|
|
|
e9bfca |
--
|
|
|
e9bfca |
2.17.1
|
|
|
e9bfca |
|