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
Running remove-node.yml does an include_role: on network_plugin/<your-network-plugin> with a tasks_from: reset. All of the potential roles that can be loaded include a dependency for network_plugin/cni which will fail because the download role is not included in this playbook (nor should it be).
The text was updated successfully, but these errors were encountered:
@yankay I do not have the full logs, I did not save them. I would image your test worked because the nodes were fresh and had not cleared the default releases_cache directory of local_release_dir: "/tmp/releases" yet? If that is the case then the task https://github.com/kubernetes-sigs/kubespray/blob/master/roles/network_plugin/cni/tasks/main.yml#L10 would still work. If this directory has been emptied by the system (which happens at various stages in various methods across different OS') then this task would fail because that file would no longer be there.
I'm not sure how you tried to reproduce but a valid test case would be:
Deploy a kubespray cluster with any amount of nodes
Delete the contents of /tmp/releases/*
Run a standard node removal on any node where /tmp/releases/* was cleared out
Environment:
Cloud provider or hardware configuration:
Bare metal, standard hardware x86_64
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Alma 9
Version of Ansible (
ansible --version
):python --version
):Kubespray version (commit) (
git rev-parse --short HEAD
):v2.20.0
Network plugin used:
cilium
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):Command used to invoke ansible:
Just ran
remove-node.yml
Output of ansible run:
Anything else do we need to know:
Running
remove-node.yml
does aninclude_role:
onnetwork_plugin/<your-network-plugin>
with atasks_from: reset
. All of the potential roles that can be loaded include a dependency fornetwork_plugin/cni
which will fail because thedownload
role is not included in this playbook (nor should it be).The text was updated successfully, but these errors were encountered: