-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Stop network_plugin/cni dependency when include_role comes from reset role #9550
Stop network_plugin/cni dependency when include_role comes from reset role #9550
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jwitko 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 |
Welcome @jwitko! |
Hi @jwitko. 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. |
/ok-to-test |
@yankay I think removing it is definitely the right way to go if thats how you want to proceed. I was trying to be as least impactful to the process to maximize chances of PR merge, but happy to see it removed all-together. My only question would be: Edit: Unless this is used in initial node provisioning? Then it would be responsible for moving files for install and creating a CNI directory. If the network_plugins/cni role isn't called directly on its own then I would suggest the alternative approach in my PR |
Hi @jwitko, Thank you for the advice :-) The dependency is useful before the #9367, but it's not needed now. The CNI dependency should be removed from the Cilium and all the other CNI like flannel and weave. And the calico has no dependency and works well. The #9563 try to remove the CNI dependency in cilium first. If it's OK, the other CNI could be removed CNI dependency in the same way. I think both ways can solve the issue. Remove the CNI dependency could make the code simpler :-) Thanks again. |
@jwitko: PR needs rebase. 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. |
@yankay Since your PR was merged I should close this one right? Also... Your PR only handled this for cilium. Are we not concerned with all other CNIs ? |
What type of PR is this?
/kind bug
What this PR does / why we need it:
When removing a node there is no need to execute the
network_plugin/cni
dependency and doing so causes an errorWhich issue(s) this PR fixes:
Fixes #9549
Special notes for your reviewer:
Running remove-node.yml does an
include_role:
onnetwork_plugin/<your-network-plugin>
with atasks_from: reset
. All of the potential roles that can be loaded include a dependency fornetwork_plugin/cni
which will fail because the download role is not included in this playbook (nor should it be).This PR skips the dependency when the
include_role
comes fromremove-node.yml
Does this PR introduce a user-facing change?: