RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1415126 - virt-manager cannot show correct size and format for qcow2 image which not managed by dir-pool
Summary: virt-manager cannot show correct size and format for qcow2 image which not ma...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.9
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-20 10:59 UTC by zhoujunqin
Modified: 2017-03-02 19:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-02 19:39:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot-2 (129.77 KB, image/png)
2017-01-20 10:59 UTC, zhoujunqin
no flags Details
screenshot-1 (122.59 KB, image/png)
2017-01-20 11:00 UTC, zhoujunqin
no flags Details

Description zhoujunqin 2017-01-20 10:59:17 UTC
Created attachment 1242714 [details]
screenshot-2

Description of problem:
virt-manager cannot show correct size and format for qcow2 image which not managed by dir-pool

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-34.el6.x86_64
libvirt-0.10.2-62.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.501.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Make sure there is no dir pool using path:  /var/test1/

2. Create a new qcow2 image under path: /var/test1/
# qemu-img create -f qcow2 /var/test1/testjuzhou.img +6G
Formatting '/var/test1/testjuzhou.img', fmt=qcow2 size=6442450944 encryption=off cluster_size=65536 

# qemu-img info /var/test1/testjuzhou.img 
image: /var/test1/testjuzhou.img
file format: qcow2
virtual size: 6.0G (6442450944 bytes)
disk size: 196K
cluster_size: 65536

3. Then launch virt-manager to install a guest on this existing qcow2 image.
# virt-manager
In "step 4 of 5", choose "Select managed or other existing storage", input "/var/test1/testjuzhou.img", then click "Forward".

In "step 5 of 5" page, it shows: Storage: 0.0 GB  /var/test1/testjuzhou.img->screenshot-1
Tick "Customize configuration before install" and click "Finish".
In last page check disk information->screenshot-2.
Storage size: 0.19M
Storage format: raw

And after installation starting, it will also failed at disk partitioning page.


Actual results:
As above.

Expected results:
Show qcow2 disk size correctly.

Additional info:
After i create a new dir pool using path "/var/test1/", then do above step again, virt-manager will show disk size and format correctly.

Comment 1 zhoujunqin 2017-01-20 11:00:13 UTC
Created attachment 1242715 [details]
screenshot-1

Comment 4 Cole Robinson 2017-03-02 19:39:31 UTC
Thanks for the report, but this is not something that we can realistically 'fix' in RHEL6. The way this works upstream is that we will automatically create a storage pool for the parent directory, so that we can leverage libvirt's storage knowledge to introspect the selected disk image. This work can not be backported and can not easily be worked around. So this is CANTFIX for RHEL6


Note You need to log in before you can comment on or make changes to this bug.