-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname' when adding a control plan/etcd node #11024
Comments
Hello, I have the same error when adding a new worker node by running |
same here |
running facts (without --limit=NODE_NAME) before the scale did the trick for me |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
Hello,
I'm trying to add a new control plane and etcd node to my cluster following the docs.
The command I execute is basically:
The failed task output is:
When I suppress the parameter
--limit=etcd,kube_control_plane
, it works.What did you expect to happen?
The playbook executes without error.
How can we reproduce it (as minimally and precisely as possible)?
cluster.yml
passing--limit=etcd,kube_control_plane -e ignore_assert_errors=yes
OS
Ansible control node: MacOSx Ventura
Ansible managed nodes: CentOS 7.9 and AlmaLinux 8.9
Version of Ansible
ansible [core 2.14.11]
config file = None
configured module search path = ['/Users/gjj422/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/gjj422/almvenv/lib/python3.11/site-packages/ansible
ansible collection location = /Users/gjj422/.ansible/collections:/usr/share/ansible/collections
executable location = /Users/gjj422/almvenv/bin/ansible
python version = 3.11.5 (main, Aug 24 2023, 15:23:30) [Clang 14.0.0 (clang-1400.0.29.202)] (/Users/gjj422/almvenv/bin/python3.11)
jinja version = 3.1.2
libyaml = True
Version of Python
3.11.5
Version of Kubespray (commit)
v2.23.0
Network plugin used
calico
Full inventory with variables
ansible -i inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
Command used to invoke ansible
ansible-playbook -i inventory.ini --limit=etcd,kube_control_plane -e ignore_assert_errors=yes cluster.yml
Output of ansible run
ansible.log
Anything else we need to know
I also have tried with Kubespray v2.24.1 hoping that #10953 has resolved this problem but I still have the same error.
The text was updated successfully, but these errors were encountered: