Hide Forgot
Description of problem: When user who is using user level api wants to close connection he need to use 'Filter' header. 'Filter' header should not be required, to close connection. Version-Release number of selected component (if applicable): 3.6 How reproducible: always Steps to Reproduce: 1. Add user who is permitted to use only user resources, not admin resources. (for example user with UserRole on vm) 2. import ovirtsdk4 as sdk connection = sdk.Connection( url='http://localhost:8080/ovirt-engine/api', username='user1@internal', password='password', ca_file='ca.pem', debug=True, ) ... connection.close() Actual results: Error is returned: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <detail>query execution failed due to insufficient permissions.</detail> <reason>Operation Failed</reason> </fault> Expected results: Should succeed. Additional info:
Verified with: python-ovirt-engine-sdk4-4.0.0-0.0.a3.el7ev.x86_64 >>> import ovirtsdk4 as sdk >>> connection = sdk.Connection(url='http://localhost:8080/ovirt-engine/api', username='my_user@internal', password='123456', ca_file='ca.pem', debug=True) >>> connection.close() * About to connect() to localhost port 80 (#0) * Trying 10.34.61.176... * Connected to localhost (10.34.61.176) port 80 (#0) > GET /ovirt-engine/services/sso-logout?scope=ovirt-app-api&token=None HTTP/1.1 > Host: localhost > User-Agent: PythonSDK/4.0.0a3 > Accept: application/json > Content-Length: 0 > Content-Type: application/x-www-form-urlencoded < HTTP/1.1 200 OK < Date: Fri, 24 Jun 2016 14:06:22 GMT < Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips * Added cookie locale="en_US" for domain localhost, path /, expire 3614260829 < Set-Cookie: locale=en_US; path=/; HttpOnly; Max-Age=2147483647; Expires=Wed, 12-Jul-2084 17:20:29 GMT < Content-Type: application/json < Content-Length: 3 < Vary: Accept-Encoding < < { } * Connection #0 to host localhost left intact
oVirt 4.0.0 has been released, closing current release.