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.
*python* errors no longer appear when `SUDO_USER` and `USER` variables are not set
Previously, when executing in spare environments that do not have `SUDO_USER` or `USER` environment variables set, a number of *python* errors appeared. With this update, undefined `SUDO_USER` and `USER` variables are handled correctly, and the errors no longer appear.
Description of problem:
The hwcert realtime test fails with a python traceback:
TypeError: cannot concatenate 'str' and 'NoneType' objects
Version-Release number of selected component (if applicable):
redhat-certification-2.3-20160223.el7.noarch
redhat-certification-hardware-1.7.1-20160210.el7.noarch
How reproducible:
realiably on at least one test system
Steps to Reproduce:
1. run the hwcert realtime test
2. check logs or debug output
3.
Actual results:
crash with traceback:
File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 573, in _doRun
returnValue = self.runTest(logDirectory, testDocument, runDocument, outputFilePath)
File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 1001, in runTest
rv = test.run()
File "/usr/lib/python2.7/site-packages/rhcert/suites/hwcert/tests/realtime/realtime.py", line 101, in run
from rteval import RTEVAL_VERSION
File "/usr/lib/python2.7/site-packages/rteval/__init__.py", line 37, in <module>
from modules.loads import LoadModules
File "/usr/lib/python2.7/site-packages/rteval/modules/__init__.py", line 26, in <module>
from rteval.rtevalConfig import rtevalCfgSection
File "/usr/lib/python2.7/site-packages/rteval/rtevalConfig.py", line 82, in <module>
'srcdir' : default_config_search(['loadsource']),
File "/usr/lib/python2.7/site-packages/rteval/rtevalConfig.py", line 41, in default_config_search
(os.getenv('SUDO_USER') or os.getenv('USER'))), '.rteval'),
TypeError: cannot concatenate 'str' and 'NoneType' objects
Expected results:
test runs to completion and succeeds
Additional info:
The above patch adds the local function get_user_name() which handles empty environment variables SUDO_USER and USER. This patch modifies the original patch and will be available in the next build of rteval (2.12).
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://rhn.redhat.com/errata/RHBA-2016-2244.html
Description of problem: The hwcert realtime test fails with a python traceback: TypeError: cannot concatenate 'str' and 'NoneType' objects Version-Release number of selected component (if applicable): redhat-certification-2.3-20160223.el7.noarch redhat-certification-hardware-1.7.1-20160210.el7.noarch How reproducible: realiably on at least one test system Steps to Reproduce: 1. run the hwcert realtime test 2. check logs or debug output 3. Actual results: crash with traceback: File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 573, in _doRun returnValue = self.runTest(logDirectory, testDocument, runDocument, outputFilePath) File "/usr/lib/python2.7/site-packages/rhcert/client/harness.py", line 1001, in runTest rv = test.run() File "/usr/lib/python2.7/site-packages/rhcert/suites/hwcert/tests/realtime/realtime.py", line 101, in run from rteval import RTEVAL_VERSION File "/usr/lib/python2.7/site-packages/rteval/__init__.py", line 37, in <module> from modules.loads import LoadModules File "/usr/lib/python2.7/site-packages/rteval/modules/__init__.py", line 26, in <module> from rteval.rtevalConfig import rtevalCfgSection File "/usr/lib/python2.7/site-packages/rteval/rtevalConfig.py", line 82, in <module> 'srcdir' : default_config_search(['loadsource']), File "/usr/lib/python2.7/site-packages/rteval/rtevalConfig.py", line 41, in default_config_search (os.getenv('SUDO_USER') or os.getenv('USER'))), '.rteval'), TypeError: cannot concatenate 'str' and 'NoneType' objects Expected results: test runs to completion and succeeds Additional info: