Giter VIP home page Giter VIP logo

Comments (5)

cbf123 avatar cbf123 commented on August 15, 2024

I did some more digging, and it looks like the "cmk uninstall" command will only work on one node, since it tries to delete the webhook and that can only succeed on one node (since on the other nodes it'll already be deleted). When that fails on the other nodes it aborts the uninstall leaving the node in a partially-installed state.

from cpu-manager-for-kubernetes.

lmdaly avatar lmdaly commented on August 15, 2024

@cbf123 thanks for raising this issue. Are you using the cmk-uninstall pod or the cmk-uninstall daemonset?

from cpu-manager-for-kubernetes.

przemeklal avatar przemeklal commented on August 15, 2024

In the uninstall module all "delete something" functions do sys.exit(1) whenever any exception is raised. I think it would be better to display warnings in the logs and continue trying to remove all resources in the best effort mode without exiting early.

from cpu-manager-for-kubernetes.

przemeklal avatar przemeklal commented on August 15, 2024

I created a draft pull request linked above, which changes uninstall module behaviour to described. Feel free to give it a try and report your feedback.

I marked it as a "Draft" as most of the uninstall related tests fail now, I'll be happy to fix them once we agree that this is the right way to perform the uninstall process.

from cpu-manager-for-kubernetes.

cbf123 avatar cbf123 commented on August 15, 2024

lmdaly: I tried both options. With the cmk-uninstall pod you need to run it on each node manually, and it'll only successfully run on the first node. With the daemonset the first pod to run will be successful, and the other pods fail and keep restarting.

przemeklal: That's one way to do it, and I think it makes sense to clean up as much as we can on an uninstall. I took an alternate approach as attached which is a bit more narrow but I think I like yours better.
diff.txt

from cpu-manager-for-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.