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

Add state-uninstalled #11

Merged
merged 9 commits into from
Feb 27, 2020
Merged

Add state-uninstalled #11

merged 9 commits into from
Feb 27, 2020

Conversation

onedr0p
Copy link
Collaborator

@onedr0p onedr0p commented Feb 25, 2020

  • Added state-uninstalled.yml
  • Added templates/k3s-killall.sh.j2 from k3s repo
  • Added templates/k3s-uninstall.sh.j2 from k3s repo
  • Created new tasks/teardown directory with uninstall k3s and Docker tasks

⚠️ A little caution on the uninstall-docker pieces I don't have an environment set up to test all these out.

@xanmanning xanmanning self-assigned this Feb 25, 2020
@xanmanning xanmanning added the enhancement New feature or request label Feb 25, 2020
@xanmanning
Copy link
Member

Legend, thanks @onedr0p - seems like you have been reading my mind, or my not-yet-published ToDo list. I shall test this one out, I have a load of VMs with Docker I can try the uninstall on and see what breaks.

@onedr0p
Copy link
Collaborator Author

onedr0p commented Feb 25, 2020

Cool, feel free to ask me to change anything or close this and make changes in a new branch if that's easier.

@xanmanning
Copy link
Member

I may take a while to be able to look at this in detail. Looks like some of the Travis-CI builds have broken due to linting errors, are you able to take a look?

@onedr0p
Copy link
Collaborator Author

onedr0p commented Feb 25, 2020

I'll be able to take a look tonight at those.

@onedr0p
Copy link
Collaborator Author

onedr0p commented Feb 25, 2020

I believe all the lint issues were fixed, running into API Rate limiting errors now.

  1. Now does not remove prerequisite packages, lvm2 was included in
these packages (not good when you use LVM2 for real).
  2. Added a bit more idempotency to the shell scripts - only delete if
it exists.
  3. Check that the process isn't running and binaries are gone.
@onedr0p
Copy link
Collaborator Author

onedr0p commented Feb 26, 2020

Much thanks with the fixes :)

@xanmanning
Copy link
Member

Made some slight alterations @onedr0p - Are you happy with these changes? I've tested them on my VMs.

Main change is to remove the steps to uninstall docker prerequisite packages. Main reason for this is that lvm2 is a required package for docker, however it was already installed on my VMs (I was using it) and the uninstall attempted to remove lvm. Oops.

@onedr0p
Copy link
Collaborator Author

onedr0p commented Feb 26, 2020

No worries, I didn't know how far we should go with the uninstalling docker and the deps, or even uninstall docker at all. What you have is fine with me.

Copy link
Member

@xanmanning xanmanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge in as is.

@xanmanning xanmanning merged commit 241dc24 into PyratLabs:master Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants