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 1002589 - The unit test setup_certs.py from python-nss-docs fails
Summary: The unit test setup_certs.py from python-nss-docs fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-nss
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: John Dennis
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-29 13:44 UTC by Patrik Kis
Modified: 2014-06-18 05:20 UTC (History)
1 user (show)

Fixed In Version: python-nss-0.14.0-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:13:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Patrik Kis 2013-08-29 13:44:49 UTC
Description of problem:
The unit test setup_certs.py from python-nss-docs fails when executed on the latest RHEL-7 tree.
The test is passing on RHEL-6 and if we are providing these test in docs they should be functional.

Version-Release number of selected component (if applicable):
python-nss-0.14.0-1.el7
nss-3.15.1-2.el7

How reproducible:
always

Steps to Reproduce:

# python setup_certs.py 
setting up certs ...
certifcate database password="db_passwd"
CA nickname="test_ca", CA subject="CN=Test CA"
server nickname="test_server_subca", server subject="CN=ibm-x3650m4-02-vm-02.lab.eng.bos.redhat.com_subca"
client nickname="test_user", client subject="CN=test_user"
# 
# python test_client_server.py 

starting server:
server: using SSL
listening on: 0.0.0.0:1234
client: using SSL
client trying connection to: 10.16.40.239:1234
client connected to: 10.16.40.239:1234
client: sending "foo"
client connect from: 10.16.40.239:47107
auth_certificate_callback: check_sig=True is_server=False
approved_usage = SSL Server
verifying socket hostname (ibm-x3650m4-02-vm-02.lab.eng.bos.redhat.com) matches cert subject (CN=ibm-x3650m4-02-vm-02.lab.eng.bos.redhat.com)
Returning cert_is_valid = True
handshake complete, peer = 10.16.40.239:47107
handshake complete, peer = 10.16.40.239:1234
server: received "f"
server: sending "{f}"
client: received "{"
F
======================================================================
FAIL: test_ssl (__main__.TestSSL)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_client_server.py", line 354, in test_ssl
    self.assertEqual("{%s}" % request, reply)
AssertionError: '{foo}' != '{'

----------------------------------------------------------------------
Ran 1 test in 5.144s

FAILED (failures=1)
#

Comment 2 John Dennis 2013-10-04 23:15:27 UTC

*** This bug has been marked as a duplicate of bug 1003979 ***

Comment 3 John Dennis 2013-10-05 12:00:09 UTC
Reopening, original description was a bit confusing, it shows setup_certs.py as succeeding and test_client_server.py failing in a manner already reported in bug #1003979 which is why I marked it as a duplicate.

But in fact setup_certs.py does fail on RHEL7. It works fine on fedora, go figure.

setup_certs is written like an "expect" script, it sets up a pseudo terminal and polls for output, when it sees a certain string (i.e. prompt) it sends a response. It's complicated and fragile. There are several options available to simplify the script. 

Also, it should be creating the new sql style database.

Comment 4 John Dennis 2013-10-09 15:26:02 UTC
fixed in python-nss-0.14.0-2.el7

Comment 6 Ludek Smid 2014-06-13 10:13:52 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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