-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
cri-dockerd: restart docker.service #9174
Conversation
Hi @krystianmlynek. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: krystianmlynek The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -3,6 +3,7 @@ | |||
command: /bin/true | |||
notify: | |||
- cri-dockerd | reload systemd | |||
- reload containerd |
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.
Since this is part of the cri-containerd
role the task should contain the role name like the other.
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.
Thanks. I updated the task name.
There is another ansible-lint error: https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/builds/2879676234 |
@cristicalin Linter fixed. I used generic name task since in |
Please check the reason for the docker jobs failing they, look related to the change in cri-dockerd since now we rely on cri-dockerd to support docker. |
9c70860
to
c33be72
Compare
@cristicalin
it's visible that handlers(reload systemd, reload docker) were not executed hence causing my initial issue with proxy/registry mirrors settings in docker. Current solution in this PR is working, but I think it would be better to investigate the docker part. Would it be possible for you to check this handler issue somewhere on kubespray side? |
notify: | ||
- restart cri-dockerd | ||
|
||
- name: Reload systemd and restart containerd # noqa no-handler |
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.
Shouldn't this actually restart the docker
service which in turn should trigger the containerd
restart ? In this situation cri-dockerd
talks to docker through the docker socket not to containerd directly, that is kind of the point of maintaining this compatibility layer, we should keep the same abstraction in our code.
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.
Thanks, I checked restarting of docker.service on my end and got correct results. Also switched back to using handler here with flush_handlers since on my end the previous CI error didn't happen. Hope it will be the same for CI here.
26ecb9e
to
578f6d4
Compare
/retest |
@krystianmlynek: Cannot trigger testing until a trusted user reviews the PR and leaves an 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/test-infra repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
With this change containerd will be reloaded which will allow docker to pick up proxy/registry mirrors settings. Also
cri-dockerd.socket
will be enabled to avoid kubelet failure after node reboot.Which issue(s) this PR fixes:
Fixes #9142
Special notes for your reviewer:
Does this PR introduce a user-facing change?: