-
Bug
-
Resolution: Done-Errata
-
Major
-
4.13.z, 4.12.z, 4.14.z, 4.15.z, 4.16
-
None
-
Important
-
No
-
False
-
-
-
Bug Fix
-
In Progress
Description of problem:
TuneD unnecessarily restarts twice when both current TuneD profile changes and when a new TuneD profile is selected.
Version-Release number of selected component (if applicable):
All NTO versions are affected.
How reproducible:
Depends on the order of k8s object updates (races), but nearly 100% reproducible.
Steps to Reproduce:
1. Install SNO 2. Label your SNO node with label "profile" 3. Create the following CR: apiVersion: tuned.openshift.io/v1 kind: Tuned metadata: name: openshift-profile namespace: openshift-cluster-node-tuning-operator spec: profile: - data: | [main] summary=Custom OpenShift profile 1 include=openshift-node [sysctl] kernel.pty.max=4096 name: openshift-profile-1 - data: | [main] summary=Custom OpenShift profile 2 include=openshift-node [sysctl] kernel.pty.max=8192 name: openshift-profile-2 recommend: - match: - label: profile priority: 20 profile: openshift-profile-1 4. Apply the following CR: apiVersion: tuned.openshift.io/v1 kind: Tuned metadata: name: openshift-profile namespace: openshift-cluster-node-tuning-operator spec: profile: - data: | [main] summary=Custom OpenShift profile 1 include=openshift-node [sysctl] kernel.pty.max=8192 name: openshift-profile-1 - data: | [main] summary=Custom OpenShift profile 2 include=openshift-node [sysctl] kernel.pty.max=8192 name: openshift-profile-2 recommend: - match: - label: profile priority: 20 profile: openshift-profile-2
Actual results:
You'll see two restarts/applications of the openshift-profile-1 $ cat tuned-operand.log |grep "profile-1' applied" 2024-04-19 06:10:54,685 INFO tuned.daemon.daemon: static tuning from profile 'openshift-profile-1' applied 2024-04-19 06:13:23,627 INFO tuned.daemon.daemon: static tuning from profile 'openshift-profile-1' applied
Expected results:
Only 1 application of openshift-profile-1: $ cat tuned-operand.log |grep "profile-1' applied" 2024-04-19 07:20:31,600 INFO tuned.daemon.daemon: static tuning from profile 'openshift-profile-1' applied
Additional info:
- blocks
-
OCPBUGS-36870 NTO operand reloads TuneD unnecessarily twice
- Closed
- is cloned by
-
OCPBUGS-36870 NTO operand reloads TuneD unnecessarily twice
- Closed
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update