Description of problem: If inside a command an exception during the communication with an external provider occurs, only "Failed with error PROVIDER_FAILURE and code 5050)" is logged by the command and transported to the user, e.g. in webamin. More helpful would be to log and present the reason for the exception. On implementation level, it may help if the message of the inner exception of the EngineException is would be included in the message of the EngineException. It may be helpful if the creator of the EngineException can decide if the message of the inner exception should be included in the EngineException. Version-Release number of selected component (if applicable): How reproducible: Import a network from an external network provider which is not available. Steps to Reproduce: 1. Import a network from an external network provider which is not available in webadmin 2. 3. Actual results: Log and webadmin shows: 'Error while listing external networks: PROVIDER_FAILURE' Expected results: Error message in log and webamdin contains 'Connection refused' Additional info:
Is this on track to 4.2.2? If not, please defer to 4.2.3.
I did following steps: 1. opened import network dialog 2. selected a network from avaliable networks 3. removed this network in a different window 4. executed import of the already removed network Operation failed with the following: Error while executing action: Logical Network (id '7808d2b4-45ec-46a1-8d19-bb6e1f1579ac') doesn't exist. engine.log: 2018-03-29 13:19:20,755+03 WARN [org.ovirt.engine.core.bll.network.dc.ImportExternalNetworkCommand] (default task-30) [1c884412-3ea0-4937-9061-86ddd93fed73] Validation of action 'ImportExternalNetwork' failed for user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__NETWORK,NETWORK_HAVING_ID_NOT_EXISTS,$NETWORK_HAVING_ID_NOT_EXISTS_ENTITY 7808d2b4-45ec-46a1-8d19-bb6e1f1579ac That seems descriptive enough to me. Dominik, is this what you meant? Or could you elaborate, how to achieve Connection refused? It is not clear to me from the steps you provided.
Version:4.2.2.5-0.1.el7
Radim, I wanted that the 'which is not available' refers to the provider bu not the network. To verify this bug, please stop the provider via sudo systemctl stop ovirt-provider-ovn.service and try to import a network from ovirt-provider-ovn. This should result in an error message containing 'Connection refused'. Thanks.
Thanks Dominik. Verified on Version:4.2.2.5-0.1.el7.
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.