Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
2.3.0, 2.3.1, 2.3.2
-
Security Level: Public
-
EKS, k8s 1.21, server 7.1.0-2556
-
5 - Kraken Bug Fixes/Docs
-
1
Description
When creating a cluster using operator 2.4.0-151 and server 7.1.0-2556 on k8s 1.21, I get
{{unexpected status code: request failed POST }}{{http://cb-example-perf-0000.cb-example-perf.default.svc:8091/controller/setAutoCompaction{{ 400 Bad Request: {"errors":{"allowedTimePeriod":"Start time must not be the}}}}
{{{{ same as end time"}}}}}}
AutoCompaction timeWindow is set to defaults here, but operator seem to be sending same time for start and end to the server.
Cluster Config:
apiVersion: couchbase.com/v2
kind: CouchbaseCluster
metadata:
creationTimestamp: "2022-11-02T08:30:35Z"
finalizers:
- foregroundDeletion
generation: 21
name: cb-example-perf
namespace: default
resourceVersion: "9389"
uid: dbf28fa5-ca65-4450-b604-04b2dfda4f8e
spec:
antiAffinity: true
backup:
image: registry.gitlab.com/cb-vanilla/operator-backup:latest
imagePullSecrets:- name: regcred
managed: true
nodeSelector:
NodeRoles: backups1
resources:
requests:
cpu: "24"
memory: 64Gi
serviceAccountName: couchbase-backup
buckets:
managed: true
cluster:
analyticsServiceMemoryQuota: 1Gi
autoCompaction:
databaseFragmentationThreshold:
percent: 100
parallelCompaction: true
timeWindow: {}
tombstonePurgeInterval: 72h0m0s
viewFragmentationThreshold:
percent: 30
autoFailoverMaxCount: 1
autoFailoverOnDataDiskIssues: true
autoFailoverOnDataDiskIssuesTimePeriod: 10s
autoFailoverServerGroup: true
autoFailoverTimeout: 30s
dataServiceMemoryQuota: 40Gi
eventingServiceMemoryQuota: 256Mi
indexServiceMemoryQuota: 10Gi
indexStorageSetting: memory_optimized
searchServiceMemoryQuota: 256Mi
image: registry.gitlab.com/cb-vanilla/server:7.1.0-2556
logging: {}
monitoring:
prometheus:
enabled: true
image: couchbase/exporter:1.0.7
refreshRate: 60
networking:
adminConsoleServiceType: NodePort
exposeAdminConsole: true
exposedFeatureServiceType: NodePort
exposedFeatures:- client
waitForAddressReachable: 10m0s
waitForAddressReachableDelay: 2m0s
security:
adminSecret: cb-example-auth
rbac:
managed: true
selector:
matchLabels:
cluster: cb-example-perf
servers:- name: data-query-index
pod:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
imagePullSecrets:- name: regcred
nodeSelector:
NodeRoles: couchbase1
index_enabled: "true"
kv_enabled: "true"
n1ql_enabled: "true"
resources: {}
services:- data
- query
- index
size: 4
volumeMounts:
default: data-query-index
volumeClaimTemplates:- metadata:
name: data-query-index
spec:
resources:
requests:
storage: 1000Gi
xdcr: {}
status:
allocations:- allocatedMemory: 50Gi
dataServiceAllocation: 40Gi
indexServiceAllocation: 10Gi
name: data-query-index
clusterId: a8e623984711643b26b4c532f6ab11e7
conditions:- lastTransitionTime: "2022-11-02T08:31:18Z"
lastUpdateTime: "2022-11-02T08:31:18Z"
message: The cluster is being created
reason: Creating
status: "False"
type: Available- lastTransitionTime: "2022-11-02T08:34:16Z"
lastUpdateTime: "2022-11-02T08:34:16Z"
message: Data is equally distributed across all nodes in the cluster
reason: Balanced
status: "True"
type: Balanced- lastTransitionTime: "2022-11-02T08:32:25Z"
lastUpdateTime: "2022-11-02T08:32:25Z"
message: The operator is attempting to scale the cluster
reason: ClusterScaling
status: "True"
type: Scaling- lastTransitionTime: "2022-11-02T08:32:25Z"
lastUpdateTime: "2022-11-02T08:32:25Z"
message: Scaling Server Class data-query-index from 1 to 4
reason: ScalingUp
status: "True"
type: ScalingUp- lastTransitionTime: "2022-11-02T08:34:31Z"
lastUpdateTime: "2022-11-02T08:38:11Z"
message: 'unexpected status code: request failed POST
http://cb-example-perf-0000.cb-example-perf.default.svc:8091/controller/setAutoCompaction
400 Bad Request: {"errors":{"allowedTimePeriod":"Start time must not be the
same as end time"}}'
reason: ErrorEncountered
status: "True"
type: Error
currentVersion: 7.1.0-2556
members:
ready:- cb-example-perf-0000
- cb-example-perf-0001
- cb-example-perf-0002
- cb-example-perf-0003
size: 4
{{}}
{{}}