Giter Club home page Giter Club logo

Comments (9)

ptnapoleon avatar ptnapoleon commented on May 30, 2024 2

OR, in the injector, remove the finalizer before writing to sysrq and re-add the finalizer on failure (since it is the only part of the code that will still be running if the injection fails) so we can catch that later

I like this option most, I'll draft up a PR for Nikos to test

from chaos-controller.

ptnapoleon avatar ptnapoleon commented on May 30, 2024

Oh I see. This isn't a problem for us because the node gets replaced on any nodeFailure disruption, which is why the only way we handle it is to check if the target node is gone, and if yes, go ahead and clean up the stuck pod.

The only idea for a fix I have for this is to go ahead and remove the chaos pod finalizer from within before we create the kernel panic, though it runs the risk that the disruption doesn't occur

from chaos-controller.

nikos912000 avatar nikos912000 commented on May 30, 2024

Interesting.

I'm curious why the node gets replaced for you.
Does its health-check fail and auto-scaling kicks in?
If this is the case, what is the difference between the 2 node failures for you from a behavior perspective?

I think it is sensible to remove the finalizer once the Disruption expires?

from chaos-controller.

ptnapoleon avatar ptnapoleon commented on May 30, 2024

I think it is sensible to remove the finalizer once the Disruption expires?

Hmm, for node failures specifically, that seems fine? There's nothing to clean, really. @Devatoria ?

If this is the case, what is the difference between the 2 node failures for you from a behavior perspective?

Almost nothing, afaict

I'm curious why the node gets replaced for you.

I think it's cloud provider health checks failing

from chaos-controller.

Devatoria avatar Devatoria commented on May 30, 2024

@ptnapoleon Would it be worth adding a bit more logic on node disruption cleanup? I see multiple options here:

  • in the controller, ensure the node is NotReady if the chaos pod exit code is not 0 (we can conclude that the node is disrupted) before removing the finalizer
  • OR, in the injector, remove the finalizer before writing to sysrq and re-add the finalizer on failure (since it is the only part of the code that will still be running if the injection fails) so we can catch that later

Wdyt?

from chaos-controller.

ptnapoleon avatar ptnapoleon commented on May 30, 2024

I'm testing #503 . It seems simple and safe. Altering the finalizer logic by having chaos pods mutate their own finalizer was causing reconcile issues in the controller

from chaos-controller.

ptnapoleon avatar ptnapoleon commented on May 30, 2024

This seems to be working locally and on staging for us, let me know if it's sufficient for you!

from chaos-controller.

nikos912000 avatar nikos912000 commented on May 30, 2024

Thanks Philip!
I will test this today in our clusters and will let you know.

from chaos-controller.

nikos912000 avatar nikos912000 commented on May 30, 2024

@ptnapoleon perfect, this works as expected. Thank you Philip.

from chaos-controller.

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.