Comments (4)
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.
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.
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.
Closing due to the lack of feedback.
from k8up.
Related Issues (20)
- Integrate K8up Helm chart into this repository HOT 2
- Add Open Stack Authentication for Swift Backend HOT 1
- Ability to space out k8up backups in the same namespace (when there are many pre-backup-pods) HOT 4
- Pause Backup after pre definied time HOT 12
- Prune jobs not using `--host` in restic command HOT 5
- Jobs are stuck in terminating when using Kubernetes Job Tracking HOT 7
- Backups to B2 fail after the first backup HOT 5
- Version mismatch: Docs for v2.3 link to v1.2 detailed api ref HOT 3
- unknown field "repoPasswordSecretRef" in io.k8up.v1.Restore.spec HOT 5
- Backup RWO volumes in the same namespace but on the different nodes HOT 1
- NodeSelector and tolerations for Schedule HOT 1
- Why do we still have to add to the list without an annotation on the pvc? HOT 2
- Helm Repo not working HOT 5
- Get rid of observer
- Wrongly Decreasing the queued metric
- BACKUP_LOG_LEVEL is deprecated HOT 2
- Restore mounts RWX volume to the wrong point. HOT 13
- Permission errors with nextcloud backups HOT 22
- [Documentation Bug]: Search Finds Pages for All Versions HOT 5
- Allow Passing Additional Flags to Restic HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8up.