RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 729342 - 'SSLCertificateVerifyFailedError' object has no attribute 'errmsg' in case the server's SSL certificate validation failed
Summary: 'SSLCertificateVerifyFailedError' object has no attribute 'errmsg' in case th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Suchý
QA Contact: Jiří Mikulka
URL:
Whiteboard:
: 745008 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-09 15:31 UTC by Milan Zázrivec
Modified: 2021-03-25 23:45 UTC (History)
4 users (show)

Fixed In Version: rhn-client-tools-1.0.0-78.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 11:59:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0752 0 normal SHIPPED_LIVE rhn-client-tools and yum-rhn-plugin bug fix and enhancement update 2012-06-19 19:31:17 UTC

Description Milan Zázrivec 2011-08-09 15:31:24 UTC
Description of problem:
In case client is setup to use SSL for server connection and server's
SSL certificate validation failed (for whatever reason), following traceback
is printed into /var/log/up2date:

Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 76, in <module>
    app.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_register", line 58, in main
    ui.main()
  File "/usr/share/rhn/up2date_client/tui.py", line 1272, in main
    tui.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 1230, in run
    result = win.run()
  File "/usr/share/rhn/up2date_client/tui.py", line 235, in run
    tui_call_wrapper(self.screen, rhnreg.getCaps)
  File "/usr/share/rhn/up2date_client/tui.py", line 85, in tui_call_wrapper
    FatalErrorWindow(screen, e.errmsg)
<type 'exceptions.AttributeError'>: 'SSLCertificateVerifyFailedError' object has no attribute 'errmsg'

Note the following two lines in there:

    FatalErrorWindow(screen, e.errmsg)

and
    <type 'exceptions.AttributeError'>: 'SSLCertificateVerifyFailedError' object has no attribute 'errmsg'

Version-Release number of selected component (if applicable):
rhn-client-tools-1.0.0-61.el6

How reproducible:
Always

Steps to Reproduce:
1. Client -> Server connection using SSL, simulate failure of SSL validation
(point the client to an incorrect CA certificate for example)
2. Run rhn_register
3. Watch /var/log/up2date
  
Actual results:
Traceback above.

Expected results:
Error message about SSL validation, but no traceback telling us we called
a non-existent attribute.

Additional info:
N/A

Comment 1 RHEL Program Management 2011-10-07 16:04:20 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 Jan Pazdziora (Red Hat) 2011-11-24 13:47:23 UTC
*** Bug 745008 has been marked as a duplicate of this bug. ***

Comment 5 Miroslav Suchý 2012-01-03 10:59:29 UTC
This was fixed in bug 759786. Leaving this open as just another use case to test.

Comment 8 Miroslav Suchý 2012-01-27 15:17:45 UTC
spacewalk.git commit 9b28ded9de35b00d05457c877b8e8bb9d68a37de

Comment 9 Miroslav Suchý 2012-01-27 15:52:31 UTC
cherry-picked to satellite.git as 5f578220fcbf0cd5ab010eca9166e91c2c68f047

Comment 12 errata-xmlrpc 2012-06-20 11:59:25 UTC
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-0752.html

Comment 14 Jan Pazdziora (Red Hat) 2012-11-07 06:53:45 UTC
(In reply to comment #13)
> 
> Is this errata fix applicable to RHEL 5 systems?

I don't remember this issue ever being present on RHEL 5 systems. Do you have a customer case to suggest otherwise?

Comment 16 Jan Pazdziora (Red Hat) 2012-11-07 07:18:56 UTC
What rhn-client-tools version is this?

Comment 18 Jan Pazdziora (Red Hat) 2012-12-11 08:47:17 UTC
(In reply to comment #17)
> 
> Sorry for the late reply. Customer installed:
> 
> rhn-client-tools-0.4.20-77.el5.noarch 

Good. That is the latest greatest for RHEL 5. If the problem persists for your customer, we will need new RHEL 5 bugzilla filed.

> Would this errata, http://rhn.redhat.com/errata/RHBA-2012-0752.html.
> applicable to Red Hat Enterprise Linux Client release 5.8?

No.


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