Bug 1508798 - The error message in case of failure in retrieving an image list doesn't well configured.
Summary: The error message in case of failure in retrieving an image list doesn't well...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.2.0
: ---
Assignee: shani
QA Contact: Lilach Zitnitski
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-02 09:15 UTC by shani
Modified: 2017-12-20 11:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:01:06 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
An empty cause while trying to retrieve an image list. (1.05 MB, text/plain)
2017-11-02 09:15 UTC, shani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 83514 0 master MERGED core: Change error for failed image list retrieving 2020-12-04 08:10:07 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.