Bug 1076904

Summary: [Neutron integration] Incorrect error message when remove network from Neutron provider fails
Product: Red Hat Enterprise Virtualization Manager Reporter: GenadiC <gcheresh>
Component: ovirt-engineAssignee: Moti Asayag <masayag>
Status: CLOSED WONTFIX QA Contact: GenadiC <gcheresh>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: acathrow, gklein, iheim, lpeer, lvernia, myakove, nyechiel, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-23 11:05:12 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:
Bug Depends On:    
Bug Blocks: 1063716, 1142923, 1156165    

Description GenadiC 2014-03-16 11:39:42 UTC
Description of problem:
If you try to remove network from RHEV setup and from Neutron simultaneously when that network doesn't exist on Neutron, you get an error message "Failed to remove Network <network_name> from Data Center: <DC_NAME>" in the Events tab, though the failure is in remove from Neutron Server as the network doesn't exists there

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create network red on DC and Neutron from GUI
2. Remove network from neutron by running neutron net-delete <id> command on the Neutron Server
3. Try to remove that network from GUI when "Remove external network(s) from the provider(s) as well" checkbox is checked

Actual results:
Action fails on Failed to remove Network <network_name> from Data Center: <DC_NAME>" error in Events tab

Expected results:
It should be pop-up with an error that action failed to remove network on Neutron Server

Additional info:

Comment 1 Moti Asayag 2014-07-23 11:05:12 UTC
When an external network is being removed from a provider, the provider is being accessed only during the execution of the action.

Therefore it is too late in the flow to bump a popup with a message.
The reason for not accessing the provider during the command validation is to prevent it from hung the webadmin for the entire time.