Created attachment 607212 [details] vdsm.log + engine.log Description of problem: 1) If user puts incomplete IP address (e.g. 10.34.66. )in Default Gateway field for RHEVM interface, UI displays following error: Error while executing action Setup Networks: Internal oVirt Engine Error while backend log displays exact cause of problem VDSNetworkException: Bad gateway: '10.34.66.' error message in UI should be improved Version-Release number of selected component (if applicable): Red Hat Enterprise Virtualization Manager Version: '3.1.0-13.el6ev' How reproducible: 100% Steps to Reproduce: 1.Add host to setup 2.Hosts -> your host -> Setup Host Networks -> click penci icon on rhevm network -> Boot Protocol:Static -> fill in proper IP and mask fill in incomplete GW (e.g. 10.34.66. ) -> click OK -> click OK Actual results: Error while executing action Setup Networks: Internal oVirt Engine Error Expected results: error message in UI should be improved, e.g. Bad gateway: '10.34.66.' Additional info: Gateway field is not mandatory however check which would make sure that either nothing is filled or IP which has format XXX.XXX.XXX.XXX would be good, at least it would save the time which user has to wait until error message is returned. 2012-08-27 15:28:38,330 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp-/127.0.0.1:8009-6) [75f4fbcd] Command SetupNetworksVDS execution failed. Exception: RuntimeException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Bad gateway: '10.34.66.'
Created attachment 607213 [details] screenshot 1
A suggested patch: http://gerrit.ovirt.org/#/c/7634/