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

Operation cannot be fulfilled on schedules.k8up.io \"prodk8up\": the object has been modified #1021

Open
stevemayster opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stevemayster
Copy link

Description

Hello.
Before i use k8up to make one time backup, now i try create a schedule.
I take an example from docs and make a little changes

apiVersion: k8up.io/v1
kind: Schedule
metadata:
  name: k8up
spec:
  backend:
    s3:
      endpoint: http://minio:9000
      bucket: 
      accessKeyIDSecretRef:
        name: s3pwd
        key: username
      secretAccessKeySecretRef:
        name: s3pwd
        key: password
    repoPasswordSecretRef:
      name: restic-repository-password
      key: password
  backup:
    schedule: '00 15 1-5 * *'
    failedJobsHistoryLimit: 2
    successfulJobsHistoryLimit: 2
    promURL: https://prom.hostname.com
  check:
    schedule: '0 1 * * 1'
    promURL: https://prom.hostname.com
  prune:
    schedule: '0 1 * * 0'
    retention:
      keepLast: 5
      keepDaily: 14

So, i applied this config and got an error

2024-11-07T11:56:42Z	ERROR	k8up.operator	Reconciler error	{"controller": "schedule.k8up.io", "controllerGroup": "k8up.io", "controllerKind": "Schedule", "Schedule": {"name":"prodcatk8up","namespace":"default"}, "namespace": "default", "name": "prodcatk8up", "reconcileID": "012070c8-010d-4d3a-af9b-9e00de6d42ef", "error": "Operation cannot be fulfilled on schedules.k8up.io \"prodcatk8up\": the object has been modified; please apply your changes to the latest version and try again"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227

And nothing happened, schedule doesn't work

Also i have a question about timezones. I see time in pod in UTC but my worker node have UTC+1.
What time i need to use in the scheduler?

Additional Context

No response

Logs

No response

Expected Behavior

Backup jobs started by scheduler right in time

Steps To Reproduce

No response

Version of K8up

4.8.1

Version of Kubernetes

1.30.1

Distribution of Kubernetes

kubeadm

@stevemayster stevemayster added the bug Something isn't working label Nov 7, 2024
@stevemayster stevemayster changed the title Operation cannot be fulfilled on schedules.k8up.io \"prodcatk8up\": the object has been modified Operation cannot be fulfilled on schedules.k8up.io \"prodk8up\": the object has been modified Nov 7, 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
Projects
None yet
Development

No branches or pull requests

1 participant