You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am removing standalone etcd node (etcd on separate node - not on the master node).
Task [remove-node/remove-etcd-node : Make sure node_ip is set] is failing.
The previous task Lookup node IP in kubernetes Is trying to find the IP address of etcd node using kubectl get nodes <etcd node to be removed> ... command delegated to first etcd node. But this does not work on node which is not a member of k8s cluster (also the kubectl is not even installed on the node).
See roles/remove-node/remove-etcd-node/tasks/main.yml for more details
What did you expect to happen?
The playbook remove_node.yml will remove also standalone etcd node.
How can we reproduce it (as minimally and precisely as possible)?
Have a standalone etcd cluster (etcd nodes not on the k8s master nodes) and try to remove one etcd node
OS
AWX Execution environment based on centos:stream9 bud also my local environment:
LATEST_RELEASE=v2.24.0TASK [remove-node/remove-etcd-node : Make sure node_ip is set] ************************************************************************************************************
fatal: [ops-k1e01t.embl.de]: FAILED! => {
"assertion": "node_ip is defined and node_ip | length > 0",
"changed": false,
"evaluated_to": false,
"msg": "Etcd node ip is not set !"
}
Anything else we need to know
As a workaround i specified the node_ip variable as an extra var -e node_ip=<ip of the etcd node> for remove_node.yml playbook
The text was updated successfully, but these errors were encountered:
What happened?
I am removing standalone etcd node (etcd on separate node - not on the master node).
Task
[remove-node/remove-etcd-node : Make sure node_ip is set]
is failing.The previous task
Lookup node IP in kubernetes
Is trying to find the IP address of etcd node usingkubectl get nodes <etcd node to be removed> ...
command delegated to first etcd node. But this does not work on node which is not a member of k8s cluster (also the kubectl is not even installed on the node).See
roles/remove-node/remove-etcd-node/tasks/main.yml
for more detailsWhat did you expect to happen?
The playbook
remove_node.yml
will remove also standalone etcd node.How can we reproduce it (as minimally and precisely as possible)?
Have a standalone etcd cluster (etcd nodes not on the k8s master nodes) and try to remove one etcd node
OS
AWX Execution environment based on
centos:stream9
bud also my local environment:Version of Ansible
ansible [core 2.15.10]
config file = /home/mike/Documents/EMBL/kubespray-fork/ansible.cfg
configured module search path = ['/home/mike/Documents/EMBL/kubespray-fork/library']
ansible python module location = /home/mike/Documents/EMBL/kubespray-fork/kubespray-2.24.0/lib64/python3.12/site-packages/ansible
ansible collection location = /home/mike/.ansible/collections:/usr/share/ansible/collections
executable location = /home/mike/Documents/EMBL/kubespray-fork/kubespray-2.24.0/bin/ansible
python version = 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)] (/home/mike/Documents/EMBL/kubespray-fork/kubespray-2.24.0/bin/python3)
jinja version = 3.1.2
libyaml = True
Version of Python
Python 3.12.2
Version of Kubespray (commit)
64447e7
Network plugin used
calico
Full inventory with variables
don't think it's needed
Command used to invoke ansible
ansible-playbook -i ../inventory-kubespray/inventory.ini playbooks/remove_node.yml -e node=etcd03.example.com
Output of ansible run
LATEST_RELEASE=v2.24.0TASK [remove-node/remove-etcd-node : Make sure node_ip is set] ************************************************************************************************************
fatal: [ops-k1e01t.embl.de]: FAILED! => {
"assertion": "node_ip is defined and node_ip | length > 0",
"changed": false,
"evaluated_to": false,
"msg": "Etcd node ip is not set !"
}
Anything else we need to know
As a workaround i specified the
node_ip
variable as an extra var-e node_ip=<ip of the etcd node>
for remove_node.yml playbookThe text was updated successfully, but these errors were encountered: