Bug 1667320
Summary: | -blockdev: auto-read-only is ineffective for drivers on read-only whitelist | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | aihua liang <aliang> | |
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> | |
Status: | CLOSED ERRATA | QA Contact: | aihua liang <aliang> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.6 | CC: | coli, kwolf, ngu, virt-maint | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-rhev-2.12.0-24.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1678968 1717165 (view as bug list) | Environment: | ||
Last Closed: | 2019-08-22 09:19:59 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: | 1678968, 1717165 |
Description
aihua liang
2019-01-18 07:26:35 UTC
Thanks, I can see the problem. If the driver whitelist check fails for read-write, but the driver is on the read-only whitelist, we forget to check whether we can use auto-read-only to downgrade to read-only. Same problem also exist in qemu-kvm-rhev-2.12.0-21.el7.x86_64. Fix included in qemu-kvm-rhev-2.12.0-24.el7 Test on qemu-kvm-rhev-2.12.0-24.el7.x86_64, it works ok with base's file node format "raw": -blockdev node-name=file_base,driver=https,sslverify=off,url=https://10.66.144.33/base,auto-read-only=on \ -blockdev driver=raw,file=file_base,node-name=base,auto-read-only=on \ -blockdev driver=file,node-name=file_sn1,filename=/home/sn1,auto-read-only=on \ -blockdev driver=qcow2,file=file_sn1,node-name=sn1,auto-read-only=on,backing=base \ -blockdev driver=file,node-name=file_sn2,filename=/home/sn2,auto-read-only=on \ -blockdev driver=qcow2,file=file_sn2,node-name=sn2,backing=sn1,auto-read-only=on \ -blockdev driver=file,node-name=file_sn3,filename=/home/sn3 \ -blockdev driver=qcow2,file=file_sn3,node-name=sn3,backing=sn2 \ {'execute': 'block-commit', 'arguments': { 'device':'sn3','base-node':'sn1','top-node':'sn2','job-id':'j1'}} {"timestamp": {"seconds": 1551837774, "microseconds": 533141}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "j1"}} {"timestamp": {"seconds": 1551837774, "microseconds": 533344}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "j1"}} {"return": {}} {"timestamp": {"seconds": 1551837774, "microseconds": 562099}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "j1"}} {"timestamp": {"seconds": 1551837774, "microseconds": 562144}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "j1"}} {"timestamp": {"seconds": 1551837774, "microseconds": 562510}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "j1", "len": 1073741824, "offset": 1073741824, "speed": 0, "type": "commit"}} {"timestamp": {"seconds": 1551837774, "microseconds": 562562}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "j1"}} {"timestamp": {"seconds": 1551837774, "microseconds": 562601}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "j1"}} But when i test it with base's file node format "qcow2", failed to start vm with info: qemu-kvm: -blockdev driver=qcow2,file=file_base,node-name=base,auto-read-only=on: Block node is read-only I'll track the issue by BZ#1685772 and set this 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, 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/RHSA-2019:2553 |