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
With the lastest kubespray release, the cluster upgrade (initial installation not tested but likely effected in the same way) fails when ansible_host is not set for nodes in the inventory. This issue did not occur with previous releases using the same inventory config.
This issue was introduced with acb6f24 (#9194). After reverting this commit, the upgrade succeeded.
Environment:
Cloud provider or hardware configuration:
Bare metal/KVM (5 nodes)
OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
Linux 5.10.0-17-amd64 x86_64
Debian GNU/Linux 11 (bullseye)
Version of Ansible (ansible --version):
ansible [core 2.12.5]
Version of Python (python --version):
Python 3.8.10
Kubespray version (commit) (git rev-parse --short HEAD):
v2.20.0 (18efdc2)
Network plugin used:
Calico
Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):
dgerhardt
changed the title
Upgrade fails when ansible_host is not set for nodes
Upgrade fails when ansible_host is not set for control plane nodes
Sep 28, 2022
With the lastest kubespray release, the cluster upgrade (initial installation not tested but likely effected in the same way) fails when
ansible_host
is not set for nodes in the inventory. This issue did not occur with previous releases using the same inventory config.This issue was introduced with acb6f24 (#9194). After reverting this commit, the upgrade succeeded.
Environment:
Cloud provider or hardware configuration:
Bare metal/KVM (5 nodes)
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Linux 5.10.0-17-amd64 x86_64
Debian GNU/Linux 11 (bullseye)
Version of Ansible (
ansible --version
):ansible [core 2.12.5]
Version of Python (
python --version
):Python 3.8.10
Kubespray version (commit) (
git rev-parse --short HEAD
):v2.20.0 (18efdc2)
Network plugin used:
Calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):"hostvars[inventory_hostname].groups":
ansible -i my.inventory.yml -m debug -a var=hostvars[inventory_hostname].ansible_host -l k8s_cluster
Command used to invoke ansible:
ansible-playbook -u myuser --become -i my.inventory.yml upgrade-cluster.yml
Output of ansible run:
Anything else do we need to know:
kubelet_systemd_hardening: false
Template line which causes the error: acb6f24#diff-184b5937f6be4d63c1e833fd13903f1560034737d2e7ca93c631ea605ed2092eR29
The text was updated successfully, but these errors were encountered: