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

Create 8 backup tasks continuously to see how many jobs are reserved (3 by default) is bug #222

Closed
dingyuan408 opened this issue Sep 16, 2021 · 3 comments · Fixed by #223
Labels
bug Something isn't working
Milestone

Comments

@dingyuan408
Copy link
Collaborator

dingyuan408 commented Sep 16, 2021

Describe the problem

To Reproduce

e4ea0469a024067d583a139e678a341

ba38404af6afb5e5ea43685e6013f42

Expected behavior

Environment:

  • RadonDB MySQL version:
@dingyuan408 dingyuan408 added the bug Something isn't working label Sep 16, 2021
@andyli029
Copy link
Contributor

Ping @acekingke

@runkecheng
Copy link
Collaborator

runkecheng commented Sep 16, 2021

2021-09-16T07:27:55.162Z DEBUG controller-runtime.manager.controller.backup unchanged {"reconciler group": "mysql.radondb.com", "reconciler kind": "Backup", "name": "backup-sample", "namespace": "default", "syncer": "Job", "key": {"namespace": "default", "name": "backup-sample-backup"}, "kind": "batch/v1, Kind=Job", "diff": []}

2021-09-16T07:27:55.170Z INFO controllers.Backup update backup object status

2021-09-16T07:27:55.171Z ERROR controllers.Backup update status backup backup-sample/default {"backupStatus": {"completed":true,"conditions":[{"type":"Failed","status":"True","lastTransitionTime":"2021-09-16T07:27:55Z","reason":"BackoffLimitExceeded","message":"Job has reached the specified backoff limit"}]}, "error": "backups.mysql.radondb.com \"backup-sample\" is forbidden: User \"system:serviceaccount:default:demo-mysql-operator\" cannot update resource \"backups/status\" in API group \"mysql.radondb.com\" in the namespace \"default\""}

github.com/radondb/radondb-mysql-kubernetes/controllers.(*BackupReconciler).Reconcile

/workspace/controllers/backup_controller.go:89

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem

/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2

/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214

The controller does not have permission to change backup/status

@andyli029
Copy link
Contributor

andyli029 commented Sep 16, 2021

forbidden about RBAC

andyli029 added a commit that referenced this issue Sep 16, 2021
charts: fix the bug which historyLimit do not work #222
@andyli029 andyli029 reopened this Sep 17, 2021
@dingyuan408 dingyuan408 added this to the v2.1.0 milestone Sep 17, 2021
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
charts: fix the bug which historyLimit do not work radondb#222
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

Successfully merging a pull request may close this issue.

3 participants