Bug 1857490 - Boot luks images file twice at the same time
Summary: Boot luks images file twice at the same time
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 8.3
Assignee: Maxim Levitsky
QA Contact: Xueqiang Wei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-16 01:44 UTC by FuXiangChun
Modified: 2020-11-17 17:50 UTC (History)
11 users (show)

Fixed In Version: qemu-kvm-5.1.0-2.module+el8.3.0+7652+b30e6901
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 17:50:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description FuXiangChun 2020-07-16 01:44:17 UTC
Description of problem:
For luks file. should refuse to boot a running image. Currently, The latest qemu-kvm allow to boot twice at the same time. 

Version-Release number of selected component (if applicable):

qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64
qemu-img-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64

How reproducible:
always

Steps to Reproduce:
1. Boot a luks image
#/usr/libexec/qemu-kvm -device virtio-scsi-pci,id=virtio_scsi_pci0 -blockdev node-name=file_image1,driver=file,aio=threads,filename=/home/rhel830-64-virtio-scsi.luks,cache.direct=on,cache.no-flush=off
VNC server running on ::1:5900

2.Boot same luks image again
# /usr/libexec/qemu-kvm -device virtio-scsi-pci,id=virtio_scsi_pci0 -blockdev node-name=file_image1,driver=file,aio=threads,filename=/home/rhel830-64-virtio-scsi.luks,cache.direct=on,cache.no-flush=off
VNC server running on ::1:5901

3.

Actual results:
qemu-kvm allow to boot twice

Expected results:
should refuse to boot twice

Additional info:

Comment 1 FuXiangChun 2020-07-16 01:46:46 UTC
As pervious qemu-kvm verision(qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64) is good. so set this bug as regression.

Comment 2 Xueqiang Wei 2020-07-16 02:47:17 UTC
Tested with qcow2 format, it works well.


Versions:
kernel-4.18.0-222.el8.x86_64
qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca


(1/1) Host_RHEL.m8.u3.product_av.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.8.3.0.x86_64.io-github-autotest-qemu.qemu_img_lock.reject_boot_same_img_twice.q35: PASS (52.35 s)

Comment 3 Xueqiang Wei 2020-07-16 02:56:28 UTC
It's a regression, set the priority to high.

Comment 6 Maxim Levitsky 2020-07-19 12:43:41 UTC
Patch posted upstream.
https://lists.gnu.org/archive/html/qemu-devel/2020-07/msg05682.html

Comment 7 Maxim Levitsky 2020-07-22 15:25:47 UTC
Patch commited upstream, commit ID 662d0c5392a272aa0357aa7205e77fa3ca89c316

Comment 10 Xueqiang Wei 2020-08-13 13:08:16 UTC
Tested with qemu-kvm-5.1.0-2.module+el8.3.0+7652+b30e6901, not hit this issue. So set status to VERIFIED.


Versions:
kernel-4.18.0-232.el8.x86_64
qemu-kvm-5.1.0-2.module+el8.3.0+7652+b30e6901



 (1/1) Host_RHEL.m8.u3.product_av.luks.virtio_scsi.up.virtio_net.Guest.RHEL.8.3.0.x86_64.io-github-autotest-qemu.qemu_img_lock.reject_boot_same_img_twice.q35: PASS (1284.95 s)

Comment 13 errata-xmlrpc 2020-11-17 17:50:15 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 (virt:8.3 bug fix and enhancement update), 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:5137


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