Bug 1853362 - virtctl fails to upload images when invoking the "virtctl image-upload dv ..." command
Summary: virtctl fails to upload images when invoking the "virtctl image-upload dv ......
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: sgott
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-02 13:44 UTC by Lars Kellogg-Stedman
Modified: 2020-07-02 13:48 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-02 13:48:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lars Kellogg-Stedman 2020-07-02 13:44:42 UTC
Description of problem:

virtctl (from kubevirt-virtctl-0.26.1-15.el8.x86_64) fails to upload images when invoking the "virtctl image-upload dv ..." command. It returns the message "the server could not find the requested resource".

Version-Release number of selected component (if applicable):

kubevirt-virtctl-0.26.1-15.el8.x86_64

$ virtctl version
Client Version: version.Info{GitVersion:"v0.26.1", GitCommit:"e40ff7965e2aadbf21131626dfa3be85524e3a2c", GitTreeState:"clean", BuildDate:"2020-02-19T16:16:36Z", GoVersion:"go1.12.8", Compiler:"gc", Platform:"linux/amd64"}
the server could not find the requested resource

How reproducible:

$ virtctl image-upload dv larsdv3 --image-path cirros-0.5.1-x86_64-disk.img --size 1G --storage-class hostpath-provisioner --insecure
the server could not find the requested resource (post datavolumes.cdi.kubevirt.io)

Actual results:

the server could not find the requested resource (post datavolumes.cdi.kubevirt.io)


Expected results:

DataVolume default/larsdv3 created
Waiting for PVC larsdv3 upload pod to be ready...
Pod now ready
Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.cnv.massopen.cloud

 15.58 MiB / 15.58 MiB [===================================================] 100.00% 2s

Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress
Processing completed successfully
Uploading cirros-0.5.1-x86_64-disk.img completed successfully


Additional info:

The above command works as written when using virtctl from github:

$ virtctl version
Client Version: version.Info{GitVersion:"v0.30.1", GitCommit:"74627cf6426ec694039e5793e1d42563fee4b315", GitTreeState:"clean", BuildDate:"2020-06-16T08:21:41Z", GoVersion:"go1.12.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.26.5", GitCommit:"bab9a21bb6817f6c1f107c2b505121f63c92cc4b", GitTreeState:"clean", BuildDate:"2020-04-16T16:50:34Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

Comment 1 Lars Kellogg-Stedman 2020-07-02 13:48:56 UTC
Whoops, this is inaccurate. Sorry for the noise.


Note You need to log in before you can comment on or make changes to this bug.