Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1444764

Summary: rhn_check fails with KeyError: 'sgmlop'
Product: Red Hat Enterprise Linux 7 Reporter: Radovan Drazny <rdrazny>
Component: rhn-client-toolsAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED ERRATA QA Contact: Pavel Studeník <pstudeni>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: pstudeni, tlestach
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-client-tools-2.0.2-11-el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 22:19:00 UTC Type: Bug
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:    
Bug Blocks: 1395284    

Description Radovan Drazny 2017-04-24 08:59:55 UTC
Description of problem:
While testing the BZ1439139, I have manually removed the "from rhn.tb import raise_with_tb" line to see if rhn_check will be able to run. There is another error few lines later:

# rhn_check 
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 65, in <module>
    del sys.modules['sgmlop']
KeyError: 'sgmlop'

Version-Release number of selected component (if applicable):
rhn-check-2.0.2-10.el7


How reproducible:
always

Steps to Reproduce:
1. Comment out the line 54 in /usr/sbin/rhn_check containing "from rhn.tb import raise_with_tb" (see bug 1439139 comment 5 for the reason why)
2. Run rhn_check


Actual results:
Command fails with a Python traceback returned

Expected results:
Command runs successfully

Additional info:

Comment 2 Tomáš Kašpárek 2017-04-24 09:33:26 UTC
spacewalk.git(master): 490e16ce0ab3077324898baeb62a0065ca82ff27

Comment 5 Pavel Studeník 2017-06-21 15:44:39 UTC
Verified rhn-check-2.0.2-11.el7.noarch

Comment 6 errata-xmlrpc 2017-08-01 22:19:00 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.

https://access.redhat.com/errata/RHBA-2017:2039