Bug 913382

Summary: Virt-clone is unable to replace existing guest
Product: [Community] Virtualization Tools Reporter: Geyang Kong <gkong>
Component: virtinstAssignee: Martin Kletzander <mkletzan>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, dallan, dyasny, hyao, lcui, mjenner, mkletzan, mzhan, rwu, tzheng
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: 2013-03-07 10:01:54 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 Geyang Kong 2013-02-21 06:18:54 UTC
Description of problem:
  Virt-clone on RHEL7 cannot replace existed guest.

Version-Release number of selected component (if applicable):
python-virtinst-0.600.3-2.el7.noarch

Reproduce steps:
1. Have an installed guest.
2. Run: virt-clone -o T1 --name=T1 --file=/var/lib/libvirt/images/T1-new.img --replace

Actual results:
1. Got: ERROR    Guest name 'T1' is already in use.

Expected results:
1. Could clone T1 successfully.

Additional info:

Comment 2 Martin Kletzander 2013-03-06 10:04:25 UTC
Patch upstream, but we still have to wait for the merge.

commit 03804ee7fabaf730d68845a46668e29cee21fd84
Author: Martin Kletzander <mkletzan>
Date:   Thu Feb 21 16:38:44 2013 +0100

    virt-clone: Properly propagate --replace parameter

Comment 3 Martin Kletzander 2013-03-07 10:01:54 UTC
Don't mind the "merge" part of previous comment, moving upstream and closing it as NEXTRELEASE.