Bug 1169377

Summary: [REGENERATE PYTHON SDK] "move" disk operation badly documented, incomplete options support
Product: [Retired] oVirt Reporter: Juan Hernández <juan.hernandez>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4CC: amureini, bugs, ecohen, gklein, iheim, juan.hernandez, lsurette, nicolas, pstehlik, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.5.1   
Hardware: All   
OS: All   
Whiteboard: infra
Fixed In Version: ovirt-engine-sdk-python-3.5.1.0-0.1.20150116.git9a7ec0c Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1169376 Environment:
Last Closed: 2015-01-21 16:05:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1169376    
Bug Blocks:    

Description Juan Hernández 2014-12-01 13:44:16 UTC
+++ This bug was initially created as a clone of Bug #1169376 +++

Description of problem:

Trying to (cold or not) move a disk from the CLI, relying on the TAB-TAB or by reading the docs, proves that this operation is not completely supported :

----
# action disk myDisk move --storagedomain-name mySD
get() got an unexpected keyword argument 'name'
----

Juan Hernández gives this workaround :
You can however use the same operation in the context of the VM :
# action disk c6aab66a-b551-4cc5-8628-efe9622c0dce move --vm-identifier myvm --storage_domain-name mysd

and I confirm this is working.

The included doc is wrong, and so is the auto-completion.

Version-Release number of selected component (if applicable):
>> [oVirt shell (connected)]# info
>>
>> backend version: 3.4
>> sdk version    : 3.4.4
>> cli version    : 3.4.0.5
>> python version : 2.6.6.final.0

How reproducible:
Always

Steps to Reproduce:
1. Run an ovirt-shell
2. Try to move a disk following the command above
3. Cry

Actual results:
The disk is just staying there, calm.

Expected results:
The disk is moving towards the wanted storage domain.

Additional info:
See this thread :
http://lists.ovirt.org/pipermail/users/2014-November/029623.html

--- Additional comment from Juan Hernández on 2014-12-01 08:43:27 EST ---

The RSDL metadata should be fixed, then the SDKs need to be regenerated.

Comment 1 Sandro Bonazzola 2015-01-21 16:05:04 UTC
oVirt 3.5.1 has been released. If problems still persist, please make note of it in this bug report.