Bug 1508798

Summary: The error message in case of failure in retrieving an image list doesn't well configured.
Product: [oVirt] ovirt-engine Reporter: shani <sleviim>
Component: BLL.StorageAssignee: shani <sleviim>
Status: CLOSED CURRENTRELEASE QA Contact: Lilach Zitnitski <lzitnits>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: amureini, bugs
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:01:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
An empty cause while trying to retrieve an image list. none

Description shani 2017-11-02 09:15:35 UTC
Created attachment 1346922 [details]
An empty cause while trying to retrieve an image list.

Description of problem:
In case of catching an exception while trying to view an image list, and that exception has a null cause, the following error message appears on engine.log:
ERROR [org.ovirt.engine.core.bll.storage.repoimage.GetImagesListQuery] (default task-3) [a07a2682-7ad1-463d-aadb-743bca86a0e6] Failed to retrieve image list:  
In that case, instead of representing an empty error message, the exception's message should be presented (and not an empty cause). 

Version-Release number of selected component (if applicable):
4.2.0

How reproducible:
In case the exception.getCause() returns null - 100%

Steps to Reproduce:
1. Create an external storage provider
2. Goto storage domains -> choose <your_new_storage_provider_name> storage domain -> images tab
3. In case of failure on loading the image list, see the engine.log

Actual results:
ERROR [..] Failed to retrieve image list:  

Expected results:
ERROR [..] Failed to retrieve image list: <the exception's message>

Additional info:
-

Comment 1 Lilach Zitnitski 2017-11-15 11:27:40 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
ovirt-engine-4.2.0-0.0.master.20171112130303.git8bc889c.el7.centos.noarch
vdsm-4.20.6-62.gitd3023e4.el7.centos.x86_64

Tested with the following scenario:

Steps to Reproduce:
1. Create an external storage provider
2. Goto storage domains -> choose <your_new_storage_provider_name> storage domain -> images tab
3. In case of failure on loading the image list, see the engine.log

Actual results:
Failed to retrieve image list: Name or service not known

Expected results:

Moving to VERIFIED!

Comment 2 Sandro Bonazzola 2017-12-20 11:01:06 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.