-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix: skip multus when not defined #10934
Conversation
fix task failure: TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ************************************************ fatal: [hfal12k8n1 -> {{ groups['kube_control_plane'][0] }}]: FAILED! => {"msg": "Error in jmespath.search in json_query filter plugin:\n'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2'"}
Hi @darkobas2. 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 |
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.
Hello @darkobas2
Thanks for your PR, could you please write a proper description to the PR. maybe use the default template.
Hi, |
What is the workaround? I can't run kubespray anymore with v2.24.1 |
You could patch your local kubespray installation with this diff and command: diff --git a/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml b/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml
index fdbede55a..54dd1ed61 100644
--- a/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml
+++ b/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml
@@ -9,7 +9,7 @@
state: "latest"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
- with_items: "{{ multus_manifest_1.results + (multus_nodes_list | map('extract', hostvars, 'multus_manifest_2') | list | json_query('[].results')) }}"
+ with_items: "{{ (multus_manifest_1.results | default([])) + (multus_nodes_list | map('extract', hostvars, 'multus_manifest_2.results') | default([]) | list) }}"
loop_control:
label: "{{ item.item.name if item != None else 'skipped' }}"
vars: patch --strip 1 --forward --merge --directory "<local-kubespray-directory>" \
--input "<path-to-patch-file>" I’m currently using this patch in my kubespray installations and I can confirm everything is working fine now. IMO this is needed and should be released as soon as possible since it’s failing installations with 2.24.x. |
Is there any update on this? v2.25.0 is already out with this still not fixed. |
I'm also getting |
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.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ant31, cyclinder, darkobas2 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 |
… break if multus was defined
* Update multus to v4.1.0 and clarify cilium compatibility * Fix: bug introduced by #10934 where the template would break if multus was defined * Set priorityClassName to system-node-critical for multus pods
fix task failure: TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ************************************************ fatal: [hfal12k8n1 -> {{ groups['kube_control_plane'][0] }}]: FAILED! => {"msg": "Error in jmespath.search in json_query filter plugin:\n'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2'"}
fix task failure: TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ************************************************ fatal: [hfal12k8n1 -> {{ groups['kube_control_plane'][0] }}]: FAILED! => {"msg": "Error in jmespath.search in json_query filter plugin:\n'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2'"}
…sigs#11434) * Update multus to v4.1.0 and clarify cilium compatibility * Fix: bug introduced by kubernetes-sigs#10934 where the template would break if multus was defined * Set priorityClassName to system-node-critical for multus pods
/kind bug
when multus is not installed/defined cluster playbook run would fail: