Bug 701876

Summary: Error message in logs should also be on stdout
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Sachin Ghai <sghai>
Component: ToolsAssignee: Jay Dobies <jason.dobies>
Status: CLOSED WONTFIX QA Contact: Radek Bíba <rbiba>
Severity: medium Docs Contact:
Priority: low    
Version: 2.1CC: bkearney, cduryee, jslagle, mminar, pcreech, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: 3.0.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-02 13:38:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sachin Ghai 2011-05-04 07:09:24 UTC
Description of problem:
When we performed some operation using rhui-manager and if something went wrong, we usually got following error message:

An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.

For example.. 
================
( Please consider the following error messages just as an example; here the objective is to improve the error handling )

I was trying to unregister a CDS using rhui-manager and got the same error on stdout. 

rhui.log says:
=================
ServerRequestError: (500, u"PulpException: u'Communications error while attempting to release CDS [dhcp193-73.pnq.redhat.com]; check the server log for more information'

pulp.log says:
================
PulpException: u'Communications error while attempting to release CDS [dhcp193-73.pnq.redhat.com]; check the server log for more information'


So from end user perspective, the error message in log should also be on stdout.

Version-Release number of selected component (if applicable):
pulp 0.171
rhui-tools 2.0.22

How reproducible:
everytime

Steps to Reproduce:
1.
2.
3.
  
Actual results:
An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.

Expected results:
Error message in logs should be on stdout, like:
Communications error while attempting to release CDS [dhcp193-73.pnq.redhat.com]; 
More information can be found in /root/.rhui/rhui.log.

Additional info:

Comment 1 Jay Dobies 2011-05-09 18:56:20 UTC
Punting to 2.1 because I'm not sure I'll have the time to go through each place an exception is caught and parse out the error message (hopefully by then Pulp will be more consistent with error messages and this will be cleaner).

Comment 2 wes hayutin 2011-06-06 21:15:18 UTC
added to rhui-20 tracker

Comment 3 Jay Dobies 2011-07-01 13:27:51 UTC
I said "punting to 2.1", not sure why this was added to the rhui-20 tracker.

Comment 4 wes hayutin 2012-07-30 20:11:12 UTC
moving to version 2.1.1

Comment 7 Irina Gulina 2016-07-15 11:01:07 UTC
Valid in RHUI3.