Bug 1101458

Summary: [python-sdk] Undo snapshot preview action does not support passing correlation_id parameter
Product: Red Hat Enterprise Virtualization Manager Reporter: Gadi Ickowicz <gickowic>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED DUPLICATE QA Contact: Aharon Canan <acanan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acanan, acathrow, gklein, iheim, nlevinki, oramraz, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-03 11:33:47 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 Gadi Ickowicz 2014-05-27 08:31:08 UTC
Description of problem:
vm.undo_snapshot() method does not support passing correlation_id parameter like other actions in sdk:

>>> vm.preview_snapshot(params.Action(snapshot=snap))
<ovirtsdk.xml.params.Action object at 0x26f5850>
>>> vm.undo_snapshot(correlation_id='x')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: undo_snapshot() got an unexpected keyword argument 'correlation_id'
>>> vm.undo_snapshot()
<ovirtsdk.xml.params.Action object at 0x3afdc50>



Version-Release number of selected component (if applicable):
rhevm-sdk-python-3.4.1.0-2.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Try to pass correlation_id parameter to undo_snapshot function in sdk


Actual results:
fails with TypeError: undo_snapshot() got an unexpected keyword argument 'correlation_id'

Expected results:
python-sdk should allow user to pass correlation_id parameter for all actions

Additional info:

Comment 1 Juan Hernández 2014-06-03 11:33:47 UTC

*** This bug has been marked as a duplicate of bug 1101405 ***