Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1031366

Summary: Incorrect error message when trying to import network with invalid name from network provider
Product: Red Hat Enterprise Virtualization Manager Reporter: awinter <awinter>
Component: ovirt-engine-webadmin-portalAssignee: Lior Vernia <lvernia>
Status: CLOSED CURRENTRELEASE QA Contact: Meni Yakove <myakove>
Severity: high Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, bazulay, ecohen, iheim, lvernia, masayag, myakove, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: network
Fixed In Version: is27 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: 1049022    
Attachments:
Description Flags
ovirt-engine's log
none
A video that shows the problem none

Description awinter 2013-11-17 10:09:48 UTC
Description of problem:
After creating a network in Neutron with the name "net_created_in_neutron" I tried to import it to rhevm.
The import failed with the error:
"Error while executing action: User is not authorized to perform this action."

The problem is that the name of the network is too long for rhevm (max length is 15).

ovirt report in its log that the name is illegal, pop a window in GUI but then it tries to create vNicProfile and fails. The failure of the creation of the profile also sends a pop up window instead of the existing one and the user gets the wrong error output.

How reproducible:
100%

Steps to Reproduce:
1. create a network in neutron with a long name "net_created_in_neutron"
2. try to import the network without changing its name

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

Expected results:
The error message should be:
"Invalid name, max length is 15" (Or something like that... )

Additional info:
We should also check that the only legal characters are a-z, A-Z, 0-9 and "_"

Comment 1 awinter 2013-11-17 10:12:24 UTC
Created attachment 825115 [details]
ovirt-engine's log

Comment 2 awinter 2013-11-17 10:15:05 UTC
Created attachment 825116 [details]
A video that shows the problem

Comment 3 awinter 2013-11-17 10:42:47 UTC
I now saw that the same thing is happening when trying to import a network with vlan that already exists in the DC.

Steps to Reproduce:
1. Create a network via rhevm GUI with vlan 163
2. Create a network via Neutron with vlan 163
3. Import the network

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

Expected results:
The error message should be:
"Error while executing action: The specified VLAN ID (163) is already in use."

Comment 6 Meni Yakove 2013-12-15 13:51:27 UTC
rhevm-3.3.0-0.40.rc.el6ev.noarch

Comment 7 Itamar Heim 2014-01-21 22:20:41 UTC
Closing - RHEV 3.3 Released

Comment 8 Itamar Heim 2014-01-21 22:26:19 UTC
Closing - RHEV 3.3 Released