Open jmencak opened 1 week ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jmencak
The full list of commands accepted by this bot can be found here.
The pull request process is described here
An example of creating duplicate profiles with conflicting content: Profile 1
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: openshift-profile-dup
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=Custom OpenShift profile
include=openshift-node
[sysctl]
kernel.shmmni=8192
name: openshift-profile
recommend:
- match:
- label: profile
priority: 20
profile: openshift-profile
Profile 2
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: openshift-profile-dup2
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=Custom OpenShift profile
include=openshift-node
[sysctl]
kernel.shmmni=8191
name: openshift-profile
recommend:
- match:
- label: profile
priority: 20
profile: openshift-profile
@jmencak: This pull request explicitly references no jira issue.
/hold Unfortunately, as is, this will not fix the issue, not even partly. The Tuned CRs can be retrieved in random order.
/unhold
@jmencak: all tests passed!
Full PR test history. Your PR dashboard.
It is possible to create Tuned CRs with TuneD profiles of the same name. This is problematic when the duplicate TuneD profiles have different content. This causes periodic extraction of TuneD profiles and can lead to TuneD restarts.
This change drops all instances of duplicate TuneD profiles and is a partial fix for OCPBUGS-44559.