Description of problem:
Go to the import VM wizard while being a non admin user. The VMware provider will complain that:
Could not load ConfigMap vmware-to-kubevirt-os in kube-public namespace
Restricted Access: configmaps "vmware-to-kubevirt-os" is forbidden: User "email@example.com" cannot get resource "configmaps" in API group "" in the namespace "kube-public"
which is not a nice way to communicate it and the RHV provider will say nothing, only will hang forever in the "Starting Red Hat Virtualization (RHV) controller"
The errors should actually tell the user what is wrong.
The UI should check if the user is allowed to read the v2v-vmware configmap in openshift-cnv or kubevirt-hyperconverged namespace before trying to deploy the controller. If it is not able to read that, it should show a warning, that this namespaces are not available and you should contact the administrator to give you access to them.
the ability to read the v2v-vmware configmap from one of these two namespaces is a result of lack of the user's permissions.
beside the access permissions to these namespaces the user should have other permissions in a cluster level to be able to import a VM from a provider.
Thus, the error message should be: 'You don't have permissions to import a VM, please contact your administrator'.
In addition, the set of permissions that are missing appear in the bottom, do we want to show it as it is now or do we want to parse it and presented elegantly?
The error is attached.
Created attachment 1712534 [details]
v2v non-admin user permissions error
According to documentation bug 1872318 the import will work only for an admin user.
The option to import will be hidden for non admin user: https://bugzilla.redhat.com/show_bug.cgi?id=1881386 (change OCP-4.6).
Based on the above this bug cannot be verified, therefore, closing the bug.
*** This bug has been marked as a duplicate of bug 1881386 ***