Bug 1724065
Summary: | Fail to create raw format volume for rbd pool | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Han Han <hhan> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED ERRATA | QA Contact: | gaojianan <jgao> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 8.1 | CC: | chhu, dyuan, jdenemar, jtomko, lcheng, lmen, meili, xuzhang, yalzhang |
Target Milestone: | rc | Keywords: | Automation, Regression, TestBlocker |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-5.6.0-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-06 07:17:15 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: |
Description
Han Han
2019-06-26 08:00:48 UTC
It seems we don't even parse the format type since: commit 035db37394ad11a39d47f8bd2b6a8a2734283cbf Author: John Ferlan <jferlan> CommitDate: 2019-03-06 11:12:48 -0500 conf: Remove volOptions for VIR_STORAGE_POOL_RBD The rbd pool is documented as not using the volume type, so let's just remove it. Signed-off-by: John Ferlan <jferlan> ACKed-by: Michal Privoznik <mprivozn> git describe: v5.1.0-108-g035db37394 contains: v5.2.0-rc1~313 I believe this patch should fix it, but I have not tested it: https://www.redhat.com/archives/libvir-list/2019-July/msg00811.html commit 5d74619329a2063efc8028536b3f8acc8e949f88 Author: Ján Tomko <jtomko> CommitDate: 2019-07-12 17:09:43 +0200 Revert "conf: Remove volOptions for VIR_STORAGE_POOL_RBD" This reverts commit 035db37394ad11a39d47f8bd2b6a8a2734283cbf Even though we only allow using RBD with raw volumes, removing the options and the default format causes our parser not to fill out the volume format and the backend code rejects creating a non-raw volume. Re-introduce the volume options to fix volume creation while erroring out on requests to use non-raw formats. https://bugzilla.redhat.com/show_bug.cgi?id=1724065 Signed-off-by: Ján Tomko <jtomko> Reviewed-by: Daniel P. Berrangé <berrange> git describe: v5.5.0-124-g5d74619329 Verified on : 1. Prepare a running rbd pool: # virsh pool-dumpxml ceph <pool type='rbd'> <name>ceph</name> <uuid>47c1faee-0207-e741-f5ae-d9b019b98fe2</uuid> <capacity unit='bytes'>203909201920</capacity> <allocation unit='bytes'>18446744062972134192</allocation> <available unit='bytes'>212010708992</available> <source> <host name='10.73.224.204' port='6789'/> <name>rbd</name> <auth type='ceph' username='admin'> <secret uuid='e0996384-add4-44d3-a776-374fd6ba87e5'/> </auth> </source> </pool> 2. Prepare a vol xml: # cat /tmp/rbd-vol.xml <volume > <name>vol-test1.img</name> <source> </source> <capacity unit='bytes'>5368709120</capacity> <allocation unit='bytes'>5368709120</allocation> <target> <format type='raw'/> </target> </volume> 3. Create vol for the rbd pool: # virsh -k0 vol-create ceph rbd.xml Vol vol-test1.img created from rbd.xml # virsh vol-info --pool ceph vol-test1.img Name: vol-test1.img Type: network Capacity: 5.00 GiB Allocation: 5.00 GiB Work as expected 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-2019:3723 |