Details
-
Bug
-
Resolution: Unresolved
-
Major
-
2.7.0
-
Initial Couchbase Version : 7.2.5-7596
Upgraded Couchbase Version : 7.6.1-3200
Kubernetes Version : v1.30.0
CAO and operator : 2.7.0 built locally
Environment : Kind cluster
-
18 -Lost to Eternity
-
1
Description
Cluster Setup
- Kind cluster locally run on Mac
- 3 nodes with all services
- 1 bucket
- Initial cluster version : 7.2.5
- Upgrade cluster version : 7.6.1
Steps taken in the scenario
- Created a cluster
- Issued an upgrade from 7.2.5-7596 to 7.6.1-3200
- Swap rebalance upgrade takes place.
- Upgrade goes through fine
- Post upgrade issued a deployment to downgrade back to 7.2.5
- The deployment fails as expected but with an incorrect error message
Error from server: error when applying patch:
|
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"couchbase.com/v2\",\"kind\":\"CouchbaseCluster\",\"metadata\":{\"annotations\":{},\"name\":\"cb-example\",\"namespace\":\"default\"},\"spec\":{\"buckets\":{\"managed\":true},\"image\":\"couchbase/server:7.2.5\",\"security\":{\"adminSecret\":\"cb-example-auth\",\"rbac\":{\"managed\":true}},\"servers\":[{\"name\":\"all_services\",\"services\":[\"data\",\"index\",\"query\",\"search\",\"eventing\",\"analytics\"],\"size\":3}],\"upgradeProcess\":\"DeltaRecovery\"}}\n"}},"spec":{"image":"couchbase/server:7.2.5","servers":[{"name":"all_services","services":["data","index","query","search","eventing","analytics"],"size":3}]}} |
to:
|
Resource: "couchbase.com/v2, Resource=couchbaseclusters", GroupVersionKind: "couchbase.com/v2, Kind=CouchbaseCluster" |
Name: "cb-example", Namespace: "default" |
for: "example/couchbase-cluster.yaml": error when patching "example/couchbase-cluster.yaml": admission webhook "couchbase-operator-admission.default.svc" denied the request: validation failure list: |
cannot upgrade from 7.6.1 to 7.2.5. Version must be less than 8.6.1. |
The lines cannot upgrade from 7.6.1 to 7.2.5. Version must be less than 8.6.1. is incorrect. Version 7.2.5 is less than 8.6.1 and that is not the reason why downgrade cannot proceed.
The cao tool and operator images were built locally on this commit
commit e00cf70597dbc0a7422c82f0efd0a1a28f75bfcd (HEAD -> master, origin/master, origin/HEAD)
|
Author: usamah jassat <usamah.jassat@couchbase.com> |
Date: Thu Jul 11 15:55:19 2024 +0100 K8S-3564: fix TestServerGroupRescheduling when more SGs |
|
Change-Id: I13dabc775ad8f47e6f9f89b3445a19a4dd28112e
|
Reviewed-on: https://review.couchbase.org/c/couchbase-operator/+/212585 |
Reviewed-by: Justin Ashworth <justin.ashworth@couchbase.com> |
Tested-by: Build Bot <build@couchbase.com> |
Attachments
Gerrit Reviews
For Gerrit Dashboard: K8S-3577 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
215704,1 | K8S-3577: Add message for attempted downgrade errors | master | couchbase-operator | Status: NEW | 0 | +1 |