Git Product home page Git Product logo

Comments (4)

Kidswiss avatar Kidswiss commented on May 27, 2024

Hi @dns2utf8

What storage provider are you using? Some providers (cephfs) don't play nice with volumeMount that are readonly.

The issue here is, that the operator collects a list of all eligible PVCs and uses that to create the jobs. That's why you have to delete the job object, as the mounts are already defined in there. When now a PVC is deleted the job configuration becomes invalid thus the hanging pods.

Unfortunately I currently don't know how to mitigate this easily as the mounts have to be specified by the operator and then a job is created. So there's always a gap where a PVC can be deleted.

If there are temporary PVCs that may get deleted at any time and don't need backups then you can set the appuio.ch/backup=false annotation on the PVC.

If you have any input how that can be solved properly, I'm all ears :)

Best Regards
Simon

from k8up.

dns2utf8 avatar dns2utf8 commented on May 27, 2024

Hi Simon

I am using xfs (backed by HPE Nimble CSI).

Thank you for explaining how the race condition comes to be.

My initial reaction was: Some kind of garbage collector could solve that.
Pro GC: it would cleanup stuck jobs without adding complexity to the operator.
Contra GC: Has to maintain the same predictable behaviour as the operator.

After thinking about the problem some more I have another idea:
What if the operator does the GC run itself before creating each Job and after changes to the schedules (all the CRUD operations)?

Best,
Stefan

from k8up.

Kidswiss avatar Kidswiss commented on May 27, 2024

What exactly would the job of this garbage collector be? Cleaning up stuck pods? Maybe there's already some way to tell k8s to discard pods that are pending for too long.

from k8up.

tobru avatar tobru commented on May 27, 2024

Closing due to the lack of feedback.

from k8up.

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.