-
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
Failed to remove worker node with error undefined variable ansible_hostname
#7798
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
fix FAILED! => {"msg": "The conditional check 'ansible_os_family not in [\"Flatcar\", \"Flatcar Container Linux by Kinvolk\"]' failed. The error was: error while evaluating conditional (ansible_os_family not in [\"Flatcar\", \"Flatcar Container Linux by Kinvolk\"]) kubernetes-sigs#8090 kubernetes-sigs#7798 kubernetes-sigs#8009
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Any updates? |
This issue has been fixed with #8231 /close |
@oomichi: Closing this issue. 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/test-infra repository. |
Hello,
Environment:
Cloud provider or hardware configuration: Hosted VM
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
): CentOS 7.8Version of Ansible (
ansible --version
): 2.9.6Version of Python (
python --version
): 3.9.4Kubespray version (commit) (
git rev-parse --short HEAD
): branchrelease-2.13
commitcd832ead
Network plugin used: Calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Command used to invoke ansible:
ansible-playbook -i ../../environment/preprod/ansible/inventory.ini -e '@../../environment/preprod/ansible/vault.yml' --vault-password-file ../../secrets/preprod/ansible-vault.txt roles/kubespray/remove-node.yml -e node=sc2-k8sn-07
Output of ansible run:
TASK [kubespray-defaults : Set no_proxy to all assigned cluster IPs and hostnames] ****************************************************************************************************** fatal: [sc2-k8sm-01]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'\n\nThe error appears to be in 'kubespray/roles/kubespray-defaults/tasks/no_proxy.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Set no_proxy to all assigned cluster IPs and hostnames\n ^ here\n"}
Thanks for your help !
The text was updated successfully, but these errors were encountered: