Bug 984740

Summary: rhevm-shell does not allow overwriting in export domain
Product: Red Hat Enterprise Virtualization Manager Reporter: wdaniel
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED NOTABUG QA Contact: Elena <edolinin>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.5CC: acathrow, amureini, bazulay, benglish, iheim, oramraz, Rhev-m-bugs, srevivo
Target Milestone: ---   
Target Release: 3.1.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-16 07:09:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wdaniel 2013-07-15 20:44:00 UTC
Description of problem:

When using rhevm-shell to manage an environment, it appears that you can export a VM, but you can not export if it already exists in the target domain.

How reproducible:
100%

Steps to Reproduce:
1. Open rhevm-shell session
2. Type command to export vm (# action vm <vm_name> export ...)
3. Receive the following message:

error: 
status: 400
reason: Bad Request
detail: Cannot export VM. VM with the same identifier already exists.

Actual results:
rhevm-shell replies with the above message


Expected results:
rhevm-shell would either have an overwrite flag, or a prompt asking if you want to continue

Additional info:
The help page for the 'export' sub command lists only the following as flags you can specify:
    [--async: boolean]
    [--exclusive: boolean]
    [--discard_snapshots: boolean]
    [--storage_domain-id|name: string]
    [--grace_period-expiry: long]
    [--correlation_id: anystring]

Comment 1 Michael Pasternak 2013-07-16 07:09:46 UTC
specify '--exclusive true' to ForceOverride