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:
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.