-
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
Node-based upgrade fails with: "Failed to template loop_control.label: 'None' has no attribute 'item'" #9703
Comments
I have the same problem when updating a single node of the cluster. TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ******** |
I have the same issue when running with |
It seems that with |
I have the same issue when trying to setup a multi-node cluster with calico,
Installed from kubespray tag v2.21.0 |
Met the same problem. Have to use '--skip-tags=multus' to skip it for now. |
Were you able to execute the ansible-playbook successfully for multi-node cluster. Or you also used that flag --skip-tags=multus |
I also used --skip-tags=multus |
HI @maxime1907 Would you please provide a PR to resolve it :-) |
I am on branch 2.22 and still do get this issue!
|
I can confirm that it still happens when upgrading only one node ( for some reason ) |
Also still affected. No solution in sight? |
/assign |
Environment:
Onprem VMware ESX
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):ansible --version
):ansible [core 2.11.11]
python --version
):Python 3.6.8
Kubespray version (commit) (
git rev-parse --short HEAD
):c4346e590
Network plugin used:
Calico
Command used to invoke ansible:
ansible-playbook -i inventory/mycluster/hosts.yaml -b -e kube_version=v1.25.6 --become --become-user=root --ask-pass --ask become-pass upgrade-cluster.yml --limit "testk8-n3"
Output of ansible run:
TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ************************************************************************************************************************************** failed: [testk8-n3 -> {{ groups['kube_control_plane'][0] }}] (item=None) => {"ansible_loop_var": "item", "changed": false, "item": null, "msg": "Failed to template loop_control.label: 'None' has no attribute 'item'", "skip_reason": "Conditional result was False"}
Anything else do we need to know:
Only happens when issuing --limit pattern(fine without --limit)
https://github.com/kubernetes-sigs/kubespray/blob/master/docs/upgrades.md#node-based-upgrade
The text was updated successfully, but these errors were encountered: