-
Bug
-
Resolution: Done
-
Blocker
-
CNV v4.99.0
-
None
-
0.42
-
False
-
-
False
-
CNV v4.99.0.rhel9-963
-
---
-
---
-
-
Storage Core Sprint 257
-
Critical
-
Yes
Description of problem:
virtctl image upload reports erorr
akalenyu found the root cause:
PR changes the lib version of the progress bar https://github.com/kubevirt/kubevirt/pull/12184
with that new version one must set the writer to stdout explicitly:
https://github.com/cheggaaa/pb?tab=readme-ov-file#settings
Version-Release number of selected component (if applicable):
4.99, regression
How reproducible:
Always
Steps to Reproduce:
1. Run virtctl -n cdi-upload-test-upload-virtctl image-upload dv cnv-3724-ocs-storagecluster-ceph-rbd-virtualization --image-path=/tmp/cirros-qcow2.img --size=1Gi --storage-class=ocs-storagecluster-ceph-rbd-virtualization --access-mode=ReadWriteMany --insecure --volume-mode=block
Actual results:
12:28:30 2024-08-04T09:28:30.590045 pyhelper_utils.shell INFO Running virtctl -n cdi-upload-test-upload-virtctl --kubeconfig /tmp/tmp84xoujsy-cnv-tests-kubeconfig/kubeconfig image-upload dv cnv-3724-ocs-storagecluster-ceph-rbd-virtualization --image-path=/tmp/cirros-qcow2.img --size=1Gi --storage-class=ocs-storagecluster-ceph-rbd-virtualization --access-mode=ReadWriteMany --insecure --volume-mode=block command 12:28:52 2024-08-04T09:28:51.096308 pyhelper_utils.shell ERROR Failed to run ['virtctl', '-n', 'cdi-upload-test-upload-virtctl', '--kubeconfig', '/tmp/tmp84xoujsy-cnv-tests-kubeconfig/kubeconfig', 'image-upload', 'dv', 'cnv-3724-ocs-storagecluster-ceph-rbd-virtualization', '--image-path=/tmp/cirros-qcow2.img', '--size=1Gi', '--storage-class=ocs-storagecluster-ceph-rbd-virtualization', '--access-mode=ReadWriteMany', '--insecure', '--volume-mode=block']. rc: 0, out: PVC cdi-upload-test-upload-virtctl/cnv-3724-ocs-storagecluster-ceph-rbd-virtualization not found 12:28:52 DataVolume cdi-upload-test-upload-virtctl/cnv-3724-ocs-storagecluster-ceph-rbd-virtualization created 12:28:52 Waiting for PVC cnv-3724-ocs-storagecluster-ceph-rbd-virtualization upload pod to be ready... 12:28:52 Pod now ready 12:28:52 Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.infd-vrf-499t0.rhos-psi.cnv-qe.rhood.us 12:28:52 12:28:52 12:28:52 Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress 12:28:52 Processing completed successfully 12:28:52 Uploading /tmp/cirros-qcow2.img completed successfully 12:28:52 , error: 12.13 MiB / 12.13 MiB [----------------------------------------------------------->] 100.00% ? p/s ?12.13 MiB / 12.13 MiB [-----------------------------------------------] 100.00% 758.81 MiB p/s 200ms
Expected results:
10:39:03 2024-08-04T07:39:02.903448 pyhelper_utils.shell INFO Running virtctl -n cdi-upload-test-upload-virtctl --kubeconfig /tmp/tmp6hdytubp-cnv-tests-kubeconfig/kubeconfig image-upload dv cnv-3724-ocs-storagecluster-ceph-rbd-virtualization --image-path=/tmp/cirros-qcow2.img --size=1Gi --storage-class=ocs-storagecluster-ceph-rbd-virtualization --access-mode=ReadWriteMany --insecure --volume-mode=block command 10:39:24 2024-08-04T07:39:23.389604 utilities.storage INFO Check status and output of virtctl RC is 0, Error is empty
Additional info:
- links to