Description of problem: when running VM import from RHV to CNV, the progress bar displays the VM import progress 10% right from the start. This reflects the VM import process/request progress phase, while it should actually reflect disk copy progress. This may confuse the user, as seeing 10% looks like 10% of the disk was copied. Version-Release number of selected component (if applicable): How reproducible: It is always reproducible, but a disk import operation should be long enough to be notable. Steps to Reproduce: 1.Using the OCP CLI or the GUI create a machine by importing a RHV VM with a very large disk from a remote location. 2.In the OCP GUI, Workloads -> Virtualization, click on the machine's status (Importing (RHV)) Actual results: The Status indicates it is Copying a disk and the status bar remains on 10% during the entire operation. Expected results: Status bar present should/also reflect the disk copy operation progress (how much of the disk was copied/imported). Additional info:
@Piotr how to a check the cdi version?
(In reply to Amos Mastbaum from comment #2) > @Piotr how to a check the cdi version? Hi, I use the methond below to get the cdi version: $ oc get pod -n openshift-cnv | grep cdi-apiserver cdi-apiserver-57b469b699-8c294 1/1 Terminating 0 29h cdi-apiserver-57b469b699-h9grh 1/1 Running 0 133m $ kubectl exec cdi-apiserver-57b469b699-h9grh -n openshift-cnv -- virt-cdi-apiserver --version Containerized Data Importer v1.18.1
There has been a big batch of v2v related bugs moved to kubevirt plugin at once. We are working on them but due to capacity this did not make it last sprint.
@Amos does the progress get updated when using the newest CDI?
Created attachment 1711042 [details] Progress Bar The UI remains on 10% while the dv is in progress: $ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 5.48% 0 52s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 5.92% 0 55s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 6.67% 0 63s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 7.05% 0 68s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 7.21% 0 71s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 7.38% 0 73s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 7.63% 0 77s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 8.35% 0 84s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 8.64% 0 87s [amastbau@amastbau notworking]$ oc get dv -n amos NAME PHASE PROGRESS RESTARTS AGE v2v-rhel8-vm-380dc04a-b9d5-4c37-9038-d3e9baf75ce9 ImportInProgress 15.53% 0 2m31s
It is cnv 2.4.1
ah okay, so the CDI is working. Can you post VirtualMachineImport resource? Does the progress annotation get updated? oc get -w virtualmachineimports.v2v.kubevirt.io -o custom-columns="NAME:.metadata.name,PROGRESS:.metadata.annotations.vmimport\.v2v\.kubevirt\.io/progress"
Verified again.it is working correctly!
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 Container Platform 4.6 GA 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/RHBA-2020:4196