Project

General

Profile

Actions

action #54173

closed

[virtualization][xen][sporadic] qemu-img Failed to get "write" lock on xen workers (test fails in bootloader_svirt - test fails in bootloader_start)

Added by riafarov almost 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
-
Start date:
2019-07-12
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

Formatting '/var/lib/libvirt/images/openQA-SUT-2b.img', fmt=qcow2 size=21474836480 cluster_size=65536 lazy_refcounts=off refcount_bits=16
[2019-07-12T10:10:45.345 CEST] [debug] Command's stderr:
qemu-img: /var/lib/libvirt/images/openQA-SUT-2b.img: Failed to get "write" lock
Is another process using the image?

Under certain conditions, we have lock on the image file remaining. There are multiple ways to address such issue, like using random postfix in the image name + cleanup. As seems that destroy command from previous run fails, so we need to check why.

This will solve root cause of the issue.

Alternative will be to investigate the problem and call lsof to see which process uses the image and put more things to investigate the issue in case it occurs.
We also could re-try in case command fails, or test if we can get write lock before with qemu-img info command.

openQA test in scenario sle-12-SP5-Server-DVD-x86_64-minimal+base@yast-xen-pv@svirt-xen-pv fails in
bootloader_start

Test suite description

Mantainer: jrivera Select a minimal textmode installation by starting with the default and unselecting all patterns except for "base" and "minimal". Not to be confused with the new system role "minimal" introduced with SLE15. Test modules 'grub_disable_timeout' and 'grub_test' in xen-pv are not scheduled due to grub2 doesn't support xfb console.

Reproducible

Fails since (at least) Build 0222 (current job)

Expected result

Last good: 0219 (or more recent)

Further details

Always latest result in this scenario: latest


Related issues 8 (0 open8 closed)

Related to openQA Tests - action #55058: [virtualization][xen][u] test fails in bootloader_svirt - domain xml file seems to be corruptResolvedszarate2019-08-02

Actions
Related to openQA Tests - action #43673: [functional][u] - test fails in bootloader_zkvm - worker couldn't get write lock for the disk imageResolvedszarate2018-11-12

Actions
Has duplicate openQA Tests - action #53849: [sle][functional][u] test fails in bootloader_zkvm - qemu-img create failedRejected2019-07-04

Actions
Has duplicate openQA Infrastructure - action #54758: [tools][u] test fails in bootloader_svirt - Failed to get "write" lock via virsh Rejected2019-07-29

Actions
Has duplicate openQA Tests - action #54863: [functional][u] test fails in bootloader_svirt - Missing domains in libvirt but still runnning in XEN.Resolvedszarate2019-07-30

Actions
Has duplicate openQA Tests - action #54866: [functional][u] test fails in bootloader_svirtRejectedszarate2019-07-30

Actions
Has duplicate openQA Tests - action #55961: [functional][u][sporadic] test fails in bootloader_svirt - qemu-img: Failed to get "write" lock Is another process using the image?Rejectedriafarov2019-08-26

Actions
Blocks openQA Tests - action #58787: [qe-core] test fails in bootloader_svirt - qemu-img create with backing file failedRejected2019-10-29

Actions
Actions

Also available in: Atom PDF