Bug 1817327
| Summary: | [incremental_backup] VM will be locked if we start a backup job with dirty-bitmap name conflicting | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | yisun | ||||
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | ||||
| Status: | CLOSED ERRATA | QA Contact: | yisun | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 8.2 | CC: | jdenemar, lcheng, mtessun, pkrempa, virt-maint, yisun | ||||
| Target Milestone: | rc | Keywords: | Triaged | ||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libvirt-6.0.0-16.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-05-05 09:59:00 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: | 1799015 | ||||||
| Attachments: |
|
||||||
|
Description
yisun
2020-03-26 06:55:46 UTC
Created attachment 1673689 [details]
libvirtd-debug.log
here is the checkpoint and backup xml:
[root@dell-per740xd-11 inc_bkup]# cat checkpoint_full_pull.xml
<domaincheckpoint>
<name>check_full</name>
<disks>
<disk name='vda' checkpoint='bitmap'/>
</disks>
</domaincheckpoint>
[root@dell-per740xd-11 inc_bkup]# cat backup_full_pull.xml
<domainbackup mode='pull'>
<server name="localhost" port="10809"/>
<disks>
<disk name='vda' backup='yes' type='file'>
<scratch file='/mnt/sratch.vda'/>
</disk>
</disks>
</domainbackup>
Fixed upstream:
commit e060b0624d1b78438b759cc5a25da87b28c9736c
Author: Peter Krempa <pkrempa>
Date: Thu Mar 26 15:37:44 2020 +0100
qemuBackupBegin: Fix monitor access when rolling back due to failure
The code attempting to clean up after a failed pull mode backup job
wrongly entered monitor but didn't clean up nor exit monitor due to a
logic bug. Fix the condition.
Introduced in a1521f84a53
Verified with libvirt-6.0.0-16.module+el8.2.0+6139+d66dece5.x86_64 and result is PASS [root@dell-per740xd-11 inc_bkup]# virsh checkpoint-create-as vm1 check_full Domain checkpoint check_full created [root@dell-per740xd-11 inc_bkup]# virsh checkpoint-delete vm1 check_full --metadata Domain checkpoint check_full deleted [root@dell-per740xd-11 inc_bkup]# virsh backup-begin vm1 backup_full_pull.xml checkpoint_full_pull.xml error: internal error: unable to execute QEMU command 'transaction': Bitmap already exists: check_full [root@dell-per740xd-11 inc_bkup]# virsh domjobinfo vm1 Job type: None [root@dell-per740xd-11 inc_bkup]# virsh destroy vm1 Domain vm1 destroyed [root@dell-per740xd-11 inc_bkup]# virsh start vm1 Domain vm1 started [root@dell-per740xd-11 inc_bkup]# virsh checkpoint-list vm1 Name Creation Time ----------------------- <==== not locked at any point 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-2020:2017 |