Skip to content

Conversation

@saschagrunert
Copy link
Member

What type of PR is this?

/kind deprecation

What this PR does / why we need it:

Explicit configuration for LimitNOFILE in the reference crio.service systemd service file is removed.

CRI-O's rlimits are inherited by containers, so the daemon's LimitNOFILE affects RLIMIT_NOFILE within containers. It is recommended to use the default systemd LimitNOFILE configuration.

Administrators on platforms running versions less than systemd 240 should explicitly configure LimitNOFILE=1024:524288 or risk falling back to the kernel default of 4096.

Which issue(s) this PR fixes:

Fixes: #7703

Special notes for your reviewer:

cc @cri-o/cri-o-maintainers

Does this PR introduce a user-facing change?

Explicit configuration for `LimitNOFILE` in the reference `crio.service` systemd service file is removed.

Warning: Administrators on platforms running versions less than systemd 240 should explicitly configure `LimitNOFILE=1024:524288` or risk falling back to the kernel default of `4096`.

Explicit configuration for `LimitNOFILE` in the reference `crio.service`
systemd service file is removed.

CRI-O's rlimits are inherited by containers, so the daemon's
`LimitNOFILE` affects `RLIMIT_NOFILE` within containers. It is
recommended to use the default systemd `LimitNOFILE` configuration.

Administrators on platforms running versions less than systemd 240
should explicitly configure `LimitNOFILE=1024:524288` or risk falling
back to the kernel default of `4096`.

Fixes: cri-o#7703

Signed-off-by: Sascha Grunert <[email protected]>
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/deprecation labels Jan 30, 2025
@openshift-ci openshift-ci bot requested review from QiWang19 and klihub January 30, 2025 09:17
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2025
@codecov
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.46%. Comparing base (5df9c0e) to head (b27a733).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8962   +/-   ##
=======================================
  Coverage   47.46%   47.46%           
=======================================
  Files         154      154           
  Lines       23112    23112           
=======================================
  Hits        10971    10971           
  Misses      11070    11070           
  Partials     1071     1071           

@saschagrunert
Copy link
Member Author

/test ci-fedora-kata

@haircommander
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2025
@saschagrunert
Copy link
Member Author

/retest

@saschagrunert
Copy link
Member Author

/override ci/prow/ci-fedora-kata
/override ci/prow/ci-e2e-evented-pleg
/override ci/prow/e2e-gcp-ovn
/override ci/prow/e2e-aws-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

@saschagrunert: Overrode contexts on behalf of saschagrunert: ci/prow/ci-e2e-evented-pleg, ci/prow/ci-fedora-kata, ci/prow/e2e-aws-ovn, ci/prow/e2e-gcp-ovn

In response to this:

/override ci/prow/ci-fedora-kata
/override ci/prow/ci-e2e-evented-pleg
/override ci/prow/e2e-gcp-ovn
/override ci/prow/e2e-aws-ovn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@saschagrunert
Copy link
Member Author

/override ci/prow/e2e-aws-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

@saschagrunert: Overrode contexts on behalf of saschagrunert: ci/prow/e2e-aws-ovn

In response to this:

/override ci/prow/e2e-aws-ovn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit fe40da8 into cri-o:main Jan 31, 2025
74 of 76 checks passed
@saschagrunert saschagrunert deleted the limitnofile branch January 31, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/deprecation lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set LimitNOFILE=1024:524288 for crio.service

2 participants