Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-3348

The operator attempts to delete the _system scope, which is not allowed in Trinity 7.6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.6.1
    • None
    • None
    • None
    • 2 - 2024 Midnight Horizon
    • 0

    Description

      From the logs:

       

       

      Error formatting macro: code: java.lang.StackOverflowError

      {"level":"info","ts":"2024-01-18T19:13:15Z","logger":"cluster","msg":"Reconciliation failed","cluster":"test-ptg2g/test-couchbase-6dthn","error":"unexpected status code: request failed DELETE http://test-couchbase-6dthn-0000.test-couchbase-6dthn.test-ptg2g.svc:8091/pools/default/buckets/default/scopes/_system 400 Bad Request: {\"errors\":{\"_\":\"Deleting _system scope is not allowed\"}}","stack":"github.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.Client.doRequest\n\tgithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/core.go:212\ngithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.(*Client).Delete\n\tgithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/core.go:335\ngithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.(*Request).On.func1\n\tgithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/api.go:222\ngithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil.(*Request).On\n\tgithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/api.go:249\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcileScopes\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/collections.go:125\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcileScopesAndCollections\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/collections.go:39\ngithub.com/couchbase/couchbase-operator/pkg/cluster.reconcileFuncList.run\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:56\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:224\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).runReconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:492\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).Update\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:535\ngithub.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/controller/controller.go:90\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}

      {"level":"debug","ts":"2024-01-18T19:13:25Z","logger":"api","msg":"http","cluster":"test-ptg2g/test-couchbase-6dthn","method":"GET","url":"http://test-couchbase-6dthn-0000.test-couchbase-6dthn.test-ptg2g.svc:8091/pools/default","status":"200 OK","time_ms":15.658615}

       

      Example for a test:

       

      TestScopeCreateExplicit

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            usamah.jassat Usamah Jassat
            gilad.kalchheim Gilad Kalchheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty