Bug 2006853

Summary: Realtime kernel is not enabled when configured via Performance Profile with "Unhandled exception in start_tuning"
Product: OpenShift Container Platform Reporter: yliu1
Component: Node Tuning OperatorAssignee: Jiří Mencák <jmencak>
Status: CLOSED DUPLICATE QA Contact: Simon <skordas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, dagray
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-22 14:29:32 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:

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.