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

Bucket migration test fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.0
    • None
    • None
    • None
    • 5 - Forces of Destiny
    • 1

    Description

      The test: 

       

      TestCouchstoreBucketToCouchstoreMigrationFromDefault

      Is failing in what appears to be a migration problem:

       

      Error Messagetimeout: waiting for bucket `couchstore` to have default backendStacktracegoroutine 189 [running]:
      runtime/debug.Stack()
      	runtime/debug/stack.go:24 +0x72
      github.com/couchbase/couchbase-operator/test/e2e/e2eutil.Die(0xc00031ba00, {0x6c85540, 0xc00428cb80})
      	github.com/couchbase/couchbase-operator/test/e2e/e2eutil/util.go:1455 +0x36
      github.com/couchbase/couchbase-operator/test/e2e/e2eutil.MustWaitUntilAllNodeStorageBackendCouchstore(0xc000d983d8?, 0x55fee63?, 0x6ccfb98?, 0xc000752540?)
      	github.com/couchbase/couchbase-operator/test/e2e/e2eutil/wait_util.go:897 +0x67
      github.com/couchbase/couchbase-operator/test/e2e.TestCouchstoreBucketToCouchstoreMigrationFromDefault(0xc00031ba00)
      	github.com/couchbase/couchbase-operator/test/e2e/bucketmigration_test.go:196 +0x13ac
      testing.tRunner(0xc00031ba00, 0x5757420)
      	testing/testing.go:1576 +0x217
      created by testing.(*T).Run
      	testing/testing.go:1629 +0x806 

      Looks like it could be a test problem that we need to create the bucket with history_retention disabled:

       

      Error formatting macro: code: java.lang.StackOverflowError {"level":"info","ts":"2024-03-13T10:56:56Z","logger":"cluster","msg":"Reconciliation failed","cluster":"test-4j5m7/test-couchbase-hpp88","error":"unexpected status code: request failed POST http://test-couchbase-hpp88-0000.test-couchbase-hpp88.test-4j5m7.svc:8091/pools/default/buckets/default 400 Bad Request: Cannot migrate storage mode. history_retention enabled on bucket.","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).Post\n\tgithub.com/couchbase/couchbase-operator/pkg/util/couchbaseutil/core.go:274\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).reconcileBuckets\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/bucket.go:370\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:225\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).runReconcile\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:506\ngithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).Update\n\tgithub.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:549\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"}

      Attachments

        Issue Links

          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:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty