Bug 2006853 - Realtime kernel is not enabled when configured via Performance Profile with "Unhandled exception in start_tuning"
Summary: Realtime kernel is not enabled when configured via Performance Profile with "...
Keywords:
Status: CLOSED DUPLICATE of bug 2004712
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node Tuning Operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jiří Mencák
QA Contact: Simon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 14:20 UTC by yliu1
Modified: 2021-09-27 20:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-22 14:29:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yliu1 2021-09-22 14:20:30 UTC
Description of problem:
RT kernel is not enabled when configured via Performance profile. 

Following error is seen in tuned log:
2021-09-22 10:02:48,966 ERROR    tuned.units.manager: BUG: Unhandled exception in start_tuning: invalid literal for int() with base 10: '8192                      # Custom (atomic host)'


Version-Release number of selected component (if applicable):
4.9.0 rc.1


How reproducible:
Not sure yet. First time trying. But based on the type of the error, it should be fairly reproducible.


Steps to Reproduce:
1. configure realTimeKernel via performance profile. 
    realTimeKernel:
      enabled: true

2. Wait for kernel to be updated

Actual results:
2. kernel is not changed to rt kernel
Error is seen from tuned log:
2021-09-22 10:02:48,966 ERROR    tuned.units.manager: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tuned/units/manager.py", line 119, in _try_call
    return f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/instance/instance.py", line 78, in apply_tuning
    self._plugin.instance_apply_tuning(self)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/base.py", line 261, in instance_apply_tuning
    self._instance_apply_static(instance)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/base.py", line 317, in _instance_apply_static
    self._execute_all_non_device_commands(instance)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/base.py", line 433, in _execute_all_non_device_commands
    self._execute_non_device_command(instance, command, new_value)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/base.py", line 514, in _execute_non_device_command
    command["set"](new_value, sim = False)
  File "/usr/lib/python3.6/site-packages/tuned/plugins/plugin_selinux.py", line 49, in _set_avc_cache_threshold
    threshold = int(value)
ValueError: invalid literal for int() with base 10: '8192                      # Custom (atomic host)'


Expected results:
2. kernel changed to rt

Additional info:

Comment 2 Jiří Mencák 2021-09-22 14:29:32 UTC
Thank you for the bug report.  Looking at the errors this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2004712 
This is already fixed in the latest nightlies.  If you see this is not addressed in the latest nightlies, please reopen.

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

Comment 3 yliu1 2021-09-27 20:13:34 UTC
rt kernel was successfully enabled via PAO on 4.9 rc.3.


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