Blame SOURCES/0038-v2v-OVF-fix-ovf-id-for-VirtualSystem-in-OVirt-flavou.patch
|
|
97ae69 |
From ffd2b553fd9e1037d25122c6b749e6f4d1632df0 Mon Sep 17 00:00:00 2001
|
|
|
97ae69 |
From: Pino Toscano <ptoscano@redhat.com>
|
|
|
97ae69 |
Date: Thu, 5 Apr 2018 10:28:17 +0200
|
|
|
97ae69 |
Subject: [PATCH] v2v: OVF: fix ovf:id for VirtualSystem in OVirt flavour
|
|
|
97ae69 |
|
|
|
97ae69 |
When writing the OVF in OVirt flavour, write the actual UUID of the
|
|
|
97ae69 |
VM as ovf:id attribute for <VirtualSystem>, instead of a dummy value.
|
|
|
97ae69 |
|
|
|
97ae69 |
Suggested by Arik Hadas in
|
|
|
97ae69 |
https://www.redhat.com/archives/libguestfs/2018-April/msg00005.html
|
|
|
97ae69 |
|
|
|
97ae69 |
(cherry picked from commit 9dce43931a19510be1b6d21ce67d14a4136ce241)
|
|
|
97ae69 |
---
|
|
|
97ae69 |
v2v/create_ovf.ml | 2 +-
|
|
|
97ae69 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
97ae69 |
|
|
|
97ae69 |
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
|
|
|
97ae69 |
index ccde960df..c29b8421c 100644
|
|
|
97ae69 |
--- a/v2v/create_ovf.ml
|
|
|
97ae69 |
+++ b/v2v/create_ovf.ml
|
|
|
97ae69 |
@@ -688,7 +688,7 @@ let rec create_ovf source targets guestcaps inspect
|
|
|
97ae69 |
|
|
|
97ae69 |
(match ovf_flavour with
|
|
|
97ae69 |
| OVirt ->
|
|
|
97ae69 |
- e "VirtualSystem" ["ovf:id", "out"] !content_subnodes
|
|
|
97ae69 |
+ e "VirtualSystem" ["ovf:id", vm_uuid] !content_subnodes
|
|
|
97ae69 |
| RHVExportStorageDomain ->
|
|
|
97ae69 |
e "Content" ["ovf:id", "out"; "xsi:type", "ovf:VirtualSystem_Type"]
|
|
|
97ae69 |
!content_subnodes
|
|
|
97ae69 |
--
|
|
|
c71420 |
2.20.1
|
|
|
97ae69 |
|