-
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
Hotfix containerd restart #9322
Hotfix containerd restart #9322
Conversation
Hi @fungusakafungus. 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. |
Interesting find and the behaviour might be related to specific ansible versions. However this does fix a bug and I would add it to the 2.20 milestone. /ok-to-test |
Created ansible issue: ansible/ansible#78871 |
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
@fungusakafungus That's a nice bugfix, thank you for opening the bug on ansible end, looking up for an answer on their end.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cristicalin, floryut, fungusakafungus 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
It fixes containerd restart handler by preventing
import_role
from touching that handler.Which issue(s) this PR fixes:
Fixes #9019
Special notes for your reviewer:
Introduced in 1781eab
Debugged by @snowmansora in #9019
Somehow, when triggering the 'restart containerd' handler from
kubespray/roles/container-engine/containerd/tasks/main.yml
Line 93 in d387d48
when
condition from the previous time it was loaded byimport_role
from validate-container-engine.I can't tell why
include_role
was changed toimport_role
in 1781eab, maybe @cyril-corbon can explain?This feels like an ansible bug, but there's probably some word of caution somewhere in ansible docs...
The fix is to give
import_role
an empty handlers file to load, so it doesn't corrupt the handlers/main.yml. The imported tasks intasks/reset.yml
don't use any handlers themselves.Does this PR introduce a user-facing change?: