Bug 848926 - virt-v2v should verify that the RHEV-M domain is an export storage domain
Summary: virt-v2v should verify that the RHEV-M domain is an export storage domain
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-16 20:31 UTC by Richard W.M. Jones
Modified: 2021-04-19 10:35 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-08-16 20:31:03 UTC
Description of problem:

Currently it is possible to perform a p2v/v2v operation
at a regular data domain.  After doing this, the guest
"disappears".

We should avoid this user error by checking that the type
of the domain is an export storage domain (apparently
CLASS=Backup in the domain metadata according to AiC)

Comment 1 Richard W.M. Jones 2014-09-10 13:17:02 UTC
The way to do this is to look for the <UUID>/dom_md/metadata
file and look for the CLASS= field.  It is CLASS=Backup for
export storage domains and CLASS=Data for data domains:

$ find v2v-rhevm-export v2v-rhevm-data -name metadata | xargs grep CLASS
v2v-rhevm-export/39b6af0e-1d64-40c2-97e4-4f094f1919c7/dom_md/metadata:CLASS=Backup
v2v-rhevm-data/b592eac5-7c12-4843-ae51-7b0f90a9dfb4/dom_md/metadata:CLASS=Data

However if we are going to support exporting directly to
data domains then we may in fact *not* want to do this
check.


Note You need to log in before you can comment on or make changes to this bug.