1. Source storage "name" should change into storage "id".
2. There should be a reference/explanation how to fetch this id.
name: VM Network # map network name to network attachment definition
id: network-7 # alternatively the network can be mapped by managed object reference
name: iSCSI_Datastore # maps disks in a given VMware datastore to a storage class <========== name should change into id.
Version-Release number of selected component (if applicable):
Use the API explorer to list the datastores and get the reference from there
you'll have to log in on that page,
then find 'datastores' and the entry for 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:
@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.