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.
Description of problem:
rbd json format of 7.6 is incompatible with 7.3
Version-Release number of selected component (if applicable):
qemu-img-rhev-2.6.0-28.el7_3.14.x86_64
qemu-img-rhev-2.12.0-8.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. create a snapshot based on image on rbd with old-fashioned json format
# qemu-img --version
qemu-img version 2.6.0 (qemu-kvm-rhev-2.6.0-28.el7_3.14), Copyright (c) 2004-2008 Fabrice Bellard
# qemu-img create -f qcow2 -b 'json:{"file.driver":"rbd","file.filename":"rbd:rbd/test.raw"}' test.qcow2
Formatting 'test.qcow2', fmt=qcow2 size=21474836480 backing_file=json:{"file.driver":"rbd",,"file.filename":"rbd:rbd/test.raw"} encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
2. update to latest qemu-kvm and check the snapshot.
# qemu-img --version
qemu-img version 2.12.0 (qemu-kvm-rhev-2.12.0-8.el7)
# qemu-img check test.qcow2
qemu-img: Could not open 'test.qcow2': Could not open backing file: Parameter 'pool' is missing
Actual results:
fail to check snapshot created with old-fashioned json.
Expected results:
should be back compatible.
Additional info:
My fear is this means is we may need to add additional support in block/rbd.c for explicitly parsing the older key/value pair format, e.g.: rbd:rbd/testimg.raw:mon_host=192.168.15.180
Patch series posted upstream. Unsure if this will become the final solution; it is a bit hacky, but I'm not sure there are any great options to fix it.
Comment 11Miroslav Rezanina
2018-09-17 08:53:22 UTC
Steps as comment 0.
Reproduced this issue on qemu-kvm-rhev-2.12.0-15.el7.x86_64:
# qemu-img check test.qcow2
qemu-img: Could not open '/home/test.qcow2': Could not open backing file: Parameter 'pool' is missing
Verified this bug on qemu-kvm-rhev-2.12.0-16.el7.x86_64:
# qemu-img check test.qcow2
qemu-img: RBD options encoded in the filename as keyvalue pairs is deprecated. Future versions may cease to parse these options in the future.
No errors were found on the image.
Image end offset: 262144
Thanks.
(In reply to CongLi from comment #13)
> Steps as comment 0.
>
> Reproduced this issue on qemu-kvm-rhev-2.12.0-15.el7.x86_64:
> # qemu-img check test.qcow2
> qemu-img: Could not open '/home/test.qcow2': Could not open backing file:
> Parameter 'pool' is missing
>
> Verified this bug on qemu-kvm-rhev-2.12.0-16.el7.x86_64:
> # qemu-img check test.qcow2
> qemu-img: RBD options encoded in the filename as keyvalue pairs is
> deprecated. Future versions may cease to parse these options in the future.
> No errors were found on the image.
> Image end offset: 262144
>
>
> Thanks.
create a snapshot based on image on rbd with old-fashioned json format in RHEL.7.5.z: qemu-kvm-rhev-2.10.0-21.el7_5.3.x86_64
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, 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/RHBA-2018:3443
Description of problem: rbd json format of 7.6 is incompatible with 7.3 Version-Release number of selected component (if applicable): qemu-img-rhev-2.6.0-28.el7_3.14.x86_64 qemu-img-rhev-2.12.0-8.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. create a snapshot based on image on rbd with old-fashioned json format # qemu-img --version qemu-img version 2.6.0 (qemu-kvm-rhev-2.6.0-28.el7_3.14), Copyright (c) 2004-2008 Fabrice Bellard # qemu-img create -f qcow2 -b 'json:{"file.driver":"rbd","file.filename":"rbd:rbd/test.raw"}' test.qcow2 Formatting 'test.qcow2', fmt=qcow2 size=21474836480 backing_file=json:{"file.driver":"rbd",,"file.filename":"rbd:rbd/test.raw"} encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 2. update to latest qemu-kvm and check the snapshot. # qemu-img --version qemu-img version 2.12.0 (qemu-kvm-rhev-2.12.0-8.el7) # qemu-img check test.qcow2 qemu-img: Could not open 'test.qcow2': Could not open backing file: Parameter 'pool' is missing Actual results: fail to check snapshot created with old-fashioned json. Expected results: should be back compatible. Additional info: