Bug 2008910

Summary: qcow2 images should be built in 1.1 compat format
Product: Red Hat Enterprise Linux 9 Reporter: Ondřej Budai <obudai>
Component: osbuild-composerAssignee: Ondřej Budai <obudai>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Shi <wshi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jrusz, lmiksik, pzatko, wshi
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osbuild-composer-33.3-1.el9_b Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2008928 (view as bug list) Environment:
Last Closed: 2021-12-07 21:30:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2008928    

Description Ondřej Budai 2021-09-29 13:28:23 UTC
Description of problem:
qcow2 images built by osbuild-composer are currently in 0.10 compat format. As we want to be able to use this image on RHEL 7+ (not RHEL 6), it's fine to switch to a newer 1.1 compat format.

Version-Release number of selected component (if applicable):
osbuild-composer-33.2-1.el9_b.x86_64

Actual results:
$ qemu-img info rhel-guest-image.qcow2 
image: rhel-guest-image.qcow2
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 598 MiB
cluster_size: 65536
Format specific information:
    compat: 0.10
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false


Expected results:
$ qemu-img info rhel-guest-image.qcow2 
image: rhel-guest-image.qcow2
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 598 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

Comment 1 Ondřej Budai 2021-09-29 13:32:17 UTC
Hello Wei, we agreed in https://issues.redhat.com/browse/COMPOSER-1149 that this needs to be fixed in 9.0 Beta, can you please give us a qa_ack?

Comment 5 Ondřej Budai 2021-10-02 08:18:56 UTC
Both Jakub and I tested the new build and the bug is fixed, I'm setting to preverified:

$ qemu-img info ced2b167-ee43-49ff-9fe2-a3537b9334b9-disk.qcow2                     
image: ced2b167-ee43-49ff-9fe2-a3537b9334b9-disk.qcow2
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 598 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

Comment 8 Wei Shi 2021-10-04 16:26:10 UTC
Verified with the latest nightly build:

$ qemu-img info rhel-guest-image-9.0-20211004.2.x86_64.qcow2
image: rhel-guest-image-9.0-20211004.2.x86_64.qcow2
file format: qcow2
virtual size: 10 GiB (10737418240 bytes)
disk size: 598 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false