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 1954493

Summary: [incremental_backup] Cannot delete checkpoint(bitmap) if it's in the backing file of a disk chain
Product: Red Hat Enterprise Linux 9 Reporter: yisun
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: yisun
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: pkrempa, virt-maint
Target Milestone: betaKeywords: Automation, Regression
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-28 10:29:09 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:

Description yisun 2021-04-28 09:14:10 UTC
Description:
[incremental_backup] Cannot delete checkpoint(bitmap) if it's in the backing file of a disk chain

Reproduced Versions:
libvirt-7.0.0-6.el9.x86_64
qemu-kvm-5.2.0-16.el9.x86_64

NOT REPRODUCED VERSIONS:
libvirt-7.0.0-13.module+el8.4.0+10604+5608c2b4.x86_64
qemu-kvm-5.2.0-15.module+el8.4.0+10650+50781ca0.x86_64

Reproducibility:
100%

Steps:
1. start a vm
(.libvirt-ci-venv-ci-runtest-vUJ1lU) [root@dell-per740-38 ~]# virsh start avocado-vt-vm1
Domain 'avocado-vt-vm1' started

2. create checkpoint for the vm
(.libvirt-ci-venv-ci-runtest-vUJ1lU) [root@dell-per740-38 ~]# virsh checkpoint-create-as avocado-vt-vm1 ck1
Domain checkpoint ck1 created

3. create a diskonly snapshot
(.libvirt-ci-venv-ci-runtest-vUJ1lU) [root@dell-per740-38 ~]# virsh snapshot-create-as avocado-vt-vm1 sp1 --disk-only
Domain snapshot sp1 created

4. delete the checkpoint created in step 2
(.libvirt-ci-venv-ci-runtest-vUJ1lU) [root@dell-per740-38 ~]# virsh checkpoint-delete avocado-vt-vm1 ck1
error: Failed to delete checkpoint ck1
error: internal error: unable to execute QEMU command 'transaction': Bitmap 'ck1' is readonly and cannot be modified

Comment 2 Peter Krempa 2021-04-28 09:24:34 UTC
Did you enable incremental backup support via the qemu namespace element?

Comment 3 yisun 2021-04-28 10:04:17 UTC
(In reply to Peter Krempa from comment #2)
> Did you enable incremental backup support via the qemu namespace element?

Yes, vm's xml edited as follow:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
...
  <qemu:capabilities>
    <qemu:add capability='incremental-backup'/>
  </qemu:capabilities>
</domain>

Comment 4 Peter Krempa 2021-04-28 10:29:09 UTC
Backups are not enabled and require qemu support for blockdev-reopen. Closing this as duplicate of the original bug report.

*** This bug has been marked as a duplicate of bug 1953939 ***