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

StorageBackend warnings occur after Operator upgrade

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.4.1
    • None
    • operator
    • 10 - Krackeverlasting, 1 - Levianthanning, 2 - LeVIAthan or LeviaTHAN
    • 0

    Description

      By default our 2.3.0 Bucket resources do not have storageBackend set.  When Upgrading to 2.4 the Operator will send warnings if server is also < 7.1.0:

      {"level":"info","ts":1674524426.697536,"logger":"cluster","msg":"[WARN] spec.storageBackend cannot be empty for server version below 7.1.0 - default to couchstore"} 

      Under normal upgrade scenarios the workaround for this is to: 

      • Edit couchbasebucket with storageBackend = couchstore

       

      However, if somehow the storage backend is set to couchstore post-crd change and pre-operator upgrade then the following error will occur:

      Error: UPGRADE FAILED: cannot patch "cb-example" with kind CouchbaseCluster: CouchbaseCluster.couchbase.com "cb-example" is invalid: status.buckets[0].storageBackend: Required value 

      This error occurs because 2.3.x did not populate the Couchbase cluster status and in 2.4.x it is now required. The workaround for this behavior is to:

      • Set the following in the CouchbaseCluster resource `status.buckets[n].storageBackend=couchstore`

       

      Another workaround:

      • Upgrade Server to 7.1.x PRIOR to 2.4.x upgrade

       

      Attachments

        Issue Links

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

          Activity

            People

              abhi.bose Abhi Bose (Inactive)
              tommie Tommie McAfee (Inactive)
              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