Bug 1771501
Summary: | Image cannot be used after blockcommit snapshots to base image and destroy/start vm [rhel-av-8.1.0.z] | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Oneata Mircea Teodor <toneata> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | yisun |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.1 | CC: | dzheng, fjin, jdenemar, jsuchane, kchamart, lcheng, lmen, mprivozn, mtessun, rbalakri, xuzhang, yafu, yisun |
Target Milestone: | rc | Keywords: | Automation, Regression, TestBlocker, Upstream, ZStream |
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
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.
|
Story Points: | --- |
Clone Of: | 1741456 | Environment: | |
Last Closed: | 2020-02-17 05:25:10 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: | 1741456 | ||
Bug Blocks: | 1652078 |
Comment 5
Michal Privoznik
2019-11-22 17:10:15 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 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 |