Bug 459877

Summary: cloning an image over an existing disk file returns a wrong error
Product: [Community] Virtualization Tools Reporter: Baptiste Mille-Mathias <baptiste.millemathias>
Component: virtinstAssignee: Daniel Berrange <berrange>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: baptiste.millemathias, crobinso
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-03 15:13:21 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Baptiste Mille-Mathias 2008-08-23 08:48:39 EDT
version: 0.4.4

# virt-clone -o vm_debian1 -n vm_debian2 -f /media/disk/vm02.img
ERROR:  Disk size must be an int or a float.
|_ the message is not related to the real error.

Once I deleted the file /media/disk/vm02.img, the cloning operation succeeded (btw it could be fine to allow to overwrite the target image)
Comment 1 Cole Robinson 2008-09-03 15:13:21 EDT
This is actually an issue in the python-virtinst package.

I've fixed this upstream: now if you try -f 'some-existing-file', virt-clone will prompt the user saying something like "This will overwrite 'file', are you sure you want to use this path?" Which seems a sufficient solution to me.


Closing as UPSTREAM.