Blame SOURCES/0048-v2v-o-rhv-upload-Set-inactivity-timeout-RHBZ-1586198.patch

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