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

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