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