kubeblocks
kubeblocks copied to clipboard
[BUG] Polardbx cmpds are unavailable
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior: When deploying the addon polardbx on kb-1.0.0-alpha.1, see error release status:
kb-addon-polardbx kb-system 1 2024-08-06 10:36:31.25063 +0800 CST deployed polardbx-1.0.0-alpha.0 v2.3
cmpd status
k get cmpd -l app.kubernetes.io/instance=kb-addon-polardbx
NAME SERVICE SERVICE-VERSION STATUS AGE
polardbx-cdc-1.0.0-alpha.0 polardbx v2.3 Unavailable 4h46m
polardbx-cn-1.0.0-alpha.0 polardbx v2.3 Unavailable 4h46m
polardbx-dn-1.0.0-alpha.0 polardbx v2.3 Unavailable 4h46m
polardbx-gms-1.0.0-alpha.0 polardbx v2.3 Unavailable 4h46m
describe cmpd
k describe cmpd polardbx-cdc-1.0.0-alpha.0
Name: polardbx-cdc-1.0.0-alpha.0
Namespace:
Labels: app.kubernetes.io/instance=kb-addon-polardbx
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=polardbx
app.kubernetes.io/version=v2.3
helm.sh/chart=polardbx-1.0.0-alpha.0
Annotations: meta.helm.sh/release-name: kb-addon-polardbx
meta.helm.sh/release-namespace: kb-system
API Version: apps.kubeblocks.io/v1alpha1
Kind: ComponentDefinition
Metadata:
Creation Timestamp: 2024-08-06T02:36:36Z
Finalizers:
componentdefinition.kubeblocks.io/finalizer
Generation: 2
Resource Version: 28603728
UID: a6e88572-edc6-4e0d-bcb2-03533a455bde
Spec:
Description: PolarDB-X is a cloud native distributed SQL Database designed for high concurrency, massive storage, complex querying scenarios.
Min Ready Seconds: 0
Provider: Community
Runtime:
Containers:
Env:
Name: switchCloud
Value: aliyun
Name: cluster_id
Value: $(KB_CLUSTER_NAME)
Name: ins_id
Value From:
Field Ref:
API Version: v1
Field Path: metadata.name
Name: daemonPort
Value: 3300
Name: common_ports
Value: {"cdc1_port":"3009","cdc3_port":"3011","cdc2_port":"3010","cdc6_port":"3014","cdc5_port":"3013","cdc4_port":"3012"}
Name: metaDb_url
Value: jdbc:mysql://$(GMS_SVC_NAME):$(GMS_SVC_PORT)/polardbx_meta_db?useSSL=false
Name: polarx_url
Value: jdbc:mysql://$(CN_SVC_NAME):$(CN_SVC_PORT)/__cdc__?useSSL=false
Name: metaDb_username
Value: $(SERVICE_USER)
Name: metaDb_password
Value: $(SERVICE_PASSWORD)
Name: polarx_username
Value: $(SERVICE_USER)
Name: polarx_password
Value: $(SERVICE_PASSWORD)
Name: metaDbNonEncPasswd
Value: $(SERVICE_PASSWORD)
Name: dnPasswordKey
Value: $(metaDbNonEncPasswd)$(metaDbNonEncPasswd)
Name: cpu_cores
Value From:
Resource Field Ref:
Container Name: engine
Divisor: 0
Resource: limits.cpu
Name: mem_size
Value From:
Resource Field Ref:
Container Name: engine
Divisor: 1M
Resource: limits.memory
Name: disk_size
Value: 10240
Name: disk_quota
Value: 10240
Image: docker.io/polardbx/polardbx-cdc:5.4.18-20231101115000
Image Pull Policy: IfNotPresent
Name: engine
Resources:
Volume Mounts:
Mount Path: /home/admin/binlog
Name: binlog
Mount Path: /home/admin/logs
Name: log
Args:
-web.listen-addr=:9104
-web.metrics-path=/metrics
-target.port=3007
-target.type=CDC
Env:
Name: GOMAXPROCS
Value: 1
Image: docker.io/polardbx/polardbx-exporter:v1.5.0
Image Pull Policy: IfNotPresent
Name: exporter
Ports:
Container Port: 9104
Name: metrics
Protocol: TCP
Resources:
Init Containers:
Command:
bin/sh
-c
until mysql -h$CN_SVC_NAME -P$CN_SVC_PORT -u$polarx_username -p$polarx_password -e 'select 1'; do
sleep 1;
echo "cn is not ready"
done
Env:
Name: polarx_username
Value: $(SERVICE_USER)
Name: polarx_password
Value: $(SERVICE_PASSWORD)
Image: docker.io/mysql:8.0.30
Image Pull Policy: IfNotPresent
Name: wait-cn-ready
Resources:
Scripts:
Default Mode: 365
Name: polardbx-scripts
Namespace: kb-system
Template Ref: polardbx-scripts
Volume Name: scripts
Service Kind: polardbx
Service Version: v2.3
Update Strategy: Serial
Vars:
Name: SERVICE_USER
Value: polardbx_root
Name: SERVICE_PASSWORD
Value From:
Credential Var Ref:
Comp Def: polardbx-gms
Name: polardbx_root
Optional: false
Password: Required
Name: GMS_SVC_NAME
Value From:
Service Var Ref:
Comp Def: polardbx-gms
Host: Required
Optional: false
Name: GMS_SVC_PORT
Value From:
Service Var Ref:
Comp Def: polardbx-gms
Optional: false
Port:
Name: mysql
Option: Required
Name: CN_SVC_NAME
Value From:
Service Var Ref:
Comp Def: polardbx-cn
Host: Required
Optional: false
Name: CN_SVC_PORT
Value From:
Service Var Ref:
Comp Def: polardbx-cn
Optional: false
Port:
Name: mysql
Option: Required
Status:
Message: illegal version string "v2.3"
Observed Generation: 2
Phase: Unavailable
Events: <none>
It seems that the cmpd's service-version is illegal.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.