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

Missing new nodes in /etc/hosts after cluster scale #9817

Closed
lystor opened this issue Feb 22, 2023 · 2 comments · Fixed by #9837
Closed

Missing new nodes in /etc/hosts after cluster scale #9817

lystor opened this issue Feb 22, 2023 · 2 comments · Fixed by #9837
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lystor
Copy link
Contributor

lystor commented Feb 22, 2023

Environment:

  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
NAME="Rocky Linux"
VERSION="9.1 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
  • Version of Ansible (ansible --version):
ansible [core 2.12.5]
  • Version of Python (python --version):
Python 3.10.8

Kubespray version (commit) (git rev-parse --short HEAD):

c553912

Anything else do we need to know:
Kubespray doesn't add new nodes into /etc/hosts of current nodes after cluster scale with scale.yml.

Patch:

diff -up ./roles/kubernetes/preinstall/tasks/main.yml.orig ./roles/kubernetes/preinstall/tasks/main.yml
--- ./roles/kubernetes/preinstall/tasks/main.yml.orig	2022-06-14 11:58:09.119000000 +0300
+++ ./roles/kubernetes/preinstall/tasks/main.yml	2022-06-14 13:34:37.684303600 +0300
@@ -65,8 +65,6 @@
     - bootstrap-os
 
 - import_tasks: 0090-etchosts.yml
-  when:
-    - not dns_late
   tags:
     - bootstrap-os
     - etchosts

Please fix this bug.
Thank you

@lystor lystor added the kind/bug Categorizes issue or PR as related to a bug. label Feb 22, 2023
@yankay
Copy link
Member

yankay commented Feb 23, 2023

Thanks, @lystor

If you pleasure, would you please submit a PR :-)

@zhan9san
Copy link
Contributor

Thanks for this great project.
I can help on this issue.

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
3 participants