This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2171344 - Save guest when doing backup should report error directly
Summary: Save guest when doing backup should report error directly
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Meina Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-20 03:42 UTC by Lili Zhu
Modified: 2023-07-07 21:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-07 21:22:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-751 0 None None None 2023-07-07 21:22:42 UTC
Red Hat Issue Tracker RHELPLAN-149171 0 None None None 2023-02-20 03:44:33 UTC

Description Lili Zhu 2023-02-20 03:42:03 UTC
Description of problem:
Save guest when doing backup doest not report error directly, it reports error after time out

Version-Release number of selected component (if applicable):
libvirt-9.0.0-5.el9.x86_64
qemu-kvm-7.2.0-8.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. prepare backup and checkpoint xml files
[root@dell-per740xd-11 inc_bkup]# cat backup_full_pull.xml checkpoint_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>

<domaincheckpoint>
  <name>check_full</name>
  <disks>
    <disk name='vda' checkpoint='bitmap'/>
  </disks>
</domaincheckpoint>

2. Start full backup
[root@dell-per740xd-11 inc_bkup]# virsh backup-begin avocado-vt-vm1 backup_full_pull.xml checkpoint_full_pull.xml
Backup started

[root@dell-per740xd-11 inc_bkup]# qemu-img convert -f raw nbd://localhost:10809/vda -O qcow2 /var/lib/libvirt/images/vda.full.backup

4. Do save before abort the backup job
[root@dell-per740xd-11 inc_bkup]# virsh save avocado-vt-vm1 /tmp/vm1.save
error: Failed to save domain 'avocado-vt-vm1' to vm1.save
error: Timed out during operation: cannot acquire state change lock (held by monitor=remoteDispatchDomainBackupBegin)

Actual results:
Save guest when doing backup does not report error directly, it reports error after time out

Expected results:
libvirt should report the following error directly
error: "domain has active block job" or "another backup job is already running"

Comment 1 Peter Krempa 2023-02-20 15:36:32 UTC
Note that this case is the same as if you try to start a modify job when the VM is migrating.


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