Bug 1031369 - When trying to create a vNicProfile without a network, an invalid error is returned
When trying to create a vNicProfile without a network, an invalid error is re...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi (Show other bugs)
3.3.0
Unspecified Linux
medium Severity medium
: ---
: 3.4.0
Assigned To: Moti Asayag
GenadiC
network
: Triaged
Depends On:
Blocks: rhev3.4beta 1142926
  Show dependency treegraph
 
Reported: 2013-11-17 05:25 EST by awinter
Modified: 2016-02-10 14:55 EST (History)
13 users (show)

See Also:
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: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 24327 None None None Never

  None (edit)
Description awinter 2013-11-17 05:25:57 EST
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 04:30:14 EST
(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 09:01:39 EST
Verified in ovirt-engine-3.4.0-0.7.beta2.el6.noarch
Comment 5 Sandro Bonazzola 2014-02-19 07:27:48 EST
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA
Comment 6 GenadiC 2014-02-23 04:29:24 EST
Verified in ovirt-engine-3.4.0-0.11.beta3.el6.noarch
Comment 7 Itamar Heim 2014-06-12 10:07:32 EDT
Closing as part of 3.4.0

Note You need to log in before you can comment on or make changes to this bug.