Skip to content
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

hosts file can't handle hostnames with domain #11325

Closed
dennisTGC opened this issue Jun 25, 2024 · 1 comment
Closed

hosts file can't handle hostnames with domain #11325

dennisTGC opened this issue Jun 25, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@dennisTGC
Copy link

dennisTGC commented Jun 25, 2024

What happened?

If i create a hosts file with nodes like
servername01.domain
servername02.domain

The playbook cluster.yml fails with creation of the first control plane node. If i create a host file with just the IP's, the playbook runs fine.

It looks like the SAN certs have an issue with hostnames while creating the first control_plane node.

What did you expect to happen?

that the playbook could handle hostnames with domainname like server01.local1

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

create a hosts file with server01.local1 (use the /etc/hosts file for resolving) and run the playbook with default k8s-cluster.yaml and all.yml

OS

-bash: printfLinux 6.5.0-41-generic x86_64\nPRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy\n: No such file or directory

Version of Ansible

ansible [core 2.16.8]
config file = None
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ansible/git/kubespray-venv/lib/python3.10/site-packages/ansible
ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
executable location = /home/ansible/git/kubespray-venv/bin/ansible
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/home/ansible/git/kubespray-venv/bin/python3)
jinja version = 3.1.4
libyaml = True

Version of Python

Python 3.10.12

Version of Kubespray (commit)

2e0008c

Network plugin used

calico

Full inventory with variables

[all]
k8s-m01.local1 ip=10.10.10.11 etcd_member_name=etcd1
k8s-m02.local1 ip=10.10.10.12 etcd_member_name=etcd2
k8s-m03.local1 ip=10.10.10.13 etcd_member_name=etcd3
k8s-node01.local1 ip=10.10.10.101
k8s-node02.local2 ip=10.10.10.102
k8s-node01.local3 ip=10.10.10.103

[kube_control_plane]
k8s-m01.local1
k8s-m02.local1
k8s-m03.local1

[etcd]
k8s-m01.local1
k8s-m02.local1
k8s-m03.local1

[kube_node]
k8s-node01.local1
k8s-node02.local1
k8s-node03.local1

[calico_rr]

[k8s_cluster:children]
kube_control_plane
kube_node
calico_rr

Command used to invoke ansible

/home/ansible/git/kubespray-venv/bin/ansible

Output of ansible run

not relevant

Anything else we need to know

No response

@dennisTGC dennisTGC added the kind/bug Categorizes issue or PR as related to a bug. label Jun 25, 2024
@dennisTGC
Copy link
Author

Sorry, I had another conflicting parameter which broke the install. Although I thought I had a default k8s-cluster.yml and all.yml, I had enabled kube-vip in addons.yml, which seems to be broken #11338

So I will close this issue, as it is simply not true. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant