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 2013916 - virt-sparsify fails with the error: Backing file specified without backing format
Summary: virt-sparsify fails with the error: Backing file specified without backing fo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libguestfs
Version: 8.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: YongkuiGuo
URL:
Whiteboard:
Depends On: 1998820
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-14 06:15 UTC by YongkuiGuo
Modified: 2022-05-10 13:32 UTC (History)
2 users (show)

Fixed In Version: libguestfs-1.44.0-4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 13:21:40 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-99757 0 None None None 2021-10-14 06:19:01 UTC
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:22:38 UTC

Description YongkuiGuo 2021-10-14 06:15:07 UTC
Description of problem:
virt-sparsify doesn't work on RHEL-8.6 with the following error:
...
qemu-img: /tmp/sparsify187700.qcow2: Backing file specified without backing format
Detected format of qcow2.libguestfs: trace: disk_create = -1 (error)
virt-sparsify: error: libguestfs error: qemu-img:
/tmp/sparsify187700.qcow2: qemu-img exited with error status 1, see debug
messages above


Version-Release number of selected component (if applicable):
libguestfs-1.44.0-3.module+el8.6.0+12648+6ede71a5.x86_64
qemu-kvm-6.1.0-1.module+el8.6.0+12648+6ede71a5.x86_64


How reproducible:
100%


Steps:

1. On rhel8.6 host with RHEL-8.6.0-20211008.1 compose
# wget http://download.eng.pek2.redhat.com/rhel-8/composes/RHEL-8/RHEL-8.6.0-20211008.1/compose/BaseOS/x86_64/images/rhel-guest-image-8.6-493.x86_64.qcow2

2.
# virt-sparsify -v -x rhel-guest-image-8.6-493.x86_64.qcow2 outdisk 
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: disk_format "/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2"
libguestfs: command: run: qemu-img --help | grep -sqE -- '\binfo\b.*-U\b'
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ -U
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2
libguestfs: parse_json: qemu-img info JSON output:\n{\n    "virtual-size": 10737418240,\n    "filename": "/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2",\n    "cluster-size": 65536,\n    "format": "qcow2",\n    "actual-size": 779419648,\n    "format-specific": {\n        "type": "qcow2",\n        "data": {\n            "compat": "0.10",\n            "compression-type": "zlib",\n            "refcount-bits": 16\n        }\n    },\n    "dirty-flag": false\n}\n\n
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: disk_virtual_size "/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2"
libguestfs: command: run: qemu-img --help | grep -sqE -- '\binfo\b.*-U\b'
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ -U
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2
libguestfs: parse_json: qemu-img info JSON output:\n{\n    "virtual-size": 10737418240,\n    "filename": "/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2",\n    "cluster-size": 65536,\n    "format": "qcow2",\n    "actual-size": 779419648,\n    "format-specific": {\n        "type": "qcow2",\n        "data": {\n            "compat": "0.10",\n            "compression-type": "zlib",\n            "refcount-bits": 16\n        }\n    },\n    "dirty-flag": false\n}\n\n
libguestfs: trace: disk_virtual_size = 10737418240
input disk virtual size is 10737418240 bytes (10.0G)
[   0.0] Create overlay file in /tmp to protect source disk
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: disk_create "/tmp/sparsify187700.qcow2" "qcow2" -1 "backingfile:/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2" "compat:1.1"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/home/git/libguestfs-ci/client/tests/libguestfs/rhel-guest-image-8.6-493.x86_64.qcow2,compat=1.1
libguestfs: command: run: \ /tmp/sparsify187700.qcow2
qemu-img: /tmp/sparsify187700.qcow2: Backing file specified without backing format
Detected format of qcow2.libguestfs: trace: disk_create = -1 (error)
virt-sparsify: error: libguestfs error: qemu-img:
/tmp/sparsify187700.qcow2: qemu-img exited with error status 1, see debug
messages above
libguestfs: trace: close
libguestfs: closing guestfs handle 0x557cde3691a0 (state 0)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x557cde367970 (state 0)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x557cde366300 (state 0)

Actual results:
As above

Expected results:
virt-sparsify works on RHEL-8.6 as usual.

Additional info:
No this issue on RHEL-8.5 and RHEL-9.0

Comment 5 YongkuiGuo 2021-10-15 10:30:08 UTC
Verified with package:
libguestfs-1.44.0-4.module+el8.6.0+12969+f61072d9.x86_64

Steps:

1. On rhel8.6 host
# wget http://download.eng.pek2.redhat.com/rhel-8/composes/RHEL-8/RHEL-8.6.0-20211008.1/compose/BaseOS/x86_64/images/rhel-guest-image-8.6-493.x86_64.qcow2

2.
# virt-sparsify rhel-guest-image-8.6-493.x86_64.qcow2 outdisk
[   7.0] Fill free space in /dev/sda2 with zero
[   8.3] Fill free space in /dev/sda3 with zero
[  88.0] Copy to destination and make sparse
[ 148.4] Sparsify operation completed with no errors.
virt-sparsify: Before deleting the old disk, carefully check that the 
target disk boots and works correctly.


virt-sparsify can be run successfully.

Comment 7 errata-xmlrpc 2022-05-10 13:21:40 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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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/RHSA-2022:1759


Note You need to log in before you can comment on or make changes to this bug.