Bug 1884970
Summary: | [v2v][Doc][VMware to CNV VM import API] Storage Mapping: Source storage name should change to storage id | ||||||
---|---|---|---|---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Ilanit Stein <istein> | ||||
Component: | V2V | Assignee: | Sam Lucidi <slucidi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Md Nadeem <mnadeem> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.5.0 | CC: | cnv-qe-bugs, fdupont, mnadeem | ||||
Target Milestone: | --- | ||||||
Target Release: | 2.5.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-11-17 13:24:56 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ilanit Stein
2020-10-04 08:22:43 UTC
Use the API explorer to list the datastores and get the reference from there https://<VMware FQDN>/apiexplorer/ you'll have to log in on that page, then find 'datastores' and the entry for GET /vcenter/datastore https://<VMware FQDN>/apiexplorer/#!/datastore_/get_vcenter_datastore that will give you a list of objects that have a key called "datastore" with a value formatted like "datastore-30" click "Try It Out!" at the bottom of the GET /vcenter/datastore section That will display VMware datastore details(See "VMware datastore details" attachment), including "datastore" field with value of the required datastore id, like "datastore-12" Created attachment 1718743 [details]
VMware datastore details screenshot
Found that also in those examles, VMware storage name is used, instead of storage id: https://github.com/kubevirt/vm-import-operator/blob/master/examples/vmware/vmimport-internal-mapping.yaml https://github.com/kubevirt/vm-import-operator/blob/master/examples/vmware/vmimport-external-mapping.yaml https://github.com/kubevirt/vm-import-operator/blob/master/examples/vmware/resource_mapping.yaml @Sam, I think that https://github.com/kubevirt/vm-import-operator/pull/410 fixes the storage mapping by name, and updates the documentation with examples with both name and id. verified on CNV version: 2.5.0-234 VM import works with both storage id or storage name Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Virtualization 2.5.0 Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5127 |