Skip to content

Stop if some versions have a 'v' left at the start #12056

Description

@HomeLabJunkie

What happened?

When i run the command instructed in this tutorial and changing nothing but the inventory.ini to reflect the following over and over (tutorial is here. https://fschoenberger.dev/homelab/03-deploy-k8s-kubespray/ )

TASK [kubernetes/preinstall : Stop if some versions have a 'v' left at the start] ********************************************************************************************* fatal: [node4]: FAILED! => {"msg": "The conditional check 'not etcd_version.startswith('v')' failed. The error was: error while evaluating conditional (not etcd_version.startswith('v')): {{ etcd_supported_versions[kube_major_version] }}: 'dict object' has no attribute 'v1.32'. 'dict object' has no attribute 'v1.32'. {{ etcd_supported_versions[kube_major_version] }}: 'dict object' has no attribute 'v1.32'. 'dict object' has no attribute 'v1.32'"}

What did you expect to happen?

kubernetes cluster to be deployed.

How can we reproduce it (as minimally and precisely as possible)?

Follow the steps outlined in the guide.

OS

Ubuntu 24

Version of Ansible

ansible [core 2.16.14] config file = /home/jeff/kubespray/ansible.cfg configured module search path = ['/home/jeff/kubespray/library'] ansible python module location = /home/jeff/kubespray/.venv/lib/python3.11/site-packages/ansible ansible collection location = /home/jeff/.ansible/collections:/usr/share/ansible/collections executable location = /home/jeff/kubespray/.venv/bin/ansible python version = 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] (/home/jeff/kubespray/.venv/bin/python3) jinja version = 3.1.6 libyaml = True

Version of Python

Python 3.11.2

Version of Kubespray (commit)

5abaf8c

Network plugin used

calico

Full inventory with variables

https://paste.ee/p/Smu56P5D

Command used to invoke ansible

ansible-playbook -i inventory/k8s-cluster/inventory.ini cluster.yml -b -v --private-key=~/.ssh/k8s-nodes

Output of ansible run

https://paste.ee/p/MOxorw37

Anything else we need to know

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ubuntu 24kind/supportCategorizes issue or PR as a support question.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions