Bug 674014

Summary: /usr/share/doc/python-nss-0.10/test/setup_certs.py uses invalid module mypty
Product: Red Hat Enterprise Linux 6 Reporter: Ondrej Moriš <omoris>
Component: python-nssAssignee: John Dennis <jdennis>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: amarecek, dpal, fnadge
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This field is the basis of the errata or release note for this bug. It can also be used for change logs. The Technical Note template, known as CCFR, is as follows: Cause What actions or circumstances cause this bug to present. Consequence What happens when the bug presents. Fix What was done to fix the bug.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:35:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ondrej Moriš 2011-01-31 10:36:40 UTC
Description of problem:

There is an invalid module imported in /usr/share/doc/python-nss-0.10/test/setup_certs.py.

Version-Release number of selected component (if applicable):

python-nss-doc-0.10-3.el6

How reproducible:

Always

Steps to Reproduce:

1. python /usr/share/doc/python-nss-0.10/test/setup_certs.py
  
Actual results:

Traceback (most recent call last):
  File "/usr/share/doc/python-nss-0.10/test/setup_certs.py", line 11, in <module>
    import mypty as pty
ImportError: No module named mypty

Expected results:

certifcate database password="passwd"
CA nickname="test_ca", CA subject="CN=Test CA"
server nickname="test_server", server subject="CN=ibm-x3650-04.ovirt.rhts.eng.bos.redhat.com"
client nickname="test_user", client subject="CN=test_user"

Additional info:

Why mypty is used instead of pty? Script works fine with pty module (from python-2.6.5-3.el6) is used.

Comment 1 John Dennis 2011-01-31 14:45:48 UTC
Sorry, mpty was a local edit used to test the pty module (copied pty.py to ./mpty.py), it should not have been checked in. import pty is the correct import as you point out. I'll fix the import in the upstream source.

Comment 10 Florian Nadge 2011-05-11 12:24:16 UTC
    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:
This field is the basis of the errata or release note for this bug. It can also be used for change logs.

The Technical Note template, known as CCFR, is as follows:

Cause
    What actions or circumstances cause this bug to present.
Consequence
    What happens when the bug presents.
Fix
    What was done to fix the bug.

Comment 11 John Dennis 2011-05-11 12:38:23 UTC
Cause:

Run setup_certs.py

Consequence:

setup_certs.py fails to execute due to missing module mypty.

Fix:

Replace mypty with pty.

Result:

setup_certs.py executes successfully.

Comment 12 errata-xmlrpc 2011-05-19 13:35:21 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-0607.html