Bug 750420

Summary: Refresh volumes button does not recognize the changed format of volumes.
Product: [Community] Virtualization Tools Reporter: Daisy Wu <jwu>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, crobinso, hyao, jwu, mzhan, rwu, xen-maint, zpeng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-30 03:15:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daisy Wu 2011-11-01 03:28:29 UTC
Description of problem:
Refresh volumes button does not recognize the changed format of volumes.

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-7.el6
libvirt-0.9.4-20.el6
python-virtinst-0.600.0-5.el6
qemu-kvm-0.12.1.2-2.204.el6.x86_64

# uname -a
Linux wjw.nay.redhat.com 2.6.32-214.el6.x86_64 #1 SMP Tue Oct 25 19:48:00 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. Launch the virt-manager.
2. Install a guest and make sure the img format is raw:
# qemu-img info 6.1demo.img
image: 6.1demo.img
file format: raw
virtual size: 8.0G (8589934592 bytes)
disk size: 8.0G

3. Prepare a qcow2 img:
# qemu-img create 6.1demo-clone.img -f qcow2 8G
Formatting '6.1demo-clone.img', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536
# qemu-img info 6.1demo-clone.img
image: 6.1demo-clone.img
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 136K
cluster_size: 65536
    
4. Showdown the guest.

5. Clone the guest 6.1demo with the prepared qcow2 img, the qcow2 img will be changed to raw img after clone:
# virt-clone -o 6.1demo -n 6.1demo-clone --file=/var/lib/libvirt/images/6.1demo-clone.img
ERROR    This will overwrite the existing path '/var/lib/libvirt/images/6.1demo-clone.img' (Use --prompt or --force to override)
# virt-clone -o 6.1demo -n 6.1demo-clone --file=/var/lib/libvirt/images/6.1demo-clone.img --force
Cloning 6.1demo.img                                                                                                                                                                     | 6.1 GB     01:28 ...
Clone '6.1demo-clone' created successfully.

6. Check that the format of 6.1demo-clone.img is changed to raw.
# qemu-img info 6.1demo-clone.img
image: 6.1demo-clone.img
file format: raw
virtual size: 6.1G (6578503680 bytes)
disk size: 6.1G

7. Click the "Refresh volumes list" button of storage:
Edit->Connection details-> Storage->select the pool which contain  6.1demo-clone.img-> click "Refresh volumes list" button

8. Check the format of 6.1demo-clone.img.
  
Actual results:
The format info of 6.1demo-clone.img still be displayed qcow2.

Expected results:
The format of 6.1demo-clone.img should refresh to raw.

Additional info:
If re-launch the virt-manager, the format info will be refreshed.

Comment 2 Cole Robinson 2011-12-09 21:39:00 UTC
Not urgent, and given reduced capacity for virt-manager/virtinst, just moving this to the upstream tracker.

We probably just aren't changing the format UI field when volume details change.