Bug 1031369

Summary: When trying to create a vNicProfile without a network, an invalid error is returned
Product: Red Hat Enterprise Virtualization Manager Reporter: awinter <awinter>
Component: ovirt-engine-restapiAssignee: Moti Asayag <masayag>
Status: CLOSED CURRENTRELEASE QA Contact: GenadiC <gcheresh>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, bazulay, ecohen, gcheresh, iheim, lpeer, lvernia, masayag, myakove, nyechiel, oramraz, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: network
Fixed In Version: ovirt-3.4.0-beta3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1078909, 1142926    

Description awinter 2013-11-17 10:25:57 UTC
Description of problem:
When trying to create a vNicProfile with no network, ovirt-engine returns an error message:
"Error while executing action: User is not authorized to perform this action."

How reproducible:
100%

Steps to Reproduce:
via REST - simply send a POST request with an empty network name/id

Actual results:
"Error while executing action: User is not authorized to perform this action."

Expected results:
"Error while executing action: A network with that name does not exist."

Additional info:

This bug was found in this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1031366

Comment 1 Moti Asayag 2013-11-24 09:30:14 UTC
(In reply to awinter from comment #0)
> Description of problem:
> When trying to create a vNicProfile with no network, ovirt-engine returns an
> error message:
> "Error while executing action: User is not authorized to perform this
> action."
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> via REST - simply send a POST request with an empty network name/id

Please note that according to the rsdl vnic profile must provide a network-id (not network name).

> 
> Actual results:
> "Error while executing action: User is not authorized to perform this
> action."
> 
> Expected results:
> "Error while executing action: A network with that name does not exist."

The expected result if no network exist will be error 404 - entity not found which is the generic error for missing entities queried via rest-api.

> 
> Additional info:
> 
> This bug was found in this bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=1031366

Comment 4 GenadiC 2014-02-17 14:01:39 UTC
Verified in ovirt-engine-3.4.0-0.7.beta2.el6.noarch

Comment 5 Sandro Bonazzola 2014-02-19 12:27:48 UTC
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA

Comment 6 GenadiC 2014-02-23 09:29:24 UTC
Verified in ovirt-engine-3.4.0-0.11.beta3.el6.noarch

Comment 7 Itamar Heim 2014-06-12 14:07:32 UTC
Closing as part of 3.4.0