Red Hat Bugzilla – Bug 1297689
No error message is shown on getDevicelist failure when adding a new FC storage domain
Last modified: 2016-07-05 04:02:17 EDT
Description of problem:
When trying to add a storage domain of the type Fibre channel, if the connection to the FC host is blocked and getDeviceList fails, no luns are loaded to the view but also no error message is shown to the user, causing a false understanding that no luns actually exist.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open the New Domain window in the webadmin.
2. Choose a FC host.
3. Block the connection between the engine and the FC host.
4. Set the Storage Type to Fibre Channel.
The process is stuck for a while (about 40-50 seconds on my env) since getDeviceList doesn't end.
When it fails, no luns are loaded to the view, and no error message is shown to the user.
An error message should be shown.
In a DC with a host exposed to FC, initiated storage domain creation via Webadmin, blocked connectivity between the engine and the host using iptables, picked FC in the domain creation prompt.
Domain creation prompt gets stuck for ~1 minute due to a failure in GetDeviceList  and then the following error message is presented in Webadmin:
" Could not retrieve LUNs, please check your storage. "
2016-04-19 09:55:16,490 ERROR [org.ovirt.engine.core.bll.storage.disk.lun.GetDeviceListQuery] (default task-4)  Exception: org.ovirt.engine.core.common.errors.EngineException: EngineEx
ception: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Heartbeat exeeded (Failed with error VDS_NETWORK_ERROR and code 5022)
at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:114) [bll.jar:]
at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
at org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:254) [bll.jar:]
at org.ovirt.engine.core.bll.storage.disk.lun.GetDeviceListQuery.executeQueryCommand(GetDeviceListQuery.java:29) [bll.jar:]
oVirt 4.0.0 has been released, closing current release.