Bug 1355647

Summary: Capabilities entry point missing
Product: [oVirt] ovirt-engine Reporter: Gonza <grafuls>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, gklein, grafuls, juan.hernandez, lsvaty
Target Milestone: ovirt-4.0.2Keywords: ZStream
Target Release: 4.0.2Flags: rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
lsvaty: testing_ack+
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-08-12 14:24:54 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 Gonza 2016-07-12 07:21:36 UTC
Description of problem:
We need the ability to list available permits from the API which on v3 we could find under the capabilities entry point which is no longer there on v4.

Version-Release number of selected component (if applicable):
python-ovirt-engine-sdk4-4.0.0-0.0.a3.el7ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Go to https://{engine}/ovirt-engine/api/capabilities

Actual results:
No results are returned

Expected results:
Results for capabilities are returned

Comment 1 Juan Hernández 2016-07-12 09:52:20 UTC
In version 4 of the API the "capabilities" service has been replaced by the new "clusterlevels" service. The permits haven't been added yet. They will be added by the proposed patch, so the will be available with a request like this:

  GET /ovirt-engine/api/clusterlevels/4.0

The result will contain the following:

  <cluster_level id="4.0" href="/ovirt-engine/api/clusterlevels/4.0">
    <permits>
      <permit id="1">
        <name>create_vm</name>
        <administrative>false</administrative>
      </permit>
      ...
    </permits>
  </cluster_level>

Comment 2 Yaniv Kaul 2016-07-12 09:59:53 UTC
SEVERITY?

Comment 3 Lukas Svaty 2016-07-29 13:56:12 UTC
verified in ovirt-engine-restapi-4.0.2.1-0.1.el7ev.noarch