Description of problem: $ virtctl image-upload dv rhel7 --size=10Gi --image-path=./cirros.img --storage-class=nfs --access-mode=ReadWriteOnce --insecure -n openshift-virtualization-os-images DataVolume openshift-virtualization-os-images/rhel7 created Waiting for PVC rhel7 upload pod to be ready... Pod now ready Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.sys01.cnv-qe.rhcloud.com 12.13 MiB / 12.13 MiB [===================================================================================================] 100.00% 26s Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress Processing completed successfully Uploading ./cirros.img completed successfully {"component":"","level":"error","msg":"Error when closing file","pos":"os_helper.go:34","reason":"close ./cirros.img: file already closed","timestamp":"2020-12-29T01:28:23.403845Z"} Version-Release number of selected component (if applicable): $ virtctl version -c Client Version: version.Info{GitVersion:"v0.36.0", GitCommit:"398cd404dba9ced6c298824a1bf681d387dd3a1c", GitTreeState:"clean", BuildDate:"2020-12-16T15:01:21Z", GoVersion:"go1.13.14", Compiler:"gc", Platform:"linux/amd64"} How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: "{"component":"","level":"error","msg":"Error when closing file","pos":"os_helper.go:34","reason":"close ./cirros.img: file already closed","timestamp":"2020-12-29T01:28:23.403845Z"}" shows after upload finished. Expected results: No such error shows. Additional info:
Targeting to 2.6.1, we don't consider this as a blocker anymore.
Hi. From your comment ""{"component":"","level":"error","msg":"Error when closing file","pos":"os_helper.go:34","reason":"close ./cirros.img: file already closed","timestamp":"2020-12-29T01:28:23.403845Z"}" shows after upload finished." Where is the error reported. In a log? event?
(In reply to Kevin Alon Goldblatt from comment #3) > Hi. From your comment ""{"component":"","level":"error","msg":"Error when > closing file","pos":"os_helper.go:34","reason":"close ./cirros.img: file > already closed","timestamp":"2020-12-29T01:28:23.403845Z"}" shows after > upload finished." > > Where is the error reported. In a log? event? It's the output from the virtctl command
Added backport PR
merged into kubevirt:release-0.36
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 (CNV 2.6.1 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/RHEA-2021:1126