Red Hat Bugzilla – Bug 453061
CRM #1831514 - virt-manager/ Remove showing incorrect partition size while adding block devices
Last modified: 2010-10-22 22:19:10 EDT
Description of problem:
This was only fixed in src/virtManager/create.py and also need to be fixed in
src/virtManager/addhardware.py to prevent the wrong size of 2000MB being
reported while adding a block device after the guest was installed.
The bugzilla where this was fixed in create.py is
Steps to Reproduce:
In RHEL-5.2, after a guest was installed, please follow the below steps.
- Launch virt-manager.
- Right click on the guest -> Select Details -> Select "Hardware" tab -> Select
"Add" -> Select "Storage device" in the "Hardware type" window and click forward
-> Select "Normal Disk Partition" and a Partition using the "Browse" button ->
Select "Virtual disk" from the "Device type" box and click forward
- On this window the size of the virtual disk would be reported wrongly as 2000MB.
It shouldn't report any size.
patch attached. Courtesy of Sadique Puthenp
Affected version of virt-manager:
Created attachment 310404 [details]
patch - courtesy of Sadique Puthenp
IMHO, the above patch changes the wrongly reported size of 2000MB to a "-".
This is not a good fix. Having virt-manager display 2000MB is a BUG and it
should be fixed appropriately.
Similar fix is already upstream, so I'll just pull that down:
Comment #2, I'm not sure I follow. The bug here is that we are displaying the
"create-a-disk-of-this-size" value in the summary section, even if a block
device was selected (which virt-manager cannot directly create). Just blanking
out this value with a '-' to indicate 'not-relevant-here' seems like a
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Created attachment 316965 [details]
Attempt to show correct sizes for block device.
To test this, in the new VM wizard or Add Hardware wizard, select an existing disk partition to use to install the guest. Move forward to the summary screen, and the size of this partition should be shown. Now back up and enter something like /dev/cdrom as the partition to use (obviously invalid). The summary screen should now show a '-' as the size.
Previously the size listed here would always be whatever was in the 'File Size' spin button in the add hardware wizard, or an unconditional '-' in the create wizard.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.