Document virtctl image-upload --archive-path option#115044
Document virtctl image-upload --archive-path option#115044harsh-thakare wants to merge 1 commit into
Conversation
Clarify when to use --image-path versus --archive-path for VM disk uploads, including guidance for gzip-compressed images exported from virtctl vmexport. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Hi @harsh-thakare. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@harsh-thakare: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
@harsh-thakare: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Title:
OSDOCS: Document virtctl image-upload --archive-path option for VM disk uploads
Note: If you have a Jira OSDOCS ticket, replace the title with:
[OSDOCS#]: Document virtctl image-upload --archive-path option for VM disk uploads
PR Body:
Clarify when to use
--image-pathversus--archive-pathfor VM disk uploads, including guidance for gzip-compressed images exported fromvirtctl vmexport.Version(s):
4.22
Issue:
N/A
Link to docs preview:
Add the Netlify preview link from the PR bot comment after the PR is created.
Expected preview pages to verify:
Anchor:
#image-upload-commands_virt-using-the-cli-toolsAnchor:
#virt-uploading-image-virtctl_virt-creating-vms-uploading-imagesPublished reference pages (for comparison after merge):
QE review:
Additional information:
Summary
This PR documents the
virtctl image-upload --archive-pathoption, which is available invirtctl image-upload --helpbut was not previously described in the OpenShift Virtualization documentation.The update also clarifies when to use
--image-pathversus--archive-path, including guidance for gzip-compressed disk images such as.img.gzexported withvirtctl vmexport.Motivation
Customers uploading VM disk images with
virtctl image-uploadcan choose between two source flags:--image-path: for VM disk images--archive-path: for tar archivesUsing
--archive-pathwith a gzip-compressed disk image (for example,disk.img.gz) fails with an HTTP 500 error and CDI log messages such as:This happens because CDI treats archive uploads as tar extraction (
tar -xvC /data), not gzip decompression. A.img.gzfile produced byvirtctl vmexport download --output=disk.img.gzis a gzip-compressed disk image, not a tar archive, and must be uploaded with--image-path.Example:
Wrong:
Correct:
Use
--archive-pathonly for tar archives, for example:Changes
modules/virt-image-upload-commands.adoc--archive-pathcommand examples to the Image upload commands table.--image-pathis for VM disk images, including.img,.qcow2,.iso, and.img.gz--archive-pathis for tar archives only--archive-pathmodules/virt-uploading-image-virtctl.adoc--image-pathand--archive-path..img.gzmust use--image-path.Files changed
modules/virt-image-upload-commands.adocmodules/virt-uploading-image-virtctl.adocTest plan
--archive-pathrows.virtctl image-upload --help.Review request
@openshift/team-documentation please review.