bash test/kbcli/test_kbcli_0.9.sh --type 33 --version 0.9.5 --generate-output true --chaos-mesh true --drain-node true --random-namespace true --region eastus --cloud-provider aks CURRENT_TEST_DIR:test/kbcli source commons files source engines files source kubeblocks files `kubectl get namespace | grep ns-vvwwg ` `kubectl create namespace ns-vvwwg` namespace/ns-vvwwg created create namespace ns-vvwwg done download kbcli `gh release list --repo apecloud/kbcli --limit 100 | (grep "0.9" || true)` `curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash -s v0.9.5-beta.8` Your system is linux_amd64 Installing kbcli ... Downloading ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 56 32.1M 56 18.0M 0 0 141M 0 --:--:-- --:--:-- --:--:-- 141M 100 32.1M 100 32.1M 0 0 193M 0 --:--:-- --:--:-- --:--:-- 362M kbcli installed successfully. Kubernetes: v1.32.6 KubeBlocks: 0.9.5 kbcli: 0.9.5-beta.8 WARNING: version difference between kbcli (0.9.5-beta.8) and kubeblocks (0.9.5) Make sure your docker service is running and begin your journey with kbcli: kbcli playground init For more information on how to get started, please visit: https://kubeblocks.io download kbcli v0.9.5-beta.8 done Kubernetes: v1.32.6 KubeBlocks: 0.9.5 kbcli: 0.9.5-beta.8 WARNING: version difference between kbcli (0.9.5-beta.8) and kubeblocks (0.9.5) Kubernetes Env: v1.32.6 POD_RESOURCES: aks kb-default-sc found aks default-vsc found found default storage class: default kubeblocks version is:0.9.5 skip upgrade kubeblocks Error: no repositories to show helm repo add chaos-mesh https://charts.chaos-mesh.org "chaos-mesh" has been added to your repositories add helm chart repo chaos-mesh success chaos mesh already installed check cluster definition set component name:mariadb-compdef set component version No resources found no component version found unsupported component definition REPORT_COUNT 0:0 not found component version set replicas first:1 set replicas third:1 set minimum cmpv service version set minimum cmpv service version replicas:1 REPORT_COUNT:1 CLUSTER_TOPOLOGY: Not found topology in cluster definition mariadb LIMIT_CPU:0.1 LIMIT_MEMORY:0.5 storage size: 1 No resources found in ns-vvwwg namespace. termination_policy:DoNotTerminate create 1 replica DoNotTerminate mariadb cluster check cluster version check cluster definition `kbcli cluster create mariadb-sqkfay --termination-policy=DoNotTerminate --cluster-definition=mariadb --enable-all-logs=false --cluster-version=mariadb-10.6.15 --set cpu=100m,memory=0.5Gi,replicas=1,storage=1Gi --namespace ns-vvwwg ` Cluster mariadb-sqkfay created check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Sep 01,2025 11:19 UTC+0800 clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 cluster_status: cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating cluster_status:Creating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 100m / 100m 512Mi / 512Mi data:1Gi aks-cicdamdpool-15164480-vmss000000/10.224.0.5 Sep 01,2025 11:19 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check pod mariadb-sqkfay-mariadb-compdef-0 container_name mariadb-container exist password 59g9rk8w check pod mariadb-sqkfay-mariadb-compdef-0 container_name mysql-exporter exist password 59g9rk8w No container logs contain secret password. describe cluster `kbcli cluster describe mariadb-sqkfay --namespace ns-vvwwg ` Name: mariadb-sqkfay Created Time: Sep 01,2025 11:19 UTC+0800 NAMESPACE CLUSTER-DEFINITION VERSION STATUS TERMINATION-POLICY ns-vvwwg mariadb mariadb-10.6.15 Running DoNotTerminate Endpoints: COMPONENT MODE INTERNAL EXTERNAL mariadb-compdef ReadWrite mariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local:3306 Topology: COMPONENT INSTANCE ROLE STATUS AZ NODE CREATED-TIME mariadb-compdef mariadb-sqkfay-mariadb-compdef-0 Running 0 aks-cicdamdpool-15164480-vmss000000/10.224.0.5 Sep 01,2025 11:19 UTC+0800 Resources Allocation: COMPONENT DEDICATED CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE-SIZE STORAGE-CLASS mariadb-compdef false 100m / 100m 512Mi / 512Mi data:1Gi default Images: COMPONENT TYPE IMAGE mariadb-compdef mariadb-compdef docker.io/apecloud/mariadb:10.6.15 Data Protection: BACKUP-REPO AUTO-BACKUP BACKUP-SCHEDULE BACKUP-METHOD BACKUP-RETENTION RECOVERABLE-TIME Show cluster events: kbcli cluster list-events -n ns-vvwwg mariadb-sqkfay `kbcli cluster label mariadb-sqkfay app.kubernetes.io/instance- --namespace ns-vvwwg ` label "app.kubernetes.io/instance" not found. `kbcli cluster label mariadb-sqkfay app.kubernetes.io/instance=mariadb-sqkfay --namespace ns-vvwwg ` `kbcli cluster label mariadb-sqkfay --list --namespace ns-vvwwg ` NAME NAMESPACE LABELS mariadb-sqkfay ns-vvwwg app.kubernetes.io/instance=mariadb-sqkfay clusterdefinition.kubeblocks.io/name=mariadb clusterversion.kubeblocks.io/name=mariadb-10.6.15 label cluster app.kubernetes.io/instance=mariadb-sqkfay Success `kbcli cluster label case.name=kbcli.test1 -l app.kubernetes.io/instance=mariadb-sqkfay --namespace ns-vvwwg ` `kbcli cluster label mariadb-sqkfay --list --namespace ns-vvwwg ` NAME NAMESPACE LABELS mariadb-sqkfay ns-vvwwg app.kubernetes.io/instance=mariadb-sqkfay case.name=kbcli.test1 clusterdefinition.kubeblocks.io/name=mariadb clusterversion.kubeblocks.io/name=mariadb-10.6.15 label cluster case.name=kbcli.test1 Success `kbcli cluster label mariadb-sqkfay case.name=kbcli.test2 --overwrite --namespace ns-vvwwg ` `kbcli cluster label mariadb-sqkfay --list --namespace ns-vvwwg ` NAME NAMESPACE LABELS mariadb-sqkfay ns-vvwwg app.kubernetes.io/instance=mariadb-sqkfay case.name=kbcli.test2 clusterdefinition.kubeblocks.io/name=mariadb clusterversion.kubeblocks.io/name=mariadb-10.6.15 label cluster case.name=kbcli.test2 Success `kbcli cluster label mariadb-sqkfay case.name- --namespace ns-vvwwg ` `kbcli cluster label mariadb-sqkfay --list --namespace ns-vvwwg ` NAME NAMESPACE LABELS mariadb-sqkfay ns-vvwwg app.kubernetes.io/instance=mariadb-sqkfay clusterdefinition.kubeblocks.io/name=mariadb clusterversion.kubeblocks.io/name=mariadb-10.6.15 delete cluster label case.name Success cluster connect `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: `echo "echo \"show status like 'wsrep%';\" | mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash ` Defaulted container "mariadb-container" out of: mariadb-container, mysql-exporter Unable to use a TTY - input is not a terminal or the right kind of file Variable_name Value wsrep 0 wsrep_applier_thread_count 0 wsrep_cluster_capabilities wsrep_cluster_conf_id 18446744073709551615 wsrep_cluster_size 0 wsrep_cluster_state_uuid wsrep_cluster_status Disconnected wsrep_connected OFF wsrep_local_bf_aborts 0 wsrep_local_index 18446744073709551615 wsrep_provider_capabilities wsrep_provider_name wsrep_provider_vendor wsrep_provider_version wsrep_ready OFF wsrep_rollbacker_thread_count 0 wsrep_thread_count 0 connect cluster Success `kubectl get pvc -l app.kubernetes.io/instance=mariadb-sqkfay,apps.kubeblocks.io/component-name=mariadb-compdef,apps.kubeblocks.io/vct-name=data --namespace ns-vvwwg ` cluster volume-expand check cluster status before ops check cluster status done cluster_status:Running No resources found in mariadb-sqkfay namespace. `kbcli cluster volume-expand mariadb-sqkfay --auto-approve --force=true --components mariadb-compdef --volume-claim-templates data --storage 4Gi --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-volumeexpansion-xp24b created successfully, you can view the progress: kbcli cluster describe-ops mariadb-sqkfay-volumeexpansion-xp24b -n ns-vvwwg check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-volumeexpansion-xp24b ns-vvwwg VolumeExpansion mariadb-sqkfay mariadb-compdef Pending -/- Sep 01,2025 11:23 UTC+0800 ops_status:mariadb-sqkfay-volumeexpansion-xp24b ns-vvwwg VolumeExpansion mariadb-sqkfay mariadb-compdef Creating -/- Sep 01,2025 11:23 UTC+0800 check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Updating Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 100m / 100m 512Mi / 512Mi data:4Gi aks-cicdamdpool-15164480-vmss000000/10.224.0.5 Sep 01,2025 11:19 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done No resources found in mariadb-sqkfay namespace. check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-volumeexpansion-xp24b ns-vvwwg VolumeExpansion mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:23 UTC+0800 check ops status done ops_status:mariadb-sqkfay-volumeexpansion-xp24b ns-vvwwg VolumeExpansion mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:23 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mariadb-sqkfay-volumeexpansion-xp24b --namespace ns-vvwwg ` opsrequest.apps.kubeblocks.io/mariadb-sqkfay-volumeexpansion-xp24b patched `kbcli cluster delete-ops --name mariadb-sqkfay-volumeexpansion-xp24b --force --auto-approve --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-volumeexpansion-xp24b deleted cluster stop check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster stop mariadb-sqkfay --auto-approve --force=true --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-stop-4lkgl created successfully, you can view the progress: kbcli cluster describe-ops mariadb-sqkfay-stop-4lkgl -n ns-vvwwg check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-stop-4lkgl ns-vvwwg Stop mariadb-sqkfay Sep 01,2025 11:29 UTC+0800 ops_status:mariadb-sqkfay-stop-4lkgl ns-vvwwg Stop mariadb-sqkfay Creating -/- Sep 01,2025 11:29 UTC+0800 ops_status:mariadb-sqkfay-stop-4lkgl ns-vvwwg Stop mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:29 UTC+0800 ops Stop Succeed or Failed Soon check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Stopped Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 check cluster status done cluster_status:Stopped check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME check pod status done check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-stop-4lkgl ns-vvwwg Stop mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:29 UTC+0800 check ops status done ops_status:mariadb-sqkfay-stop-4lkgl ns-vvwwg Stop mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:29 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mariadb-sqkfay-stop-4lkgl --namespace ns-vvwwg ` opsrequest.apps.kubeblocks.io/mariadb-sqkfay-stop-4lkgl patched `kbcli cluster delete-ops --name mariadb-sqkfay-stop-4lkgl --force --auto-approve --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-stop-4lkgl deleted cluster start check cluster status before ops check cluster status done cluster_status:Stopped `kbcli cluster start mariadb-sqkfay --force=true --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-start-vz6pj created successfully, you can view the progress: kbcli cluster describe-ops mariadb-sqkfay-start-vz6pj -n ns-vvwwg check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-start-vz6pj ns-vvwwg Start mariadb-sqkfay Pending -/- Sep 01,2025 11:30 UTC+0800 ops_status:mariadb-sqkfay-start-vz6pj ns-vvwwg Start mariadb-sqkfay Creating -/- Sep 01,2025 11:30 UTC+0800 check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Updating Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 100m / 100m 512Mi / 512Mi data:4Gi aks-cicdamdpool-15164480-vmss000005/10.224.0.6 Sep 01,2025 11:30 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-start-vz6pj ns-vvwwg Start mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:30 UTC+0800 check ops status done ops_status:mariadb-sqkfay-start-vz6pj ns-vvwwg Start mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:30 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mariadb-sqkfay-start-vz6pj --namespace ns-vvwwg ` opsrequest.apps.kubeblocks.io/mariadb-sqkfay-start-vz6pj patched `kbcli cluster delete-ops --name mariadb-sqkfay-start-vz6pj --force --auto-approve --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-start-vz6pj deleted `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: apiVersion: v1 kind: Pod metadata: name: benchtest-mariadb-sqkfay namespace: ns-vvwwg spec: containers: - name: test-sysbench imagePullPolicy: IfNotPresent image: docker.io/apecloud/customsuites:latest env: - name: TYPE value: "2" - name: FLAG value: "0" - name: CONFIGS value: "mode:all,driver:mysql,host:mariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local,user:root,password:59g9rk8w,port:3306,db:benchtest,tables:5,threads:4,times:10,size:1000,type:oltp_read_write" restartPolicy: Never `kubectl apply -f benchtest-mariadb-sqkfay.yaml` pod/benchtest-mariadb-sqkfay created apply benchtest-mariadb-sqkfay.yaml Success check pod status pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 0/1 ContainerCreating 0 0s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 0/1 ContainerCreating 0 4s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 0/1 ContainerCreating 0 10s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 0/1 ContainerCreating 0 15s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 1/1 Running 0 20s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 1/1 Running 0 25s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 1/1 Running 0 30s check pod benchtest-mariadb-sqkfay status done pod_status:NAME READY STATUS RESTARTS AGE benchtest-mariadb-sqkfay 0/1 Completed 0 35s `rm -rf benchtest-mariadb-sqkfay.yaml` `kubectl logs benchtest-mariadb-sqkfay --tail 30 --namespace ns-vvwwg ` [ 7s ] thds: 4 tps: 49.02 qps: 972.41 (r/w/o: 682.29/192.08/98.04) lat (ms,99%): 200.47 err/s: 0.00 reconn/s: 0.00 [ 8s ] thds: 4 tps: 43.98 qps: 887.61 (r/w/o: 619.73/179.92/87.96) lat (ms,99%): 196.89 err/s: 0.00 reconn/s: 0.00 [ 9s ] thds: 4 tps: 47.02 qps: 940.47 (r/w/o: 658.33/188.09/94.05) lat (ms,99%): 106.75 err/s: 0.00 reconn/s: 0.00 [ 10s ] thds: 4 tps: 47.00 qps: 940.10 (r/w/o: 658.07/188.02/94.01) lat (ms,99%): 104.84 err/s: 0.00 reconn/s: 0.00 SQL statistics: queries performed: read: 6118 write: 1748 other: 874 total: 8740 transactions: 437 (43.67 per sec.) queries: 8740 (873.44 per sec.) ignored errors: 0 (0.00 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 10.0044s total number of events: 437 Latency (ms): min: 3.65 avg: 91.55 max: 296.28 99th percentile: 200.47 sum: 40008.89 Threads fairness: events (avg/stddev): 109.2500/1.48 execution time (avg/stddev): 10.0022/0.00 `kubectl delete pod benchtest-mariadb-sqkfay --force --namespace ns-vvwwg ` Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. pod "benchtest-mariadb-sqkfay" force deleted cluster vscale check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster vscale mariadb-sqkfay --auto-approve --force=true --components mariadb-compdef --cpu 200m --memory 0.6Gi --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-verticalscaling-xtw6q created successfully, you can view the progress: kbcli cluster describe-ops mariadb-sqkfay-verticalscaling-xtw6q -n ns-vvwwg check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-verticalscaling-xtw6q ns-vvwwg VerticalScaling mariadb-sqkfay mariadb-compdef Pending -/- Sep 01,2025 11:43 UTC+0800 ops_status:mariadb-sqkfay-verticalscaling-xtw6q ns-vvwwg VerticalScaling mariadb-sqkfay mariadb-compdef Creating -/- Sep 01,2025 11:43 UTC+0800 check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Running Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 200m / 200m 644245094400m / 644245094400m data:4Gi aks-cicdamdpool-15164480-vmss000005/10.224.0.6 Sep 01,2025 11:43 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-verticalscaling-xtw6q ns-vvwwg VerticalScaling mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:43 UTC+0800 check ops status done ops_status:mariadb-sqkfay-verticalscaling-xtw6q ns-vvwwg VerticalScaling mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:43 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mariadb-sqkfay-verticalscaling-xtw6q --namespace ns-vvwwg ` opsrequest.apps.kubeblocks.io/mariadb-sqkfay-verticalscaling-xtw6q patched `kbcli cluster delete-ops --name mariadb-sqkfay-verticalscaling-xtw6q --force --auto-approve --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-verticalscaling-xtw6q deleted cluster restart check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster restart mariadb-sqkfay --auto-approve --force=true --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-restart-kdhmw created successfully, you can view the progress: kbcli cluster describe-ops mariadb-sqkfay-restart-kdhmw -n ns-vvwwg check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-restart-kdhmw ns-vvwwg Restart mariadb-sqkfay mariadb-compdef Creating -/- Sep 01,2025 11:44 UTC+0800 check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 DoNotTerminate Running Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 200m / 200m 644245094400m / 644245094400m data:4Gi aks-cicdamdpool-15164480-vmss000005/10.224.0.6 Sep 01,2025 11:44 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done check ops status `kbcli cluster list-ops mariadb-sqkfay --status all --namespace ns-vvwwg ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mariadb-sqkfay-restart-kdhmw ns-vvwwg Restart mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:44 UTC+0800 check ops status done ops_status:mariadb-sqkfay-restart-kdhmw ns-vvwwg Restart mariadb-sqkfay mariadb-compdef Succeed 1/1 Sep 01,2025 11:44 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mariadb-sqkfay-restart-kdhmw --namespace ns-vvwwg ` opsrequest.apps.kubeblocks.io/mariadb-sqkfay-restart-kdhmw patched `kbcli cluster delete-ops --name mariadb-sqkfay-restart-kdhmw --force --auto-approve --namespace ns-vvwwg ` OpsRequest mariadb-sqkfay-restart-kdhmw deleted cluster update terminationPolicy WipeOut `kbcli cluster update mariadb-sqkfay --termination-policy=WipeOut --namespace ns-vvwwg ` cluster.apps.kubeblocks.io/mariadb-sqkfay updated check cluster status `kbcli cluster list mariadb-sqkfay --show-labels --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mariadb-sqkfay ns-vvwwg mariadb mariadb-10.6.15 WipeOut Running Sep 01,2025 11:19 UTC+0800 app.kubernetes.io/instance=mariadb-sqkfay,clusterdefinition.kubeblocks.io/name=mariadb,clusterversion.kubeblocks.io/name=mariadb-10.6.15 check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mariadb-sqkfay --namespace ns-vvwwg ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mariadb-sqkfay-mariadb-compdef-0 ns-vvwwg mariadb-sqkfay mariadb-compdef Running 0 200m / 200m 644245094400m / 644245094400m data:4Gi aks-cicdamdpool-15164480-vmss000005/10.224.0.6 Sep 01,2025 11:44 UTC+0800 check pod status done `kubectl get secrets -l app.kubernetes.io/instance=mariadb-sqkfay` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.username***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.password***"` `kubectl get secrets mariadb-sqkfay-conn-credential -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:59g9rk8w;DB_PORT:3306;DB_DATABASE: check cluster connect `echo "mysql -P3306 -hmariadb-sqkfay-mariadb-compdef.ns-vvwwg.svc.cluster.local -uroot -p'59g9rk8w'" | kubectl exec -it mariadb-sqkfay-mariadb-compdef-0 --namespace ns-vvwwg -- bash` check cluster connect done cluster list-logs `kbcli cluster list-logs mariadb-sqkfay --namespace ns-vvwwg ` No log files found. You can enable the log feature with the kbcli command below. kbcli cluster update mariadb-sqkfay --enable-all-logs=true --namespace ns-vvwwg Error from server (NotFound): pods "mariadb-sqkfay-mariadb-compdef-0" not found cluster logs `kbcli cluster logs mariadb-sqkfay --tail 30 --namespace ns-vvwwg ` Defaulted container "mariadb-container" out of: mariadb-container, mysql-exporter 2025-09-01 03:44:05+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.15+maria~ubu2004 started. 2025-09-01 03:44:06+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2025-09-01 03:44:06+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.15+maria~ubu2004 started. 2025-09-01 03:44:07+00:00 [Note] [Entrypoint]: MariaDB upgrade not required 2025-09-01 3:44:07 0 [Note] Starting MariaDB 10.6.15-MariaDB-1:10.6.15+maria~ubu2004 source revision 0d16eb35bc981023ce2f4912e8ecde68ca381f4e as process 1 2025-09-01 3:44:08 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-09-01 3:44:08 0 [Note] InnoDB: Using transactional memory 2025-09-01 3:44:08 0 [Note] InnoDB: Number of pools: 1 2025-09-01 3:44:08 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2025-09-01 3:44:08 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) 2025-09-01 3:44:08 0 [Note] InnoDB: Using Linux native AIO 2025-09-01 3:44:08 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2025-09-01 3:44:08 0 [Note] InnoDB: Completed initialization of buffer pool 2025-09-01 3:44:08 0 [Note] InnoDB: 128 rollback segments are active. 2025-09-01 3:44:08 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-09-01 3:44:08 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-09-01 3:44:08 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2025-09-01 3:44:08 0 [Note] InnoDB: 10.6.15 started; log sequence number 2157499; transaction id 978 2025-09-01 3:44:08 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2025-09-01 3:44:08 0 [Note] Plugin 'FEEDBACK' is disabled. 2025-09-01 3:44:08 0 [Note] InnoDB: Buffer pool(s) load completed at 250901 3:44:08 Warning: 1 3:44:08 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work. 2025-09-01 3:44:08 0 [Note] Server socket created on IP: '0.0.0.0'. 2025-09-01 3:44:08 0 [Note] Server socket created on IP: '::'. 2025-09-01 3:44:08 0 [Note] mariadbd: ready for connections. Version: '10.6.15-MariaDB-1:10.6.15+maria~ubu2004' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution delete cluster mariadb-sqkfay `kbcli cluster delete mariadb-sqkfay --auto-approve --namespace ns-vvwwg ` Cluster mariadb-sqkfay deleted pod_info:mariadb-sqkfay-mariadb-compdef-0 2/2 Running 0 19s No resources found in ns-vvwwg namespace. delete cluster pod done No resources found in ns-vvwwg namespace. check cluster resource non-exist OK: pvc No resources found in ns-vvwwg namespace. delete cluster done No resources found in ns-vvwwg namespace. No resources found in ns-vvwwg namespace. No resources found in ns-vvwwg namespace. Mariadb Test Suite All Done! --------------------------------------Mariadb (Topology = Replicas 1) Test Result-------------------------------------- [PASSED]|[Create]|[ClusterDefinition=mariadb;ClusterVersion=mariadb-10.6.15;]|[Description=Create a cluster with the specified cluster definition mariadb and cluster version mariadb-10.6.15] [PASSED]|[Connect]|[ComponentName=mariadb-compdef]|[Description=Connect to the cluster] [PASSED]|[VolumeExpansion]|[ComponentName=mariadb-compdef]|[Description=VolumeExpansion the cluster specify component mariadb-compdef] [WARNING]|[Operation]|[Succeed Or Failed Soon]|[Description=-] [PASSED]|[Stop]|[-]|[Description=Stop the cluster] [PASSED]|[Start]|[-]|[Description=Start the cluster] [PASSED]|[Bench]|[ComponentName=mariadb-compdef]|[Description=Bench the cluster service with mariadb-compdef component] [PASSED]|[VerticalScaling]|[ComponentName=mariadb-compdef]|[Description=VerticalScaling the cluster specify component mariadb-compdef] [PASSED]|[Restart]|[-]|[Description=Restart the cluster] [PASSED]|[Update]|[TerminationPolicy=WipeOut]|[Description=Update the cluster TerminationPolicy WipeOut] [PASSED]|[Delete]|[-]|[Description=Delete the cluster] [END]