-
Notifications
You must be signed in to change notification settings - Fork 1.1k
sandbox: Handle PodLinuxOverhead and PodLinuxResources CRI fields #6913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sandbox: Handle PodLinuxOverhead and PodLinuxResources CRI fields #6913
Conversation
|
Hi @jukkar. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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/test-infra repository. |
e09c039 to
0da19a9
Compare
|
/ok-to-test |
0da19a9 to
105ac45
Compare
|
Fixed code so that unit test pass |
|
/ok-to-test |
|
/approve |
|
/test ci-e2e |
sohankunkerkar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@cri-o/cri-o-maintainers PTAL
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6913 +/- ##
=======================================
Coverage 49.19% 49.20%
=======================================
Files 132 132
Lines 15356 15380 +24
=======================================
+ Hits 7555 7568 +13
- Misses 6902 6910 +8
- Partials 899 902 +3 |
|
Changes LGTM |
|
LGTM |
|
/retest |
The CRI PodLinuxOverhead and PodLinuxResources fields were not saved which meant that NRI plugins would need to cache the data if cri-o is restarted. These two fields are already passed to NRI plugins by containerd. Solve this issue by caching those two fields and restoring them if cri-o is restarted. Signed-off-by: Jukka Rissanen <[email protected]>
105ac45 to
f59c1f7
Compare
|
/test ci-e2e-conmonrs |
|
I checked the remaining test errors and I am a bit baffled as they do not seem to be related to the changes in this PR. For example: integration / test-cgroupfs: This fails with integration / userns: This fails with integration / conmonrs: This fails with similar error in multiple test. not ok 283 should not clean up pod after timeout Any suggestion how to proceed? |
That might be a flake (cpu-quota.crio.io can disable quota). I'm seeing that occasionally failing, for instance in #6944.
That looks like a known flake (metrics container oom test failing).
I think these might be also flakes. I'm seeing these fail in #6944, too. |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haircommander, jukkar, klihub The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The CRI PodLinuxOverhead and PodLinuxResources fields were not saved which meant that NRI plugins would need to cache the data in order not to miss them if cri-o is restarted. These two fields are already passed to NRI plugins by containerd. Solve this issue by caching those two fields and restoring them if cri-o is restarted.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This change allows cri-o to store PodLinuxOverhead and PodLinuxResource CRI resource fields and then later send them to NRI plugins. The issue is seen when cri-o is restarted in which case it has lost the value of these two fields and cannot forward them to NRI plugins. With this change, NRI plugins do not need to cache the fields as it is able to receive them when the plugin is started. The containerd already passes these fields to NRI plugins.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?