I am trying to upgrade couchbase autonomous operator from version 2.0.2 to 2.2.4. (We are doing Kubernetes based deployment) First cycle I upgraded successfully from 2.0.2 to 2.1.0 everything was ok. Now I am upgrading from 2.1.0 to 2.2.4. But I am facing issue in operator. Pod is running but it is not deploying the couchbase000 pod. When I see the operator pod logs it as below:
And my yaml for operator looks as below attached.
{"level":"info","ts":1676638624.239206,"logger":"cluster","msg":"Resource updated","cluster":"couchbase-spare/couchbase-spare","diff":" (\n \t\"\"\"\n \t... // 66 identical lines\n \t status: \"True\"\n \t type: Balanced\n+ \t- lastTransitionTime: \"2023-02-17T12:57:04Z\"\n+ \t lastUpdateTime: \"2023-02-17T12:57:04Z\"\n+ \t message: |-\n+ \t admission webhook \"couchbase-operator-couchbase-admission-controller.couchbase-spare.svc\" denied the request: validation failure list:\n+ \t password in spec.security.adminSecret must not contain any of the following characters ()<>,;:\\\"/[]?={}\n+ \t reason: ErrorEncountered\n+ \t status: \"True\"\n+ \t type: Error\n \tcurrentVersion: 6.6.0\n \tmembers:\n \t... // 5 identical lines\n \t\"\"\"\n )\n"}
{"level":"info","ts":1676638624.26788,"logger":"cluster","msg":"unable to update status","cluster":"couchbase-spare/couchbase-spare","error":"CouchbaseCluster.couchbase.com \"couchbase-spare\" is invalid: status.conditions.type: Unsupported value: \"Error\": supported values: \"Available\", \"Balanced\", \"ManageConfig\", \"Scaling\", \"Upgrading\", \"Hibernating\""}
{"level":"error","ts":1676638624.267942,"logger":"controller","msg":"Failed to create Couchbase cluster","cluster":{"namespace":"couchbase-spare","name":"couchbase-spare"},"error":"admission webhook \"couchbase-operator-couchbase-admission-controller.couchbase-spare.svc\" denied the request: validation failure list:\npassword in spec.security.adminSecret must not contain any of the following characters ()<>,;:\\\"/[]?={}","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/couchbase/go/pkg/mod/github.com/go-logr/zapr@v0.3.0/zapr.go:132\ngithub.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile\n\t/home/couchbase/jenkins/workspace/couchbase-k8s-microservice-build/couchbase-operator/pkg/controller/controller.go:76\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:244\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:197\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:90"}
{"level":"error","ts":1676638624.2680848,"logger":"controller","msg":"Reconciler error","controller":"couchbase-controller","name":"couchbase-spare","namespace":"couchbase-spare","error":"admission webhook \"couchbase-operator-couchbase-admission-controller.couchbase-spare.svc\" denied the request: validation failure list:\npassword in spec.security.adminSecret must not contain any of the following characters ()<>,;:\\\"/[]?={}","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/couchbase/go/pkg/mod/github.com/go-logr/zapr@v0.3.0/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:246\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/home/couchbase/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.4/pkg/internal/controller/controller.go:197\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/home/couchbase/go/pkg/mod/k8s.io/apimachinery@v0.19.4/pkg/util/wait/wait.go:90"}
{"level":"info","ts":1676638688.4749882,"msg":"batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\n"}
{"level":"info","ts":1676638691.7491267,"msg":"policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget\n"}
{"level":"info","ts":1676638695.4658213,"msg":"policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget\n"}
{"level":"info","ts":1676638703.757889,"msg":"batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\n"}
Operator - YAML:
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: couchbase-operator
spec:
releaseName: couchbase-operator
resetValues: false
upgradeStrategy: RollingUpgrade
chart:
repository: Helm Guide for the Couchbase Operator
name: couchbase-operator
version: 2.2.4
values:
install:
couchbaseCluster: false
Any suggestion on this issue?