Bug 1104908
Summary: | vol-dumpxml get wrong format type when check volume info which created by qemu-img | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Shanzhi Yu <shyu> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 20 | CC: | agedosier, berrange, clalancette, crobinso, itamar, jforbes, jtomko, laine, libvirt-maint, mzhan, pkrempa, veillard, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-08 15:41:14 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
Shanzhi Yu
2014-06-05 02:43:51 UTC
Fixed upstream: commit c110cdb2bcc9d29dafbc89d3edda16a824e9443d Author: Ján Tomko <jtomko> CommitDate: 2014-06-05 18:58:58 +0200 Fix storage format probing Commit fff74b2 moved the probing into virStorageFileGetMetadataFromBuf but didn't update the format in volume definition. https://bugzilla.redhat.com/show_bug.cgi?id=1104908 git describe: v1.2.5-56-gc110cdb Backported to v1.2.5-maint as v1.2.5-1-gd76ada4 Verify with below step: # git describe v1.2.5-56-gc110cdb #make rpm && rpm -ivh ~/rpmbuild/RPMS/x86_64/* # systemctl start libvirtd.service # qemu-img create -f qcow2 /var/lib/libvirt/images/qcow2.img 1G Formatting '/var/lib/libvirt/images/qcow2.img', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off # virsh pool-refresh default Pool default refreshed # virsh vol-dumpxml /var/lib/libvirt/images/qcow2.img <volume type='file'> <name>qcow2.img</name> <key>/var/lib/libvirt/images/qcow2.img</key> <source> </source> <capacity unit='bytes'>1073741824</capacity> <allocation unit='bytes'>200704</allocation> <target> <path>/var/lib/libvirt/images/qcow2.img</path> <format type='qcow2'/> ... </volume> I don't think this issue affects the fedora 20 libvirt version, and f21/rawhide already have the fix, so closing. If anyone can reproduce the issue with F20 packages, please reopen |