lib: Add internal qcow2 compression for Nutanix image#2848
lib: Add internal qcow2 compression for Nutanix image#2848miabbott merged 2 commits intocoreos:mainfrom
Conversation
|
Hi @thunderboltsid. Thanks for your PR. I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with 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/test-infra repository. |
|
/hold this is a provisional PR |
|
You'll also need to add a way for a /ok-to-test |
@bgilbert can you take another look? Is this what you were expecting? |
|
/retest |
1 similar comment
|
/retest |
|
@bgilbert the rhcos test seems to be failing due to openshift/os#795 |
|
This appears to be a different error. |
|
/retest-required |
2 similar comments
|
/retest-required |
|
/retest-required |
|
Note: before something like this lands we still need to make an announcement about it to the community. |
bgilbert
left a comment
There was a problem hiding this comment.
This LGTM, though I haven't tested it.
|
/retest-required |
|
Looks like another issue with the repo mirror Updating rpm-md repo 'rhel-86-appstream': cannot update repo 'rhel-86-appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 403 for http://base-4-11-rhel86.ocp.svc.cluster.local/rhel-8-appstream/repodata/repomd.xml (IP: 172.30.132.86) I put up another PR to switch from the 8.6 Beta content, but I'm not convinced it will solve the error. I would see if the job on openshift/os#798 passes and then trigger the jobs here if so. |
|
/retest-required |
|
/hold cancel |
miabbott
left a comment
There was a problem hiding this comment.
This doesn't work as proposed. I tried building RHCOS 4.11 and generating a Nutanix artifact.
$ cosa buildextend-nutanix
[INFO]: CLI is a symlink for cmd-buildextend-nutanix
[INFO]: Target 'NUTANIX' is a Qemu Variant image
[INFO]: Targeting architecture: x86_64
[INFO]: Targeting build: 411.85.202205121303-0
[INFO]: Processed build for: OpenShift 4 (RHCOS-x86_64) 411.85.202205121303-0
[INFO]: Processing the build artifacts
[INFO]: Staging temp image: /srv/tmp/tmp2x7ohrl6/rhcos-411.85.202205121303-0-nutanix.x86_64.qcow2
...
+ qemu-img convert -f qcow2 -O qcow2 /srv/tmp/tmp2x7ohrl6/rhcos-411.85.202205121303-0-qemu.x86_64.qcow2.working -c "" /srv/tmp/tmp2x7ohrl6/rhcos-411.85.202205121303-0-nutanix.x86_64.qcow2
qemu-img: Could not open '': The 'file' block driver requires a file name
Error running command qemu-img
It looks like -c option requires a filename
I don’t think -c requires a filename for the flag. But, I think because the -c flag is the “key” and "" is the value, the underlying command ends up copying the empty string as "" in the generated command. |
You are correct; I should avoid doing debug before the first coffee 😛 |
dc9a101 to
8e72e12
Compare
Add a `-c` convert option for Nutanix image which will help reduce size of the image for Nutanix.
Add a `skip_compression` property on `QemuVariantImage` based on the Set `skip_compression` value of the variant in `VARIANTS` dict. When `skip_compression` is set to True (default is False), the `mutate_image` method adds `skip-compression:True` to the `meta_patch`. This commit also sets `skip_compression` value to True for Nutanix variant.
8e72e12 to
cd53df6
Compare
miabbott
left a comment
There was a problem hiding this comment.
cosa buildextend-nutanix and cosa compress behaved as expected
Add a
-cconvert option for Nutanix image which will help reducesize of the image for Nutanix.
This PR also sets
skip_compressionvalue to True for Nutanix variantin order to ensure
cosa compressdoesn't gzip the image.Fixes coreos/fedora-coreos-tracker#1191