Details
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