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

Fix omissions and errors in the reset role that leave artifacts after successful reset.yml playbook run #158

Closed
wants to merge 8 commits into from

Conversation

jon-stumpf
Copy link
Contributor

@jon-stumpf jon-stumpf commented Dec 14, 2021

The current reset role does not remove all network artifacts (#159). I updated the reset role to perform the same actions in the same order as k3s-uninstall.sh as provided by https://get.k3s.io. I used v1.22.4+k3s1 as the reference.

@jon-stumpf
Copy link
Contributor Author

jon-stumpf commented Dec 14, 2021

I made additional commits to address gaps found in the implementation of k3s_server_location. In roles/reset/tasks/main.yml, the following errors were found:

  • k3s_server_location is not used; Need to replace hard-coded references to /var/lib/rancher/k3s
  • pkill assumes the data directory ends in "k3s"; Need to replace "k3s" with "{{ k3s_server_location }}"

@jon-stumpf jon-stumpf changed the title Fix removal of network artifacts during reset. Fix omissions and errors during reset that leave artifacts after successful reset.yml playbook run Dec 14, 2021
@jon-stumpf jon-stumpf changed the title Fix omissions and errors during reset that leave artifacts after successful reset.yml playbook run Fix omissions and errors in the reset role that leave artifacts after successful reset.yml playbook run Dec 14, 2021
…ation only used in k3s/master role

Signed-off-by: Jon S. Stumpf <[email protected]>
…location is changed from the default

Signed-off-by: Jon S. Stumpf <[email protected]>
Signed-off-by: Jon S. Stumpf <[email protected]>
Signed-off-by: Jon S. Stumpf <[email protected]>
@jon-stumpf
Copy link
Contributor Author

jon-stumpf commented Dec 15, 2021

I found another issue related to k3_server_location along with needing to remove ~/.kube/config.

Fixes #159
Fixes #160
Fixes #161
Fixes #162
Fixes #163
Obviates #143

@dereknola
Copy link
Member

Closing as reset playbook now simply calls the K3s-uninstall.sh script #230

@dereknola dereknola closed this Nov 9, 2023
@jon-stumpf jon-stumpf deleted the k3s-uninstall branch November 21, 2023 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants