-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add a hidden 'publish' command to CRI-O #5129
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
|
Hi @fgiudici. 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. |
|
/ok-to-test |
|
/test ami_fedora |
Codecov Report
@@ Coverage Diff @@
## master #5129 +/- ##
==========================================
- Coverage 43.91% 43.89% -0.02%
==========================================
Files 110 110
Lines 11453 11458 +5
==========================================
Hits 5030 5030
- Misses 5946 5951 +5
Partials 477 477 |
|
/test ami_fedora |
saschagrunert
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
|
Ah the completions have to be updated: https://github.com/cri-o/cri-o/pull/5129/checks?check_run_id=3163396027 |
Oh, right, thanks Sascha! |
|
/test ami_fedora |
|
LGTM, as long as CI passes. |
|
/retest |
|
you've still got some completions issues :\ |
|
LGTM |
|
@haircommander , @TomSweeneyRedHat : thanks, sure, I have to fix completion still (Update: DONE!). |
9730a67 to
9826c3f
Compare
|
/test ami_fedora |
3 similar comments
|
/test ami_fedora |
|
/test ami_fedora |
|
/test ami_fedora |
9826c3f to
657836b
Compare
saschagrunert
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
|
/override ci/openshift-jenkins/ami_fedora |
|
@fgiudici: fgiudici unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file. DetailsIn 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/test-infra repository. |
The containerd shimv2 specification provides a 'publish-binary' argument to allow reporting events from the shim up to the container engine. The call to the publish binary is in the form: $PUBLISH_BIN --address $ADDRESS publish --topic $TOPIC --namespace $NS Usually the publish binary is the container engine itself: containerd supports the "publish" command and shimv2 implementations use by default the container engine as the publish binary. Right now when a kata-containers shimv2 workload is run with CRI-O, the CRI-O binary is called by the containerd-shimv2 binary for every sandbox event (e.g., sandbox creation, deletion, ...). CRI-O returns an error as doesn't support the "publish" format above, causing the containerd-shim-kata-v2 implementation to report an error for each event in the logs. Sample error: time="2021-07-26T17:23:11.726445138+02:00" level=error msg="post event" error="failed to publish event: exit status 1" name=containerd-shim-v2 pid=9478 sandbox=6714bbfe5d600dc8c24f2c0fcf2e14857eb14cf85605aa213bb92660725335f3 source=containerd-kata-shim-v2 Allow CRI-O to support the "publish" command as per the containerd shimv2 specification, just ignoring the events without reporting any error. Signed-off-by: Francesco Giudici <[email protected]>
657836b to
48ce34d
Compare
|
rebased |
|
/retest-required |
|
/test e2e_cgroupv2 |
|
/test integration_cgroupv2 |
saschagrunert
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fgiudici, saschagrunert 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 |
|
/unhold |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@fgiudici: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
/retest-required |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The containerd shimv2 specification provides a 'publish-binary'
argument to allow reporting events from the shim up to the container
engine. The call to the publish binary is in the form:
$PUBLISH_BIN --address $ADDRESS publish --topic $TOPIC --namespace $NS
Usually the publish binary is the container engine itself: containerd
supports the "publish" command and shimv2 implementations use by
default the container engine as the publish binary.
Allow CRI-O to accept the "publish" command as required by the containerd
shimv2 specification, just ignoring the events without reporting errors.
Which issue(s) this PR fixes:
Right now when a kata-containers shimv2 workload is run with CRI-O,
the CRI-O binary is called by the containerd-shimv2 binary for every
sandbox event (e.g., sandbox creation, deletion, ...).
CRI-O returns an error as doesn't support the "publish" format above,
causing the containerd-shim-kata-v2 implementation to report an error
in the logs for each event.
Sample error:
time="2021-07-26T17:23:11.726445138+02:00" level=error msg="post event" error="failed to publish event: exit status 1" name=containerd-shim-v2 pid=9478 sandbox=6714bbfe5d600dc8c24f2c0fcf2e14857eb14cf85605aa213bb92660725335f3 source=containerd-kata-shim-v2
Special notes for your reviewer:
The "--address" global argument and "publish" command added are set to hidden but accepted without returning any error.
Does this PR introduce a user-facing change?