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 1418811 - rteval is failing when running during the boot time
Summary: rteval is failing when running during the boot time
Keywords:
Status: CLOSED DUPLICATE of bug 1312057
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rteval
Version: 7.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: John Kacur
QA Contact: Jiri Kastner
URL:
Whiteboard:
Depends On:
Blocks: 1353018
TreeView+ depends on / blocked
 
Reported: 2017-02-02 19:12 UTC by Daniel Bristot de Oliveira
Modified: 2017-03-21 00:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 00:06:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Daniel Bristot de Oliveira 2017-02-02 19:12:10 UTC
Description of problem:
In the kvm-rt-cert scripts, we run rteval via a boot script. But now it is failing to run at boot time.

Version-Release number of selected component (if applicable):
rteval-2.9-1.el7_2.noarch
rteval-loads-1.3-3.el7.noarch
rteval-common-2.9-1.el7_2.noarch

How reproducible:
Always

Steps to Reproduce:

1. Add the following service:
------------------------- %< ----------------
# cat /usr/lib/systemd/system/kvm-rt-guest.service 
[Unit]
Description=Automated cyclictest run
After=tuned.service

[Service]
ExecStart=/usr/bin/load
TimeoutSec=0
RemainAfterExit=yes
WorkingDirectory=/root/bin
StandardOutput=tty
StandardError=tty

[Install]
WantedBy=multi-user.target
------------------------- >% ----------------

2. The following script and turn it executable:
-------------- %< -------------
# cat /usr/bin/load
#!/bin/sh

/usr/bin/rteval --onlyload --duration=1m --verbose
-------------- >% -------------

3. Enable the service:
# systemctl enable kvm-rt-guest

Reboot the box.


Actual results:

After the boot, rteval fails with the following message:
---------------- %< -------------------
    Traceback (most recent call last):
      File "/usr/bin/rteval", line 40, in <module>
        from rteval.Log import Log
      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')) or ""), '.rteval'),
    TypeError: cannot concatenate 'str' and 'NoneType' objects
---------------- >% -------------------

Expected results:
No error messages

Additional info:

Comment 2 John Kacur 2017-03-21 00:06:23 UTC

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


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