Bug 1595285

Summary: VM Portal fails to list available network profiles for any non-admin user when QoS is defined
Product: [oVirt] ovirt-engine Reporter: biakymet
Component: RestAPIAssignee: Dominik Holler <dholler>
Status: CLOSED DUPLICATE QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: medium    
Version: 4.3.0CC: bugs, michal.skrivanek, sborella, tbaransk
Target Milestone: ovirt-4.3.1Flags: rule-engine: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
There was a bug in the REST API for non-administrator users related to VNIC Profiles. Consequently, an error message appeared saying "GET_ALL_VNIC_PROFILES failed query execution failed due to insufficient permissions." The code was fixed and the error no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 10:47:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Engine log none

Description biakymet 2018-06-26 13:45:20 UTC
Created attachment 1454672 [details]
Engine log

Description of problem:
When I try to get vNIC Profiles with UserRole through RestAPI it return "insufficient permissions". I have VnicProfileUser permissions. 

Version-Release number of selected component (if applicable):
Version 4.2.4.5-0.1.el7_3

How reproducible:
Everytime

Steps to Reproduce:
Send request as simple user:
https://<ENGINE_URL>/ovirt-engine/api/vnicprofiles

Header:
Filter: true

Actual results:
<?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:
List of vNIC Profiles

Comment 1 Michal Skrivanek 2018-06-26 16:23:03 UTC
the important detail missing in the bug description is that it's the GetAllQosByTypeQuery failing, because it's not defined as a user query. It will fail on all setups where QoS is defined

Comment 2 Dominik Holler 2019-02-07 10:47:00 UTC

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