You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had exactly the same error with multus from v2.26.0 when try to kubspray at Ubuntu Server 24.04. I'm also use Calico. Switched to v2.25.1 and there is no issue.
What happened?
When multus (kube_network_plugin_multus: true) is used cluster playbook run fails with msg:
TASK [kubernetes-apps/network_plugin/multus : Multus | Start resources] ******** fatal: [ipv46-deploy1]: FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2.results'. 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'multus_manifest_2.results'"}
The issue seem to be related to change in #10934
What did you expect to happen?
The expectation was for the task to succeed.
How can we reproduce it (as minimally and precisely as possible)?
copy sample inventory
cp -rfp inventory/sample inventory/mycluster
add hosts_ipv46-deploy.yaml to
inventory/mycluster
add cluster variables cluster-variables_dual_stack.yaml to
inventory/mycluster
run playbook
ansible-playbook -i inventory/mycluster/hosts_ipv46-deploy.yaml -e @inventory/mycluster/cluster-variables_dual_stack.yaml --become --become-user=root cluster.yml
OS
Linux 5.14.0-503.15.1.el9_5.x86_64 x86_64
NAME="Rocky Linux"
VERSION="9.5 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.5"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.5 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
VENDOR_NAME="RESF"
VENDOR_URL="https://resf.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.5"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.5"
Version of Ansible
ansible [core 2.16.14]
config file = /root/k8s-1.30_install/kubespray/ansible.cfg
configured module search path = ['/root/k8s-1.30_install/kubespray/library']
ansible python module location = /root/k8s-1.30_install/kubespray-venv/lib64/python3.11/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /root/k8s-1.30_install/kubespray-venv/bin/ansible
python version = 3.11.9 (main, Sep 11 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/root/k8s-1.30_install/kubespray-venv/bin/python3.11)
jinja version = 3.1.4
libyaml = True
Version of Python
Python 3.11.9
Version of Kubespray (commit)
75e12e8
Network plugin used
calico
Full inventory with variables
inventory with variables:
https://gist.github.com/bvujnovac/a17012e5c3c36a9d0d84e89d1206e217#file-gistfile1-txt
Command used to invoke ansible
ansible-playbook -i inventory/mycluster/hosts_ipv46-deploy.yaml -e @inventory/mycluster/cluster-variables_dual_stack.yaml --become --become-user=root cluster.yml
Output of ansible run
playbook run output:
https://gist.github.com/bvujnovac/ec4400289b25b31c02744c032d8552dd#file-gistfile1-txt
ansible -i inventory/mycluster/hosts_ipv46-deploy.yaml all -m debug -a "var=hostvars[inventory_hostname]"
Anything else we need to know
I've tried to change the affecting line as I don't think
multus_manifest_2.results
can be directly accessed like that.the following patch seems to work but I have only tested it for my limited use case.
The text was updated successfully, but these errors were encountered: