Why uploading an image in OpenShift Virtualization is failing with error "unexpected return value 401"?
Issue
- Uploading an image to OpenShift Virtualization with
virtctl image-upload
is failing with following error:
# virtctl image-upload dv my-test-dv --size=20Gi --storage-class=my-sc --image-path=/root/redhat/rhel-8-6.qcow2 --uploadproxy-url=https://cdi-uploadproxy-openshift-cnv.apps.mytestcluster.example.com -n test-ns --insecure
Using existing PVC test-ns/prime-ffbafaeb-3d02-48ca-8b26-687f91a6bb81
Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.mytestcluster.example.com
3.84 MiB / 793.88 MiB [>-----------------------------------------------------------------------------------------------------------------------------------] 0.48% 0s
unexpected return value 401,
Environment
- OpenShift Container Platform 4.16, 4.17.
- OpenShift Virtualization 4.16, 4.17.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.