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 1999559

Summary: nbdkit also breaks with qemu 6.1 with error "Backing file specified without backing format"
Product: Red Hat Enterprise Linux 9 Reporter: Richard W.M. Jones <rjones>
Component: nbdkitAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: mxie <mxie>
Severity: high Docs Contact:
Priority: high    
Version: 9.0CC: eblake, juzhou, kkiwi, lersek, mxie, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan, yoguo
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nbdkit-1.28.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:50:41 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: 2011709    
Bug Blocks:    

Description Richard W.M. Jones 2021-08-31 10:38:12 UTC
This bug was initially created as a copy of Bug #1999419
This bug was initially created as a copy of Bug #1998820

The change in qemu-img which caused bug 1999419
also causes nbdkit tests to fail and requires an update
to the documentation.  See this commit for details:

https://gitlab.com/nbdkit/nbdkit/-/commit/618290ef33ce13b75c1a79fea1f1ffb327b5ba07

This is because of a change in qemu:

https://gitlab.com/qemu-project/qemu/-/commit/497a30dbb065937d67f6c43af6dd78492e1d6f6d

Note this bug will only be required if qemu is rebased in
RHEL 9 or 8.6 to qemu >= 6.1.

Comment 2 Richard W.M. Jones 2021-10-29 11:46:02 UTC
This should already be fixed by the rebase to nbdkit 1.28.  Only needs testing.

Comment 5 mxie@redhat.com 2021-11-24 12:23:53 UTC
Verify the bug with below builds:
nbdkit-1.28.2-1.el9.x86_64
qemu-img-6.1.0-7.el9.x86_64


Steps:
1. Check the man page of nbdkit-cow-filter about qemu-img
 # man  nbdkit-cow-filter |grep  qemu-img
   Creating a diff with qemu-img
       qemu-img(1).  nbdkit must remain continuously running during the whole operation, otherwise all changes will be lost.
       Run these "qemu-img" commands to construct a qcow2 file containing the differences:
        qemu-img create -F raw -b nbd:localhost -f qcow2 diff.qcow2
        qemu-img rebase -F raw -b disk.img -f qcow2 diff.qcow2
       nbdkit-filter(3), nbdcopy(1), qemu-img(1).

2 Check if qemu-img command of nbdkit-cow-filter man page works
# nbdkit -p 10810 memory 1G
# qemu-img create -F raw -b nbd://localhost:10810 -f qcow2 diff.qcow2 
Formatting 'diff.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 backing_file=nbd://localhost:10810 backing_fmt=raw lazy_refcounts=off refcount_bits=16

# qemu-img rebase -F raw -b esx7.0-rhel8.5-x86_64-sda -f qcow2 diff.qcow2

# qemu-img info esx7.0-rhel8.5-x86_64-sda
image: esx7.0-rhel8.5-x86_64-sda
file format: raw
virtual size: 12 GiB (12884901888 bytes)
disk size: 1.99 GiB

# qemu-img info diff.qcow2 
image: diff.qcow2
file format: qcow2
virtual size: 1 GiB (1073741824 bytes)
disk size: 177 MiB
cluster_size: 65536
backing file: esx7.0-rhel8.5-x86_64-sda
backing file format: raw
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

Result:
   The qemu-img commands are correct in nbdkit-cow-filter man page, move the bug from ON_QA to VERIFIED

Comment 7 errata-xmlrpc 2022-05-17 12:50:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: nbdkit), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:2408