Bug 1947772
Summary: | Mirror job lifts permissions on the source node | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Hanna Czenczek <hreitz> |
Component: | qemu-kvm | Assignee: | Hanna Czenczek <hreitz> |
qemu-kvm sub component: | Block Jobs | QA Contact: | aihua liang <aliang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | coli, jinzhao, juzhang, kwolf, ngu, virt-maint, xuwei |
Version: | 8.4 | Keywords: | TestOnly, Triaged |
Target Milestone: | rc | ||
Target Release: | 8.5 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-6.0.0-25.module+el8.5.0+11890+8e7c3f51 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-16 07:52:31 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: | |||
Bug Blocks: | 1940118 |
Description
Hanna Czenczek
2021-04-09 08:44:38 UTC
Test on qemu-kvm-6.0.0-25.module+el8.5.0+11890+8e7c3f51, don't hit this issue any more. Test Steps: 1.Create 20G src image #qemu-img create -f raw /home/src.img 20G 2.Start guest with qemu cmds: /usr/libexec/qemu-kvm \ -name 'avocado-vt-vm1' \ -sandbox on \ -machine q35,memory-backend=mem-machine_mem \ -device pcie-root-port,id=pcie-root-port-0,multifunction=on,bus=pcie.0,addr=0x1,chassis=1 \ -device pcie-pci-bridge,id=pcie-pci-bridge-0,addr=0x0,bus=pcie-root-port-0 \ -nodefaults \ -device VGA,bus=pcie.0,addr=0x2 \ -m 30720 \ -object memory-backend-ram,size=30720M,id=mem-machine_mem \ -smp 10,maxcpus=10,cores=5,threads=1,dies=1,sockets=2 \ -cpu 'Cascadelake-Server-noTSX',+kvm_pv_unhalt \ -chardev socket,path=/tmp/monitor-qmpmonitor1-20210726-224623-wKtTHYii,server=on,wait=off,id=qmp_id_qmpmonitor1 \ -mon chardev=qmp_id_qmpmonitor1,mode=control \ -chardev socket,path=/tmp/monitor-catch_monitor-20210726-224623-wKtTHYii,server=on,wait=off,id=qmp_id_catch_monitor \ -mon chardev=qmp_id_catch_monitor,mode=control \ -device pvpanic,ioport=0x505,id=idrUTreX \ -chardev socket,path=/tmp/serial-serial0-20210726-224623-wKtTHYii,server=on,wait=off,id=chardev_serial0 \ -device isa-serial,id=serial0,chardev=chardev_serial0 \ -chardev socket,id=seabioslog_id_20210726-224623-wKtTHYii,path=/tmp/seabios-20210726-224623-wKtTHYii,server=on,wait=off \ -device isa-debugcon,chardev=seabioslog_id_20210726-224623-wKtTHYii,iobase=0x402 \ -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \ -device qemu-xhci,id=usb1,bus=pcie-root-port-1,addr=0x0 \ -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \ -device pcie-root-port,id=pcie-root-port-2,port=0x2,addr=0x1.0x2,bus=pcie.0,chassis=3 \ -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pcie-root-port-2,addr=0x0 \ -blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/src.img,cache.direct=on,cache.no-flush=off \ -blockdev node-name=drive_image1,driver=raw,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \ -device scsi-hd,id=image1,drive=drive_image1,write-cache=on \ -device pcie-root-port,id=pcie-root-port-3,port=0x3,addr=0x1.0x3,bus=pcie.0,chassis=4 \ -device virtio-net-pci,mac=9a:6b:6a:ee:c1:06,id=idL1rFoB,netdev=idW45Tup,bus=pcie-root-port-3,addr=0x0 \ -netdev tap,id=idW45Tup,vhost=on \ -vnc :0 \ -rtc base=utc,clock=host,driftfix=slew \ -boot menu=off,order=cdn,once=c,strict=off \ -enable-kvm \ -device pcie-root-port,id=pcie_extra_root_port_0,multifunction=on,bus=pcie.0,addr=0x3,chassis=5 \ -monitor stdio \ 3.Create target node. {'execute':'blockdev-create','arguments':{'options': {'driver':'file','filename':'/root/sn1','size':21474836480},'job-id':'job1'}} {"timestamp": {"seconds": 1627442242, "microseconds": 347370}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job1"}} {"timestamp": {"seconds": 1627442242, "microseconds": 347435}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job1"}} {"return": {}} {"timestamp": {"seconds": 1627442242, "microseconds": 348295}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "job1"}} {"timestamp": {"seconds": 1627442242, "microseconds": 348337}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "job1"}} {"timestamp": {"seconds": 1627442242, "microseconds": 348362}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job1"}} {'execute':'blockdev-add','arguments':{'driver':'file','node-name':'drive_sn1','filename':'/root/sn1'}} {"return": {}} 4.Do mirror from src to target {"execute": "blockdev-mirror", "arguments": {"sync": "full", "device": "drive_image1", "target": "drive_sn1", "job-id": "j1"}} {"timestamp": {"seconds": 1627442316, "microseconds": 565203}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "j1"}} {"timestamp": {"seconds": 1627442316, "microseconds": 565280}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "j1"}} {"return": {}} {"timestamp": {"seconds": 1627442316, "microseconds": 585744}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "j1"}} {"timestamp": {"seconds": 1627442316, "microseconds": 585787}, "event": "BLOCK_JOB_READY", "data": {"device": "j1", "len": 21474836480, "offset": 21474836480, "speed": 0, "type": "mirror"}} 5.Qemu-io src image #qemu-io -f raw /home/src.img qemu-io: can't open device /home/src.img: Failed to get "write" lock Is another process using the image [/home/src.img]? Hi, Max Please help to check the test result. If ok, I will move it to AV and set bug's status to "Closed->CURRENTRELEASE". Thanks, Aliang Hi, I’m a bit confused myself. Well, we definitely need an AV BZ, and what I wrote (also the “going to be part of qemu 6.0” part) clearly seems to indicate that I intended this as an AV BZ. However, the bug exists in non-AV 8.5.0, too... So I guess we should move this BZ here to AV and then clone it for non-AV. Max (In reply to aihua liang from comment #3) > Hi, Max > Please help to check the test result. If ok, I will move it to AV and set > bug's status to "Closed->CURRENTRELEASE". Sorry, forgot to say: Yes, the test result looks good, thanks. Max (In reply to Max Reitz from comment #4) > Hi, > > I’m a bit confused myself. Well, we definitely need an AV BZ, and what I > wrote (also the “going to be part of qemu 6.0” part) clearly seems to > indicate that I intended this as an AV BZ. > > However, the bug exists in non-AV 8.5.0, too... So I guess we should move > this BZ here to AV and then clone it for non-AV. > > Max Hi, Max Block jobs only be tested on AV. And in non-AV, block jobs are in black list. So we don't need to clone it for non-AV. BR, Aliang (In reply to aihua liang from comment #6) > Hi, Max > > Block jobs only be tested on AV. > And in non-AV, block jobs are in black list. > So we don't need to clone it for non-AV. Oh, what a nice surprise. :) Thanks for the info! Max As comment3, set bug's status to "Verified". 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:av 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-2021:4684 |