Details
-
Bug
-
Resolution: Unresolved
-
Major
-
2.7.0
-
Initial Couchbase Version : 7.2.5-7596
Kubernetes Version : v1.30.0
CAO and operator : 2.7.0 built locally
Environment : Kind cluster
-
19 - A Rock and a Hard Place
-
1
Description
Cluster Setup
- Kind cluster locally run on Mac
- 3 nodes with all services
- 1 bucket
- Cluster version : 7.2.5
Steps taken in the scenario
- Created a cluster
- Created a bucket
- Issued a deployment to change the bucket ram quota from 1048Mi to 4096Mi.
- The data service quota is just 2Gi
- Operator tries to change the bucket ram quota in a loop and fails - tracked in K8S-3579
- Post this tried to change the bucket ram quota back to 1Gi.
- Deployment fails
$kubectl apply -f /Users/raghavsk/couchbase-operator/example/couchbase-cluster-public.yaml |
|
Error from server: error when applying patch:
|
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"couchbase.com/v2\",\"kind\":\"CouchbaseBucket\",\"metadata\":{\"annotations\":{},\"name\":\"default\",\"namespace\":\"default\"},\"spec\":{\"evictionPolicy\":\"fullEviction\",\"memoryQuota\":\"1024Mi\",\"replicas\":2,\"storageBackend\":\"couchstore\"}}\n"}},"spec":{"memoryQuota":"1024Mi"}} |
to:
|
Resource: "couchbase.com/v2, Resource=couchbasebuckets", GroupVersionKind: "couchbase.com/v2, Kind=CouchbaseBucket" |
Name: "default", Namespace: "default" |
for: "/Users/raghavsk/couchbase-operator/example/couchbase-cluster-public.yaml": error when patching "/Users/raghavsk/couchbase-operator/example/couchbase-cluster-public.yaml": admission webhook "couchbase-operator-admission.default.svc" denied the request: validation failure list: |
bucket memory allocation (4Gi) exceeds data service quota (2Gi) on cluster cb-example
|
Operator logs:
https://cb-engineering.s3.amazonaws.com/K8S-3576/cbopinfo-20240717T102016+0530.tar.gz
Cluster logs:
https://cb-engineering.s3.amazonaws.com/K8S-3579/collectinfo-2024-07-17T045001-ns_1%40cb-example-0000.cb-example.default.svc.zip
https://cb-engineering.s3.amazonaws.com/K8S-3579/collectinfo-2024-07-17T045001-ns_1%40cb-example-0001.cb-example.default.svc.zip
https://cb-engineering.s3.amazonaws.com/K8S-3579/collectinfo-2024-07-17T045001-ns_1%40cb-example-0002.cb-example.default.svc.zip
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> |