kubegres icon indicating copy to clipboard operation
kubegres copied to clipboard

Can't scale a kubegres "kubegres-n already exists"

Open anthr76 opened this issue 4 years ago • 0 comments

Hello, I'm looking to scale a kubegres. This was successful on many databases but one, it seems to have a problem with the number. For example this is database-4

2022-02-18T14:26:36.182Z	INFO	controllers.Kubegres	Updating Kubegres' status: 	{"Field": "BlockingOperation", "New value": {"statefulSetOperation":{},"statefulSetSpecUpdateOperation":{}}}
2022-02-18T14:26:36.182Z	INFO	controllers.Kubegres	Updating Kubegres' status: 	{"Field": "PreviousBlockingOperation", "New value": {"operationId":"Replica DB count spec enforcement","stepId":"Replica DB is deploying","timeOutEpocInSeconds":1645194696,"statefulSetOperation":{"instanceIndex":4,"name":"authentik-postgres-4"},"statefulSetSpecUpdateOperation":{}}}
2022-02-18T14:26:36.182Z	DEBUG	controller-runtime.manager.events	Warning	{"object": {"kind":"Kubegres","namespace":"networking","name":"authentik-postgres","uid":"1d1c3295-5c78-457a-8051-f8667a0af002","apiVersion":"kubegres.reactive-tech.io/v1","resourceVersion":"115220346"}, "reason": "ReplicaStatefulSetDeploymentErr", "message": "Unable to deploy Replica StatefulSet. 'Replica name': authentik-postgres-4 - statefulsets.apps \"authentik-postgres-4\" already exists"}
2022-02-18T14:26:36.198Z	INFO	controllers.Kubegres	Kubegres status updated.
2022-02-18T14:26:36.198Z	ERROR	controller-runtime.manager.controller.kubegres	Reconciler error	{"reconciler group": "kubegres.reactive-tech.io", "reconciler kind": "Kubegres", "name": "authentik-postgres", "namespace": "networking", "error": "statefulsets.apps \"authentik-postgres-4\" already exists"}
github.com/go-logr/zapr.(*zapLogger).Error
	/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:267
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:235
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1
	/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:198
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
	/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99
2022-02-18T14:26:36.198Z	INFO	controllers.Kubegres	=======================================================
2022-02-18T14:26:36.198Z	INFO	controllers.Kubegres	=======================================================

anthr76 avatar Feb 18 '22 14:02 anthr76