Bug 1771501 - Image cannot be used after blockcommit snapshots to base image and destroy/start vm [rhel-av-8.1.0.z]
Summary: Image cannot be used after blockcommit snapshots to base image and destroy/st...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 8.0
Assignee: Michal Privoznik
QA Contact: yisun
URL:
Whiteboard:
Depends On: 1741456
Blocks: 1652078
TreeView+ depends on / blocked
 
Reported: 2019-11-12 13:41 UTC by Oneata Mircea Teodor
Modified: 2020-11-14 06:36 UTC (History)
13 users (show)

Fixed In Version: libvirt-5.6.0-6.2.el8
Doc Type: Bug Fix
Doc Text:
Cause: When doing a blockcommit libvirt modifies access to image files so that qemu can do requested block job. Later, when the job is finished, the access is restored to the original state - i.e. xattrs are removed. However, if user kills qemu before it finishes its job, the access is not restored and some XATTRs ale left behind. This leaves the domain unable to start again. Consequence: A domain is unable to start again. Fix: When cleaning up domain on destroy (or after qemu crashed) libvirt deliberately clears stale XATTRs. Result: The domain can start again and again.
Clone Of: 1741456
Environment:
Last Closed: 2020-02-17 05:25:10 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0510 0 None None None 2020-02-17 05:25:39 UTC

Comment 7 yisun 2019-12-05 08:41:39 UTC
Verified with following auto cases:
(.libvirt-ci-venv-ci-runtest-ueHsGU) [root@dell-per730-58 bz1771501]# rpm -qa | grep libvirt-5
libvirt-5.6.0-6.2.virtcov.el8.x86_64

(.libvirt-ci-venv-ci-runtest-ueHsGU) [root@dell-per730-58 bz1771501]# avocado run --vt-type libvirt virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.nobase.top_inactive virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.nobase.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.base.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.timeout.nobase.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.timeout.base.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.notimeout.nobase.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.notimeout.base.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.timeout.nobase.top_active.without_pivot virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.timeout.base.top_active.without_pivot virsh.blockcommit.normal_test.multiple_chain.file_disk.local.no_ga.notimeout.nobase.top_active.without_pivot virsh.blockcommit.normal_test.multiple_chain.file_disk.local.no_ga.notimeout.base.top_active.without_pivot virsh.blockcommit.error_test.snap_in_mirror virsh.blockcommit.error_test.active_commit
JOB ID     : e3e9f11d01ff0c1e5573466c63f2f8da315d13ce
JOB LOG    : /root/avocado/job-results/job-2019-12-05T03.19-e3e9f11/job.log
 (01/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.nobase.top_inactive:  PASS (23.17 s)
 (02/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.nobase.top_active.without_pivot: PASS (22.66 s)
 (03/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.notimeout.base.top_active.without_pivot: PASS (23.83 s)
 (04/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.timeout.nobase.top_active.without_pivot: PASS (24.03 s)
 (05/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.no_ga.timeout.base.top_active.without_pivot: PASS (24.03 s)
 (06/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.notimeout.nobase.top_active.without_pivot: PASS (53.42 s)
 (07/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.notimeout.base.top_active.without_pivot: PASS (50.58 s)
 (08/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.timeout.nobase.top_active.without_pivot: PASS (50.51 s)
 (09/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.single_chain.file_disk.local.with_ga.timeout.base.top_active.without_pivot: PASS (62.65 s)
 (10/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.multiple_chain.file_disk.local.no_ga.notimeout.nobase.top_active.without_pivot: PASS (43.35 s)
 (11/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.normal_test.multiple_chain.file_disk.local.no_ga.notimeout.base.top_active.without_pivot: PASS (43.45 s)
 (12/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.error_test.snap_in_mirror: PASS (24.04 s)
 (13/13) type_specific.io-github-autotest-libvirt.virsh.blockcommit.error_test.active_commit: PASS (49.60 s)
RESULTS    : PASS 13 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB TIME   : 510.50 s

Comment 9 errata-xmlrpc 2020-02-17 05:25:10 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, 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:0510


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