Bug 595837
Summary: | Bug in rhnplugin.conf RHEL 5.5 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jason <chinchek> | |
Component: | rhn-client-tools | Assignee: | Miroslav Suchý <msuchy> | |
Status: | CLOSED ERRATA | QA Contact: | Jiří Mikulka <jmikulka> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 5.5 | CC: | jhutar, jmikulka, mminar, msuchy | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | rhn-client-tools-0.4.20-71 | Doc Type: | Bug Fix | |
Doc Text: |
Under certain circumstances, when network connection is reset by peer, libraries of rhn-client-tool produced traceback. Now it produce nice error message instead.
|
Story Points: | --- | |
Clone Of: | ||||
: | 751292 751294 (view as bug list) | Environment: | ||
Last Closed: | 2012-02-21 06:30:04 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 751760 | |||
Bug Blocks: | 751292, 751294 |
Description
Jason
2010-05-25 18:25:16 UTC
Do you have properly set up sslCACert and serverURL in: /etc/sysconfig/rhn/up2date I assume you have set one of those incorectly. But yes, we can write some nice error message rather then this ugly traceback spacewalk.git as commit 94a5ae16d12e126fc26d6646c06400c9de6a9ec6 This fix does not write this ugly traceback, but will print nice error message. Yes, both are setup the same as my working RHEL 5.4 system in /etc/sysconfig/rhn/up2date: sslCACert=/usr/share/rhn/RHNS-CA-CERT serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC However, I compare the /usr/share/rhn/RHNS-CA-CERT that came with RHEL 5.4 and it was larger than the cert that came with my RHEL 5.5 server. I copied the /usr/share/rhn/RHNS-CA-CERT from my RHEL 5.4 server to my 5.5 system and now the plugin is working properly. It appears that some data is missing from the cert shipped with RHEL 5.5. --Jason cherrypicked to svn as rev. 208025. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Under certain circumstances, when network connection is reset by peer, libraries of rhn-client-tool produced traceback. Now it produce nice error message instead. One bug releated to this one is from bug 614389. Commited as rev. 208200. another commit 497663177760d7822ee8019367b92f998a77be96 cherrypicked as rev. 208204. regarding #12. This is completely different traceback and different part of code. and will be different fix. This do not go through rhncli.py, so we could not gracefuly exit with error message. We have to raise error which inherit from yum.Errors, so yum or pup can catch it and display to user (either in tui on in gui). Either way #12 is not going to be fixed in this BZ. spacewalk.git commit fb2a637c67605a11e3cccdfad2315895d5ad6878 Backported to el5 as rev. 208228. Hi, while I was verifying this bug (with the latest rhn-client-tools package) I hit this traceback in /var/log/up2date: Traceback (most recent call last): File "/usr/sbin/rhn_register", line 82, in ? app.run() File "/usr/share/rhn/up2date_client/rhncli.py", line 85, in run except (SSL.SysCallError, socket.error), e: exceptions.NameError: global name 'socket' is not defined This is caused due to missing 'import socket' in '/usr/share/rhn/up2date_client/rhncli.py' (see spacewalk.git commits 94a5ae16d12e126fc26d6646c06400c9de6a9ec6, 497663177760d7822ee8019367b92f998a77be96). Easiest fix of this issue is to add 'import socket' in /usr/share/rhn/up2date_client/rhncli.py. Please check it. Thanks. Grr, you are right spacewalk.git 0a70c4bd80203789916df07d24b57f52a1f75b41 svn revision 208234. I verified this bug using the latest rhn-client-tools package (rhn-client-tools-0.4.20-71.el5) on RHEL Server 5.7 x86_64 (this bug was present also on previous releases of RHEL). Traceback is not shown anymore, but is properly handled by yum (see spacewalk.git fb2a637c67605a11e3cccdfad2315895d5ad6878). Yum should print some message or warning, but there is other mistake in yum (new bz will be created and added here), which causes, that neither message is printed and log is created for the traceback. Switching to VERIFIED (related yum bz will be added here). yum bug filled as bug 751294 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0250.html |