Blame SOURCES/0035-v2v-change-QXL-ResourceType-in-OVirt-flavour-RHBZ-15.patch

d0ea73
From 77604b91ec01ddd7961e69b70727b8e8c6e4c50b Mon Sep 17 00:00:00 2001
d0ea73
From: Pino Toscano <ptoscano@redhat.com>
d0ea73
Date: Fri, 13 Jul 2018 13:24:07 +0200
d0ea73
Subject: [PATCH] v2v: change QXL ResourceType in OVirt flavour (RHBZ#1598715)
d0ea73
d0ea73
Due to a conflict with the IDs of the OVF standard, and the existing
d0ea73
implementation in ovirt-engine, the ID of QXL devices changed to a
d0ea73
different value.
d0ea73
d0ea73
As a consequence, change the ResourceType of QXL devices, but only in
d0ea73
OVirt flavour to avoid breaking vdsm mode.
d0ea73
d0ea73
See: https://bugzilla.redhat.com/show_bug.cgi?id=1598715#c5
d0ea73
(cherry picked from commit aa9e18f6d1fd503822dfd2124b92a2c67704c4c1)
d0ea73
---
d0ea73
 v2v/create_ovf.ml | 6 +++++-
d0ea73
 1 file changed, 5 insertions(+), 1 deletion(-)
d0ea73
d0ea73
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
d0ea73
index 9e0c772fd..5db239d66 100644
d0ea73
--- a/v2v/create_ovf.ml
d0ea73
+++ b/v2v/create_ovf.ml
d0ea73
@@ -643,10 +643,14 @@ let rec create_ovf source targets guestcaps inspect
d0ea73
          * See RHBZ#1213701 and RHBZ#1211231 for the reasoning
d0ea73
          * behind that.
d0ea73
          *)
d0ea73
+        let qxl_resourcetype =
d0ea73
+          match ovf_flavour with
d0ea73
+          | OVirt -> 32768 (* RHBZ#1598715 *)
d0ea73
+          | RHVExportStorageDomain -> 20 in
d0ea73
         e "Item" [] [
d0ea73
           e "rasd:Caption" [] [PCData "Graphical Controller"];
d0ea73
           e "rasd:InstanceId" [] [PCData (uuidgen ())];
d0ea73
-          e "rasd:ResourceType" [] [PCData "20"];
d0ea73
+          e "rasd:ResourceType" [] [PCData (string_of_int qxl_resourcetype)];
d0ea73
           e "Type" [] [PCData "video"];
d0ea73
           e "rasd:VirtualQuantity" [] [PCData "1"];
d0ea73
           e "rasd:Device" [] [PCData "qxl"];
d0ea73
-- 
d0ea73
2.20.1
d0ea73