-
Bug
-
Resolution: Duplicate
-
Critical
-
2.5.0
-
None
-
False
-
None
-
False
-
-
Openshift MTV insufficient permissions in vshpere
Description
What are you experiencing? What are you expecting to happen? We're attempting to use the openshift-mtv operator to migrate vms from vmware to OCP Virtualization. We've created a new vsphere role and assigned to a service user as documented here -
https://docs.redhat.com/en/documentation/migration_toolkit_for_virtualization/2.5/html/installing_and_using_the_migration_toolkit_for_virtualization/prerequisites#vmware-prerequisites_mtv
Issue
When attempting to migrate a VM though, we get a 401 error, indicating that the assigned permissions are insufficient.
[ 0.0] Setting up the source: -i libvirt -ic vpx://openshift%40vsphere.bbn.com@vcenter.mgmt.bbn.com/Bolt%20Center/host/R430%20Cluster/cam-esxi-12.mgmt.bbn.com bi-rh8-test virt-v2v: error: exception: libvirt: VIR_ERR_INTERNAL_ERROR: VIR_FROM_ESX: internal error: HTTP response code 401 for download from 'https://vcenter.mgmt.bbn.com:443/folder/bi-rh8-test_3f4a-95527%2Fbi-rh8-test.vmx?dcPath=Bolt%20Center&dsName=core-vmstore-01' rm -rf – '/tmp/v2v.cZbykl' Error executing command: exit status 1 Error executing virt-v2v command exit status 1
Resolution
Attempting the same operation with other users with more robust permissions does not return 401.
Summary
It indeed looks like there's a gap in our documentation when it comes to the required permissions in vSphere