Bug 990938

Summary: [RHEVM][TEXT] improve error message displayed in GUI when obtaining IP from DHCP fails
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engineAssignee: Moti Asayag <masayag>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Pavlik <mpavlik>
Severity: low Docs Contact:
Priority: low    
Version: 3.3.0CC: acathrow, gklein, iheim, lpeer, masayag, myakove, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: is15 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: 1019461    
Attachments:
Description Flags
log_collector none

Description Martin Pavlik 2013-08-01 09:05:08 UTC
Created attachment 781485 [details]
log_collector

Description of problem:

When obtaining IP from DHCP fails, reason is clearly mentioned in engine.log

Failed to SetupNetworksVDS, error = Determining IP information for VLAN170... 
failed.

but GUI show just "Error while executing action Setup Networks: Unexpected exception"

it would be helpful for the users to get clear explanation what went wrong.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: 3.3.0-0.11.master.el6ev 

How reproducible:
100%

Steps to Reproduce:
1. create logical network and attach it to host
2. specify that network should obtain IP from DHCP (while there is no DHCP on the network)


Actual results:
"Error while executing action Setup Networks: Unexpected exception"

Expected results:
"Error while executing action Setup Networks: Determining IP information for VLAN170... failed."

Additional info:

2013-08-01 09:57:59,459 ERROR [org.ovirt.engine.core.bll.network.host.SetupNetworksCommand] (ajp-/127.0.0.1:8702-8) Command org.ovirt.engine.core.bll.network.host.SetupNetworksCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to SetupNetworksVDS, error = Determining IP information for VLAN170... failed. (Failed with VDSM error unexpected and code 16)

Comment 1 Moti Asayag 2013-09-09 15:35:37 UTC
The relevant piece from vdsm.log is the following which indicates VDSM has a specific error code 29 which doesn't appear on engine.

Thread-101586::ERROR::2013-08-01 10:56:26,890::API::1261::vds::(setupNetworks) Determining IP information for VLAN170... failed.
Traceback (most recent call last):
  File "/usr/share/vdsm/API.py", line 1259, in setupNetworks
    supervdsm.getProxy().setupNetworks(networks, bondings, options)
  File "/usr/share/vdsm/supervdsm.py", line 50, in __call__
    return callMethod()
  File "/usr/share/vdsm/supervdsm.py", line 48, in <lambda>
    **kwargs)
  File "<string>", line 2, in setupNetworks
  File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod
    raise convert_to_error(kind, result)
ConfigNetworkError: (29, 'Determining IP information for VLAN170... failed.')

However, code 29 ERR_FAILED_IFUP serves multiple errors raised by vdsm and not a specific one. The engine has a static mapping of VDSM errors, therefore I don't think that a generic message of "Failed to bring interface up" without an interface name in SetupNetwork action which serves multiple actions will reveal enough information and will reduce the need of the user to look at the logs.

I'll add the generic IFUP failure message so it can be used by other commands to which it might be relevant (e.g. addNetwork).

Comment 2 Martin Pavlik 2013-09-18 13:57:12 UTC
verified on is 15

gui provides 
Error while executing action Setup Networks: Failed to bring interface up

and vdsm log

error = Determining IP information for no_dhcp... failed.

Comment 3 Moti Asayag 2013-09-29 10:54:05 UTC
*** Bug 1001090 has been marked as a duplicate of this bug. ***

Comment 4 Itamar Heim 2014-01-21 22:32:58 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:33:04 UTC
Closing - RHEV 3.3 Released