Bug 1367260
Summary: | key mismatched in http protocol of json backing format | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Han Han <hhan> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | dyuan, pkrempa, rbalakri, xuzhang, yanyang |
Target Milestone: | rc | Keywords: | TestBlocker |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-2.0.0-6.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:53:25 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: | 1134878 |
Description
Han Han
2016-08-16 05:21:01 UTC
Fixed upstream: commit c2e12b01baaf660abcf87f4a6f470862ac7aca15 Author: Peter Krempa <pkrempa> Date: Tue Aug 16 09:24:12 2016 +0200 utils: storage: Fix JSON field name for uri based storage qemu uses 'url' instead of 'uri'. They unfortunately look very similar. Verify it on libvirt-2.0.0-6.el7.x86_64 Since http is not whitelisted in current qemu-kvm-rhev, using https protocol to verify the bug. 1. Build up a https server and copy a qcow2 image to the https root dir. 2. Create a json backing image, use sslverify=off due to untrusted https certificate. # qemu-img create -f qcow2 -b 'json:{"file.driver":"https", "file.url":"https://lab.work.me/https", "file.sslverify":"off"}' /var/lib/libvirt/images/https.img Formatting '/var/lib/libvirt/images/https.img', fmt=qcow2 size=524288000 backing_file=json:{"file.driver":"https",, "file.url":"https://lab.work.me/https",, "file.sslverify":"off"} encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 3. Refresh the default pool # virsh pool-refresh default Pool default refreshed 4. Attach and detach the backing image # virsh list Id Name State ---------------------------------------------------- 15 V running # virsh attach-disk V /var/lib/libvirt/images/https.img vdb --subdriver Disk attached successfully In guest: [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 252:0 0 3G 0 disk ├─vda1 252:1 0 500M 0 part /boot └─vda2 252:2 0 2.5G 0 part ├─rhel-root 253:0 0 2.2G 0 lvm / └─rhel-swap 253:1 0 308M 0 lvm [SWAP] vdb 252:16 0 500M 0 disk # virsh detach-disk V vdb Disk detached successfully Http protocol: # qemu-img create -f qcow2 -b 'json:{"file.driver":"http", "file.url":"http://10.66.6.236:81/tune.qcow2"}' /var/lib/libvirt/images/http.img Formatting '/var/lib/libvirt/images/http.img', fmt=qcow2 size=104857600 backing_file=json:{"file.driver":"http",, "file.url":"http://10.66.6.236:81/tune.qcow2"} encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 # virsh pool-refresh default Pool default refreshed 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://rhn.redhat.com/errata/RHSA-2016-2577.html |