Bug 701876 - Error message in logs should also be on stdout
Summary: Error message in logs should also be on stdout
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 2.1
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
: 3.0.0
Assignee: Jay Dobies
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 07:09 UTC by Sachin Ghai
Modified: 2021-08-02 13:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-02 13:38:22 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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