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

MedusaBackupJob are never cleaned up #1334

Closed
c3-clement opened this issue May 30, 2024 · 0 comments · Fixed by #1347
Closed

MedusaBackupJob are never cleaned up #1334

c3-clement opened this issue May 30, 2024 · 0 comments · Fixed by #1347
Labels
bug Something isn't working done Issues in the state 'done'

Comments

@c3-clement
Copy link
Contributor

What happened?

MedusaBackupJob CRs are not deleted by k8ssandra-operator, even if purging is enabled.
They are only deleted when the corresponding CassandraDatacenter is deleted.

When they are created by a long-running MedusaBackupSchedule, the number of MedusaBackupJob CRs will grow with time.

Did you expect to see something different?

I expect the MedusaBackupJob to be automatically deleted when purging is enabled.

Since the sync MedusaTask is deleting MedusaBackup when the corresponding backup is not present in the remote bucket (which typically happens after a purge), I believe that the corresponding MedusaBackupJob should be as well deleted.

How to reproduce it (as minimally and precisely as possible):

  1. Create a K8ssandraCluster with Medusa backup enabled
  2. Create a MedusaBackupSchedule

Environment

  • K8ssandra Operator version:
    1.14 - 1.16

  • Kubernetes version information:

v1.29.3

  • Kubernetes cluster kind:

AKS, EKS, GKE

@c3-clement c3-clement added the bug Something isn't working label May 30, 2024
@adejanovski adejanovski added the review Issues in the state 'review' label Jun 4, 2024
@adejanovski adejanovski added done Issues in the state 'done' and removed review Issues in the state 'review' labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Issues in the state 'done'
Projects
Archived in project
2 participants