Skip to content
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

Merged

Conversation

fungusakafungus
Copy link
Contributor

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

, the task object still has the when condition from the previous time it was loaded by import_role from validate-container-engine.

I can't tell why include_role was changed to import_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 in tasks/reset.yml don't use any handlers themselves.

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 23, 2022
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 23, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 23, 2022
@cristicalin
Copy link
Contributor

cristicalin commented Sep 23, 2022

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
/approve

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 23, 2022
@cristicalin cristicalin added this to the 2.20 milestone Sep 23, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 23, 2022
@fungusakafungus
Copy link
Contributor Author

Created ansible issue: ansible/ansible#78871

Copy link
Member

@floryut floryut left a 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.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 24, 2022
@k8s-ci-robot
Copy link
Contributor

[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:
  • OWNERS [cristicalin,floryut]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@floryut floryut mentioned this pull request Sep 24, 2022
@k8s-ci-robot k8s-ci-robot merged commit f2e11f0 into kubernetes-sigs:master Sep 24, 2022
enneitex pushed a commit to enneitex/kubespray that referenced this pull request Jan 25, 2023
nolimitkun pushed a commit to nolimitkun/kubespray that referenced this pull request Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

containerd is not upgraded because it is not restarted
4 participants