Red Hat Bugzilla – Bug 621130
Trace back recorded in rhsm log if try to register with invalid cert or without cert
Last modified: 2015-04-23 19:56:30 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Candlepin : candlepin1.devlab.phx1.redhat.com
Client : Rhel6 client with sm version 74
Steps to repro :
Login to client console
install latest sm version 74
Do not enter the path of ca.crt file in rhsm.conf.
Execute registration command using user tmgedp
Expected Result :
Registration process should fail and error should record in rhsm.log
Actual Result :
Traceback error is getting recorded in rhsm.log.
enter standalone cert path for candlepin1 in rhsm.conf file .
execute registration command
Traceback error is getting recorded in rhsm.log file
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.
** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **
Can you clarify whether the register command executes successfully? Traceback being recorded/not recorded in the log file is not relevant.
Registration process is getting failed .
I mean to say rhsm.log should display proper error message
any traceback should not recorded in rhsm.log
Any log should be in proper format , it should not contain exception or traceback
Please le me know if i am wrong
Okay. First, let us view the sequence of steps executed along with the log file. Then we can decide whether its a bug or not. And log files are meant to have all the information messages, tracebacks etc ... so that ,when a customer faces some problems, he can send the developers the exception trace(s) which will help us(developers) fix it.
What i mean to say is on place of trace proper error message should recorded in rhsm.log
which should contain complete info for failure
i think we have option to convert trace or exception in to message
be getting set to the same value)
<spandey> <spandey> just i want to say trace should not display in rhsm.log
<spandey> <nadathur> why ?
<spandey> <nadathur> without the traces how can we fix bug?
<spandey> <spandey> on place of traceback we should have proper error msg
<spandey> <nadathur> that is on the console
<spandey> <nadathur> when I run some command I can show some error message to the client
<spandey> <spandey> same it should be in rhsm.log
<spandey> <nadathur> but the traces should be logged so that future sessions can fix it
<spandey> <nadathur> okay let us take this to #candlepin and see what folks say about this
<spandey> <spandey> ok
<jsefler> dgoodwin: when creating a user with the ruby client cpc create_owner <name> The name is the key
<dgoodwin> nadathur: spandey: seems like client should *show* error mesage, logs should contain stack trace
discuss with Ajay and Devan
iam closing defect
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.