Bug 1366547

Summary: Not possible to send query parameter with action/add/update methods
Product: [oVirt] ovirt-engine-sdk-python Reporter: Ondra Machacek <omachace>
Component: CoreAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.0aCC: bugs, juan.hernandez, mgoldboi, pmatyas
Target Milestone: ovirt-4.0.4Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
omachace: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.0.a6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 12:41:08 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:

Description Ondra Machacek 2016-08-12 09:49:01 UTC
Description of problem:
When API supports to send query parameter to some action/add/update, in SDK it' not possible send such 
query parameter.

Version-Release number of selected component (if applicable):
oVirt 4.0.2

How reproducible:
always

Steps to Reproduce:
1. Try to create template with 'copy_permissions' flag. Or import vm with collapse snapshots.

  https://github.com/oVirt/ovirt-engine/tree/master/backend/manager/modules/restapi#335-removed-the-permissionsclone-element

  https://github.com/oVirt/ovirt-engine/tree/master/backend/manager/modules/restapi#333-removed-the-snapshotscollapse_snapshots-element

Actual results:
Not possible.

Expected results:
Should be possible to do it from SDK.

Additional info:

Comment 1 Ondra Machacek 2016-08-18 14:03:35 UTC
To verify, run following example:

 https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_independet_vm.py

Comment 2 Petr Matyáš 2016-09-13 16:11:33 UTC
Verified on 4.0.4-2