Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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: ---Flags: pm-rhel: mirror+
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