-
Notifications
You must be signed in to change notification settings - Fork 1.1k
runtime_vm: Implement the ReopenContainerLog function #9433
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
Conversation
e7f6166
to
04f9491
Compare
Thank you @littlejawa ! |
This commit implements the ReopenContainerLog function. This fixes an issue where kata container logs could not be rotated. This required duplicating part of the createContainerIO function, so I am moving this in its own subfunction for reuse. Signed-off-by: Julien Ropé <jrope@redhat.com>
04f9491
to
fb183a2
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9433 +/- ##
==========================================
- Coverage 67.15% 67.07% -0.09%
==========================================
Files 202 202
Lines 27900 27945 +45
==========================================
+ Hits 18737 18743 +6
- Misses 7594 7633 +39
Partials 1569 1569 🚀 New features to boost your workflow:
|
/retest |
Hey @bitoku - |
1ec1f7e
to
befbcfd
Compare
This commit adds a test that simulates log rotation, making sure that the log file can be re-opened and used as expected. Signed-off-by: Julien Ropé <jrope@redhat.com>
befbcfd
to
15233a7
Compare
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.
Not an expert with the CRI-O code base but this change looks good to me AND it is really required by kata otherwise a long running kata guest could potentially saturate some storage in the host.
@gkurz: changing LGTM is restricted to collaborators In response to this:
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. |
/approve LGTM, thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gkurz, haircommander, littlejawa 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 |
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
Thanks @haircommander @bitoku! Can this be backported to previous versions? |
yup! |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This commit implements the ReopenContainerLog function. This fixes an issue where kata container logs could not be rotated.
This required duplicating part of the createContainerIO function, so I am moving this in its own subfunction for reuse.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?