Description of problem: VM import fail quickly, with status Import error(VMware). v2v conversion pod error: {"level":"error","ts":1591629282.5786479,"logger":"cmd","msg":"Failed to get watch namespace","error":"WATCH_NAMESPACE must be set","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tkubevirt-vmware/vendor/github.com/go-logr/zapr/zapr.go:128\nmain.main\n\tkubevirt-vmware/cmd/manager/main.go:64\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:203"} Version-Release number of selected component (if applicable): "quay.io/kubevirt/kubevirt-vmware:v2.0.0-4" CNV-2.4 OCP-4.5
What version of kubevirt-v2v-conversion pod are you using? I tried this with quay.io/kubevirt/kubevirt-v2v-conversion:latest with mentioned quay.io/kubevirt/kubevirt-vmware:v2.0.0-4 on OCP-4.5 and could not reproduce it.
This might be related to Bug 1845408 - [v2v] VMware to CNV VM import: Could not load ConfigMap vmware-to-kubevirt-os in kube-public namespace Configmaps "vmware-to-kubevirt-os" not found
It is not related. This config map is optional and is used just for pre-selecting the OS in the UI. It is not used after you leave the wizard flow.
This was cause by misconfigured environment. I found that kubevirt-vmware-image was used in place of v2v-conversion-image. before: kubevirt-vmware-image: >- registry-proxy.engineering.redhat.com/rh-osbs/container-native-virtualization-kubevirt-vmware@sha256:4427e049eb64567c2b99952cc42df682318531b2869c789b3c5a9daa0ef69590 v2v-conversion-image: 'quay.io/kubevirt/kubevirt-vmware:v2.0.0-4' after: kubevirt-vmware-image: 'quay.io/kubevirt/kubevirt-vmware:v2.0.0-4' v2v-conversion-image: 'quay.io/kubevirt/kubevirt-v2v-conversion:latest' I managed to successfully import a vmWare VM on this env. Can you please try if it worked for you and close this bug?
Closing the bug, as Filip explained that HCO set the correct values for those 2 fields, and we changed it manually, since we wasn't aware that those were correct.
I am seeing this problem also with OCP 4.5.4 Could not load ConfigMap vmware-to-kubevirt-os in kube-public namespace Configmaps "vmware-to-kubevirt-os" not found I delete the deployment/configmap in my openshift-cnv project and then attempt to do a vmware import wizard and as indicated above and adjusted my configmap to what you see below but it is still failing with the same error. data: kubevirt-vmware-image: 'quay.io/kubevirt/kubevirt-vmware:v2.0.0-4' kubevirt-vmware-image-pull-policy: IfNotPresent v2v-conversion-image: 'quay.io/kubevirt/kubevirt-v2v-conversion:latest' FYI this is the default when deploying for the first time and if its not correct then this bug should fix that in future CNV releases. data: kubevirt-vmware-image: >- registry.redhat.io/container-native-virtualization/kubevirt-vmware@sha256:8236b5eec92b0d37a1cb67ac6f80bf69deea9699ead6351ae59417510e014437 kubevirt-vmware-image-pull-policy: IfNotPresent v2v-conversion-image: >- registry.redhat.io/container-native-virtualization/kubevirt-v2v-conversion@sha256:f160e205506908b7145a1414158721c9c01ffdcf12f55ebe38d8f22432a92d08
> Could not load ConfigMap vmware-to-kubevirt-os in kube-public namespace > Configmaps "vmware-to-kubevirt-os" not found this is inconsequential error and will not affect vmware import in any way PS. you also need to have vddk-init-image property defined in v2v-vmware configMap