Closed rbaturov closed 7 months ago
/jira cherrypick OCPBUGS-30569
@rbaturov: Jira Issue OCPBUGS-30569 has been cloned as Jira Issue OCPBUGS-31692. Will retitle bug to link to clone. /retitle OCPBUGS-31692: [release-4.15] [manual]: Systemd processes not being moved to cpuset/systemd.slice fix
@rbaturov: This pull request references Jira Issue OCPBUGS-31692, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
/retest-required
/jira refresh
@mrniranjan: This pull request references Jira Issue OCPBUGS-31692, which is valid. The bug has been moved to the POST state.
No GitHub users were found matching the public email listed for the QA contact in Jira (mniranja@redhat.com), skipping review request.
/approved /label backport-risk-assessed Any reason some of the e2e tests are excluded from the manual backport? /hold
/approved
/label backport-risk-assessed
Any reason some of the e2e tests are excluded from the manual backport?
/hold
Which e2e tests are missing?
/approved /label backport-risk-assessed Any reason some of the e2e tests are excluded from the manual backport? /hold
Which e2e tests are missing?
I've noticed the patch difference between 4.16/4.15 in these "testdata" files and wonder if this is intentional:
test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-master_machineconfig.yaml
test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-worker_machineconfig.yaml
test/e2e/performanceprofile/testdata/render-expected-output/default/cpuFrequency/manual_machineconfig.yaml
/approved /label backport-risk-assessed Any reason some of the e2e tests are excluded from the manual backport? /hold
Which e2e tests are missing?
I've noticed the patch difference between 4.16/4.15 in these "testdata" files and wonder if this is intentional:
test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-master_machineconfig.yaml test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-worker_machineconfig.yaml test/e2e/performanceprofile/testdata/render-expected-output/default/cpuFrequency/manual_machineconfig.yaml
Yes this was intentional. These testdata files are not part of the 4.15 release.
/approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jmencak, rbaturov
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/approve /lgtm @jmencak Can we remove the hold label?
/unhold
/label cherry-pick-approved
/retest-required
Remaining retests: 0 against base HEAD 56014a8a39d47d5d6af431ff580c8ab90ea4967d and 2 for PR HEAD a2a2b522ddbe2a26778004039968dfafd6700b85 in total
@rbaturov: all tests passed!
Full PR test history. Your PR dashboard.
@rbaturov: Jira Issue OCPBUGS-31692: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-31692 has been moved to the MODIFIED state.
[ART PR BUILD NOTIFIER]
This PR has been included in build cluster-node-tuning-operator-container-v4.15.0-202404080709.p0.ge0ab1c1.assembly.stream.el9 for distgit cluster-node-tuning-operator. All builds following this will include this PR.
/jira refresh
@yanirq: Jira Issue OCPBUGS-31692: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-31692 has been moved to the MODIFIED state.
This is a manual backport for #992
The script cpuset-configure.sh is responsible to move the systemd processes to the cpuset/systemd.slice cgroup and is executed in a form of a service (cpuset-configure.service).
In the current implementation, the script is executed too early - some system processes are yet to be created. This in turn leads to them not being moved to the custom system slice.
Moreover, in the current implementation, the script is executed before the network-online.target. The intention was to execute the script before kubelet and crio services are initialized (by the fact network-online.target is a common parent) in order to make sure that no workload pods are starting before we are making this transition.
The fix I'm proposing consist of the following changes:
When we are using cgroups v1 we are counting on the cpuset-configure.service to move all the system services to the custom system.slice. This test ensures the service indeed moved them.
It is also a good practice to check for similar errors on cgroup v2 systems.