bash test/kbcli/test_kbcli_0.9.sh --type 21 --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-yknsj ` `kubectl create namespace ns-yknsj` namespace/ns-yknsj created create namespace ns-yknsj 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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 32.1M 100 32.1M 0 0 73.2M 0 --:--:-- --:--:-- --:--:-- 73.2M 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:mysql set component version set component version:mysql set service versions:5.7.44,8.0.30,8.0.31,8.0.32,8.0.33,8.0.34,8.0.35,8.0.36,8.0.37,8.0.38,8.0.39,8.4.0,8.4.1,8.4.2 set service versions sorted:5.7.44,8.0.30,8.0.31,8.0.32,8.0.33,8.0.34,8.0.35,8.0.36,8.0.37,8.0.38,8.0.39,8.4.0,8.4.1,8.4.2 unsupported component definition REPORT_COUNT 0:0 set replicas first:2,5.7.44|2,8.0.30|2,8.0.31|2,8.0.32|2,8.0.33|2,8.0.34|2,8.0.35|2,8.0.36|2,8.0.37|2,8.0.38|2,8.0.39|2,8.4.0|2,8.4.1|2,8.4.2 set replicas third:2,8.0.30 set replicas fourth:2,8.0.30 set minimum cmpv service version set minimum cmpv service version replicas:2,8.0.30 REPORT_COUNT:1 CLUSTER_TOPOLOGY:replication topology replication found in cluster definition mysql LIMIT_CPU:0.1 LIMIT_MEMORY:0.5 storage size: 10 No resources found in ns-yknsj namespace. termination_policy:Halt create 2 replica Halt mysql cluster check cluster version check cluster definition check component definition set component definition by component version check cmpd by labels set component definition1: mysql-8.0 by component version:mysql apiVersion: apps.kubeblocks.io/v1alpha1 kind: Cluster metadata: name: mysql-qznsyf namespace: ns-yknsj spec: clusterDefinitionRef: mysql topology: replication terminationPolicy: Halt componentSpecs: - name: mysql serviceVersion: 8.0.30 replicas: 2 resources: requests: cpu: 100m memory: 0.5Gi limits: cpu: 100m memory: 0.5Gi volumeClaimTemplates: - name: data spec: storageClassName: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi `kubectl apply -f test_create_mysql-qznsyf.yaml` cluster.apps.kubeblocks.io/mysql-qznsyf created apply test_create_mysql-qznsyf.yaml Success `rm -rf test_create_mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Sep 01,2025 11:23 UTC+0800 clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql check pod mysql-qznsyf-mysql-0 container_name mysql exist password c5zVze3x6s22594B check pod mysql-qznsyf-mysql-0 container_name lorry exist password c5zVze3x6s22594B check pod mysql-qznsyf-mysql-0 container_name config-manager exist password c5zVze3x6s22594B No container logs contain secret password. describe cluster `kbcli cluster describe mysql-qznsyf --namespace ns-yknsj ` Name: mysql-qznsyf Created Time: Sep 01,2025 11:23 UTC+0800 NAMESPACE CLUSTER-DEFINITION VERSION STATUS TERMINATION-POLICY ns-yknsj mysql Running Halt Endpoints: COMPONENT MODE INTERNAL EXTERNAL mysql ReadWrite mysql-qznsyf-mysql.ns-yknsj.svc.cluster.local:3306 Topology: COMPONENT INSTANCE ROLE STATUS AZ NODE CREATED-TIME mysql mysql-qznsyf-mysql-0 primary Running 0 aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql mysql-qznsyf-mysql-1 secondary Running 0 aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 Resources Allocation: COMPONENT DEDICATED CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE-SIZE STORAGE-CLASS mysql false 100m / 100m 512Mi / 512Mi data:10Gi default Images: COMPONENT TYPE IMAGE mysql docker.io/apecloud/mysql:8.0.30 Data Protection: BACKUP-REPO AUTO-BACKUP BACKUP-SCHEDULE BACKUP-METHOD BACKUP-RETENTION RECOVERABLE-TIME Show cluster events: kbcli cluster list-events -n ns-yknsj mysql-qznsyf `kbcli cluster label mysql-qznsyf app.kubernetes.io/instance- --namespace ns-yknsj ` label "app.kubernetes.io/instance" not found. `kbcli cluster label mysql-qznsyf app.kubernetes.io/instance=mysql-qznsyf --namespace ns-yknsj ` `kbcli cluster label mysql-qznsyf --list --namespace ns-yknsj ` NAME NAMESPACE LABELS mysql-qznsyf ns-yknsj app.kubernetes.io/instance=mysql-qznsyf clusterdefinition.kubeblocks.io/name=mysql clusterversion.kubeblocks.io/name= label cluster app.kubernetes.io/instance=mysql-qznsyf Success `kbcli cluster label case.name=kbcli.test1 -l app.kubernetes.io/instance=mysql-qznsyf --namespace ns-yknsj ` `kbcli cluster label mysql-qznsyf --list --namespace ns-yknsj ` NAME NAMESPACE LABELS mysql-qznsyf ns-yknsj app.kubernetes.io/instance=mysql-qznsyf case.name=kbcli.test1 clusterdefinition.kubeblocks.io/name=mysql clusterversion.kubeblocks.io/name= label cluster case.name=kbcli.test1 Success `kbcli cluster label mysql-qznsyf case.name=kbcli.test2 --overwrite --namespace ns-yknsj ` `kbcli cluster label mysql-qznsyf --list --namespace ns-yknsj ` NAME NAMESPACE LABELS mysql-qznsyf ns-yknsj app.kubernetes.io/instance=mysql-qznsyf case.name=kbcli.test2 clusterdefinition.kubeblocks.io/name=mysql clusterversion.kubeblocks.io/name= label cluster case.name=kbcli.test2 Success `kbcli cluster label mysql-qznsyf case.name- --namespace ns-yknsj ` `kbcli cluster label mysql-qznsyf --list --namespace ns-yknsj ` NAME NAMESPACE LABELS mysql-qznsyf ns-yknsj app.kubernetes.io/instance=mysql-qznsyf clusterdefinition.kubeblocks.io/name=mysql clusterversion.kubeblocks.io/name= delete cluster label case.name Success cluster connect Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. *************************** 1. row *************************** Slave_IO_State: Waiting for source to send event Master_Host: mysql-qznsyf-mysql-0.mysql-qznsyf-mysql-headless Master_User: kbreplicator Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-qznsyf-mysql-0-bin.000003 Read_Master_Log_Pos: 16317 Relay_Log_File: relay-bin.000002 Relay_Log_Pos: 16162 Relay_Master_Log_File: mysql-qznsyf-mysql-0-bin.000003 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 15916 Relay_Log_Space: 16767 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 Master_UUID: 9de7a670-86e3-11f0-9ad2-9e44d17ec699 Master_Info_File: mysql.slave_master_info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Replica has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 9de7a670-86e3-11f0-9ad2-9e44d17ec699:1-43 Executed_Gtid_Set: 9de7a670-86e3-11f0-9ad2-9e44d17ec699:1-43 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: Master_public_key_path: Get_master_public_key: 0 Network_Namespace: `echo 'show variables like "max_connections";' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Variable_name Value max_connections 83 connect cluster Success set max_connections to 83 insert batch data by db client Error from server (NotFound): pods "test-db-client-executionloop-mysql-qznsyf" not found DB_CLIENT_BATCH_DATA_COUNT: `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge pods test-db-client-executionloop-mysql-qznsyf --namespace ns-yknsj ` Error from server (NotFound): pods "test-db-client-executionloop-mysql-qznsyf" not found 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. Error from server (NotFound): pods "test-db-client-executionloop-mysql-qznsyf" not found `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql No resources found in ns-yknsj namespace. apiVersion: v1 kind: Pod metadata: name: test-db-client-executionloop-mysql-qznsyf namespace: ns-yknsj spec: containers: - name: test-dbclient imagePullPolicy: IfNotPresent image: docker.io/apecloud/dbclient:test args: - "--host" - ".ns-yknsj.svc.cluster.local" - "--user" - "root" - "--password" - "c5zVze3x6s22594B" - "--port" - "3306" - "--dbtype" - "mysql" - "--test" - "executionloop" - "--duration" - "60" - "--interval" - "1" restartPolicy: Never `kubectl apply -f test-db-client-executionloop-mysql-qznsyf.yaml` pod/test-db-client-executionloop-mysql-qznsyf created apply test-db-client-executionloop-mysql-qznsyf.yaml Success `rm -rf test-db-client-executionloop-mysql-qznsyf.yaml` check pod status pod_status:NAME READY STATUS RESTARTS AGE test-db-client-executionloop-mysql-qznsyf 1/1 Running 0 5s pod_status:NAME READY STATUS RESTARTS AGE test-db-client-executionloop-mysql-qznsyf 1/1 Running 0 9s check pod test-db-client-executionloop-mysql-qznsyf status done pod_status:NAME READY STATUS RESTARTS AGE test-db-client-executionloop-mysql-qznsyf 0/1 Completed 0 15s check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done --host .ns-yknsj.svc.cluster.local --user root --password c5zVze3x6s22594B --port 3306 --dbtype mysql --test executionloop --duration 60 --interval 1 SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider] Failed to connect to MySQL database: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Trying with database MySQL. Test execution failed: Failed to connect to MySQL database: java.io.IOException: Failed to connect to MySQL database: at com.apecloud.dbtester.tester.MySQLTester.connect(MySQLTester.java:65) at com.apecloud.dbtester.commons.TestExecutor.executeTest(TestExecutor.java:29) at OneClient.executeTest(OneClient.java:108) at OneClient.main(OneClient.java:40) Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:829) at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:449) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:242) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) at java.sql/java.sql.DriverManager.getConnection(Unknown Source) at java.sql/java.sql.DriverManager.getConnection(Unknown Source) at com.apecloud.dbtester.tester.MySQLTester.connect(MySQLTester.java:63) ... 3 more Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) at com.mysql.cj.NativeSession.connect(NativeSession.java:120) at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:949) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819) ... 9 more Caused by: java.net.UnknownHostException: .ns-yknsj.svc.cluster.local at java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source) at java.base/java.net.InetAddress.getAllByName0(Unknown Source) at java.base/java.net.InetAddress.getAllByName(Unknown Source) at java.base/java.net.InetAddress.getAllByName(Unknown Source) at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:133) at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) ... 12 more DB_CLIENT_BATCH_DATA_COUNT: `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge pods test-db-client-executionloop-mysql-qznsyf --namespace ns-yknsj ` pod/test-db-client-executionloop-mysql-qznsyf patched (no change) 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 "test-db-client-executionloop-mysql-qznsyf" force deleted `echo "CREATE DATABASE IF NOT EXISTS mydb; use mydb; DROP TABLE IF EXISTS tmp_table; CREATE TABLE IF NOT EXISTS tmp_table (id INT PRIMARY KEY AUTO_INCREMENT, value VARCHAR(255)); INSERT INTO tmp_table (value) VALUES ('vdawm');" | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. add consistent data vdawm Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"CREATE DATABASE IF NOT EXISTS mydb; use mydb; DROP TABLE IF EXISTS tmp_table; CREATE TABLE IF NOT EXISTS tmp_table (id INT PRIMARY KEY AUTO_INCREMENT, value VARCHAR(255)); INSERT INTO tmp_table (value) VALUES ('vdawm');\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 1290 (HY000) at line 1: The MySQL server is running with the --super-read-only option so it cannot execute this statement command terminated with exit code 1 check add consistent data readonly Success cluster expose check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster expose mysql-qznsyf --auto-approve --force=true --type internet --enable true --components mysql --namespace ns-yknsj ` OpsRequest mysql-qznsyf-expose-qq4qr created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-expose-qq4qr -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-expose-qq4qr ns-yknsj Expose mysql-qznsyf mysql Running 0/1 Sep 01,2025 11:29 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-expose-qq4qr ns-yknsj Expose mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:29 UTC+0800 check ops status done ops_status:mysql-qznsyf-expose-qq4qr ns-yknsj Expose mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:29 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-expose-qq4qr --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-expose-qq4qr patched `kbcli cluster delete-ops --name mysql-qznsyf-expose-qq4qr --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-expose-qq4qr deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover networkcorruptover check cluster status before cluster-failover-networkcorruptover check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkcorruptover-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkcorruptover-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkcorruptover-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networkcorruptover-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 mode: all action: corrupt corrupt: corrupt: '100' correlation: '100' direction: to duration: 2m `kubectl apply -f test-chaos-mesh-networkcorruptover-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networkcorruptover-mysql-qznsyf created apply test-chaos-mesh-networkcorruptover-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networkcorruptover-mysql-qznsyf.yaml` networkcorruptover chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkcorruptover-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networkcorruptover-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkcorruptover-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover networkcorruptover Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover fullcpu check cluster status before cluster-failover-fullcpu check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-fullcpu-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-fullcpu-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-fullcpu-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-chaos-mesh-fullcpu-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all stressors: cpu: workers: 100 load: 100 duration: 2m `kubectl apply -f test-chaos-mesh-fullcpu-mysql-qznsyf.yaml` stresschaos.chaos-mesh.org/test-chaos-mesh-fullcpu-mysql-qznsyf created apply test-chaos-mesh-fullcpu-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-fullcpu-mysql-qznsyf.yaml` fullcpu chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-fullcpu-mysql-qznsyf --namespace ns-yknsj ` 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. stresschaos.chaos-mesh.org "test-chaos-mesh-fullcpu-mysql-qznsyf" force deleted Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-fullcpu-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover fullcpu Failure `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster hscale check cluster status before ops check cluster status done cluster_status:Running No resources found in mysql-qznsyf namespace. `kbcli cluster hscale mysql-qznsyf --auto-approve --force=true --components mysql --replicas 3 --namespace ns-yknsj ` OpsRequest mysql-qznsyf-horizontalscaling-557m6 created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-horizontalscaling-557m6 -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-horizontalscaling-557m6 ns-yknsj HorizontalScaling mysql-qznsyf mysql Running 0/1 Sep 01,2025 11:35 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-2 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 11:35 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 mysql-qznsyf-mysql-2 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done No resources found in mysql-qznsyf namespace. check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-horizontalscaling-557m6 ns-yknsj HorizontalScaling mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:35 UTC+0800 check ops status done ops_status:mysql-qznsyf-horizontalscaling-557m6 ns-yknsj HorizontalScaling mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:35 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-horizontalscaling-557m6 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-horizontalscaling-557m6 patched `kbcli cluster delete-ops --name mysql-qznsyf-horizontalscaling-557m6 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-horizontalscaling-557m6 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary), mysql-qznsyf-mysql-2(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster hscale check cluster status before ops check cluster status done cluster_status:Running No resources found in mysql-qznsyf namespace. `kbcli cluster hscale mysql-qznsyf --auto-approve --force=true --components mysql --replicas 2 --namespace ns-yknsj ` OpsRequest mysql-qznsyf-horizontalscaling-6822p created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-horizontalscaling-6822p -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-horizontalscaling-6822p ns-yknsj HorizontalScaling mysql-qznsyf mysql Creating -/- Sep 01,2025 11:37 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done No resources found in mysql-qznsyf namespace. check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-horizontalscaling-6822p ns-yknsj HorizontalScaling mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:37 UTC+0800 check ops status done ops_status:mysql-qznsyf-horizontalscaling-6822p ns-yknsj HorizontalScaling mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 11:37 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-horizontalscaling-6822p --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-horizontalscaling-6822p patched `kbcli cluster delete-ops --name mysql-qznsyf-horizontalscaling-6822p --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-horizontalscaling-6822p deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover timeoffset check cluster status before cluster-failover-timeoffset check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge TimeChaos test-chaos-mesh-timeoffset-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): timechaos.chaos-mesh.org "test-chaos-mesh-timeoffset-mysql-qznsyf" not found Error from server (NotFound): timechaos.chaos-mesh.org "test-chaos-mesh-timeoffset-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: TimeChaos metadata: name: test-chaos-mesh-timeoffset-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 mode: all timeOffset: '-10m' clockIds: - CLOCK_REALTIME duration: 2m `kubectl apply -f test-chaos-mesh-timeoffset-mysql-qznsyf.yaml` timechaos.chaos-mesh.org/test-chaos-mesh-timeoffset-mysql-qznsyf created apply test-chaos-mesh-timeoffset-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-timeoffset-mysql-qznsyf.yaml` timeoffset chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge TimeChaos test-chaos-mesh-timeoffset-mysql-qznsyf --namespace ns-yknsj ` 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. timechaos.chaos-mesh.org "test-chaos-mesh-timeoffset-mysql-qznsyf" force deleted Error from server (NotFound): timechaos.chaos-mesh.org "test-chaos-mesh-timeoffset-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover timeoffset Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover podfailure check cluster status before cluster-failover-podfailure check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge PodChaos test-chaos-mesh-podfailure-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podfailure-mysql-qznsyf" not found Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podfailure-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: PodChaos metadata: name: test-chaos-mesh-podfailure-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 mode: all action: pod-failure duration: 2m `kubectl apply -f test-chaos-mesh-podfailure-mysql-qznsyf.yaml` podchaos.chaos-mesh.org/test-chaos-mesh-podfailure-mysql-qznsyf created apply test-chaos-mesh-podfailure-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-podfailure-mysql-qznsyf.yaml` podfailure chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Abnormal Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Abnormal cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge PodChaos test-chaos-mesh-podfailure-mysql-qznsyf --namespace ns-yknsj ` 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. podchaos.chaos-mesh.org "test-chaos-mesh-podfailure-mysql-qznsyf" force deleted Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podfailure-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover podfailure Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover oom check cluster status before cluster-failover-oom check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-chaos-mesh-oom-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all stressors: memory: workers: 1 size: "100GB" oomScoreAdj: -1000 duration: 2m `kubectl apply -f test-chaos-mesh-oom-mysql-qznsyf.yaml` stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf created apply test-chaos-mesh-oom-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-oom-mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:23 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Error from server (BadRequest): pod mysql-qznsyf-mysql-0 does not have a host assigned check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" force deleted stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf patched check failover pod name get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get mysql primary pod name... get pod name timeout failover pod name: `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-chaos-mesh-oom-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all stressors: memory: workers: 1 size: "100GB" oomScoreAdj: -1000 duration: 2m `kubectl apply -f test-chaos-mesh-oom-mysql-qznsyf.yaml` stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf created apply test-chaos-mesh-oom-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-oom-mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 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 "mysql-qznsyf-mysql-0" force deleted 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 "mysql-qznsyf-mysql-1" force deleted 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:47 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" force deleted Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found failover pod name:mysql-qznsyf-mysql-1 checking failover... `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-chaos-mesh-oom-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all stressors: memory: workers: 1 size: "100GB" oomScoreAdj: -1000 duration: 2m `kubectl apply -f test-chaos-mesh-oom-mysql-qznsyf.yaml` stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf created apply test-chaos-mesh-oom-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-oom-mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:47 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" force deleted stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf patched failover pod name:mysql-qznsyf-mysql-1 checking failover... `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-chaos-mesh-oom-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all stressors: memory: workers: 1 size: "100GB" oomScoreAdj: -1000 duration: 2m `kubectl apply -f test-chaos-mesh-oom-mysql-qznsyf.yaml` stresschaos.chaos-mesh.org/test-chaos-mesh-oom-mysql-qznsyf created apply test-chaos-mesh-oom-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-oom-mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:47 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge StressChaos test-chaos-mesh-oom-mysql-qznsyf --namespace ns-yknsj ` 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. stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" force deleted Error from server (NotFound): stresschaos.chaos-mesh.org "test-chaos-mesh-oom-mysql-qznsyf" not found check failover pod name:mysql-qznsyf-mysql-0 failover oom Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover kill1 check cluster status before cluster-failover-kill1 check cluster status done cluster_status:Running check node drain check node drain success `kill 1` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file exec return message: check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 11:47 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:10Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) command terminated with exit code 1 check mysql slave success check cluster connect done check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover kill1 Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1 checking cluster readonly data consistent... check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1 checking cluster readonly data consistent... check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1 checking cluster readonly data consistent... check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success `kubectl get pvc -l app.kubernetes.io/instance=mysql-qznsyf,apps.kubeblocks.io/component-name=mysql,apps.kubeblocks.io/vct-name=data --namespace ns-yknsj ` cluster volume-expand check cluster status before ops check cluster status done cluster_status:Running No resources found in mysql-qznsyf namespace. `kbcli cluster volume-expand mysql-qznsyf --auto-approve --force=true --components mysql --volume-claim-templates data --storage 14Gi --namespace ns-yknsj ` OpsRequest mysql-qznsyf-volumeexpansion-t79sp created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-volumeexpansion-t79sp -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-volumeexpansion-t79sp ns-yknsj VolumeExpansion mysql-qznsyf mysql Running 0/2 Sep 01,2025 11:51 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 11:55 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done No resources found in mysql-qznsyf namespace. check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-volumeexpansion-t79sp ns-yknsj VolumeExpansion mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 11:51 UTC+0800 check ops status done ops_status:mysql-qznsyf-volumeexpansion-t79sp ns-yknsj VolumeExpansion mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 11:51 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-volumeexpansion-t79sp --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-volumeexpansion-t79sp patched `kbcli cluster delete-ops --name mysql-qznsyf-volumeexpansion-t79sp --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-volumeexpansion-t79sp deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover dnsrandom check cluster status before cluster-failover-dnsrandom check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge DNSChaos test-chaos-mesh-dnsrandom-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnsrandom-mysql-qznsyf" not found Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnsrandom-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: DNSChaos metadata: name: test-chaos-mesh-dnsrandom-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all action: random duration: 2m `kubectl apply -f test-chaos-mesh-dnsrandom-mysql-qznsyf.yaml` dnschaos.chaos-mesh.org/test-chaos-mesh-dnsrandom-mysql-qznsyf created apply test-chaos-mesh-dnsrandom-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-dnsrandom-mysql-qznsyf.yaml` dnsrandom chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 11:55 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000007/10.224.0.9 Sep 01,2025 11:47 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge DNSChaos test-chaos-mesh-dnsrandom-mysql-qznsyf --namespace ns-yknsj ` 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. dnschaos.chaos-mesh.org "test-chaos-mesh-dnsrandom-mysql-qznsyf" force deleted Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnsrandom-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover dnsrandom Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover drainnode check cluster status before cluster-failover-drainnode check cluster status done cluster_status:Running check node drain check node drain success kubectl get pod mysql-qznsyf-mysql-1 --namespace ns-yknsj -o jsonpath='***.spec.nodeName***' get node name:aks-cicdamdpool-38368475-vmss000007 success check if multiple pods are on the same node kubectl get pod mysql-qznsyf-mysql-0 --namespace ns-yknsj -o jsonpath='***.spec.nodeName***' get node name:aks-cicdamdpool-38368475-vmss000006 success kubectl drain aks-cicdamdpool-38368475-vmss000007 --delete-emptydir-data --ignore-daemonsets --force --grace-period 0 --timeout 60s node/aks-cicdamdpool-38368475-vmss000007 cordoned Warning: ignoring DaemonSet-managed Pods: chaos-mesh/chaos-daemon-95gs4, kb-hmwej/kb-addon-apecloud-otel-collector-hxksl, kube-system/azure-cns-tmscd, kube-system/azure-ip-masq-agent-qps4c, kube-system/cloud-node-manager-jmdtb, kube-system/csi-azuredisk-node-kgmfn, kube-system/csi-azurefile-node-fg5lp, kube-system/kube-proxy-t7gd4 evicting pod ns-yknsj/mysql-qznsyf-mysql-1 evicting pod ns-fkhrb/damengdb-tkwqqh-dmdb-2 evicting pod ns-rxzwd/redis-lyqvhu-redis-0 evicting pod ns-fkhrb/damengdb-tkwqqh-dmdb-0 evicting pod ns-hrbfe/kafka-esbuyt-kafka-broker-0 evicting pod ns-hrbfe/kafka-esbuyt-kafka-broker-1 evicting pod ns-hrbfe/kafka-esbuyt-kafka-broker-2 evicting pod ns-hrbfe/kafka-esbuyt-kafka-exporter-0 evicting pod ns-sfkux/apemysql-txrgwo-mysql-2 evicting pod ns-nvunr/elastics-twagzs-mdit-1 evicting pod ns-ybzhw/gaussdb-bpsmmq-gaussdb-1 evicting pod ns-ybzhw/gaussdb-bpsmmq-gaussdb-2 evicting pod ns-rxzwd/redis-lyqvhu-redis-twemproxy-0 evicting pod ns-rxzwd/redis-lyqvhu-redis-sentinel-1 evicting pod ns-fkhrb/damengdb-tkwqqh-dmmonitor-0 pod/kafka-esbuyt-kafka-broker-1 evicted pod/damengdb-tkwqqh-dmdb-0 evicted pod/elastics-twagzs-mdit-1 evicted pod/redis-lyqvhu-redis-sentinel-1 evicted pod/damengdb-tkwqqh-dmdb-2 evicted pod/kafka-esbuyt-kafka-broker-0 evicted pod/redis-lyqvhu-redis-twemproxy-0 evicted pod/redis-lyqvhu-redis-0 evicted pod/kafka-esbuyt-kafka-exporter-0 evicted pod/apemysql-txrgwo-mysql-2 evicted pod/gaussdb-bpsmmq-gaussdb-1 evicted pod/gaussdb-bpsmmq-gaussdb-2 evicted pod/kafka-esbuyt-kafka-broker-2 evicted I0901 12:01:35.400506 9920 request.go:697] Waited for 1.000268752s due to client-side throttling, not priority and fairness, request: POST:https://communal-bream-k8s-xgiego06.hcp.eastus.azmk8s.io:443/api/v1/namespaces/ns-fkhrb/pods/damengdb-tkwqqh-dmmonitor-0/eviction pod/mysql-qznsyf-mysql-1 evicted pod/damengdb-tkwqqh-dmmonitor-0 evicted node/aks-cicdamdpool-38368475-vmss000007 drained kubectl uncordon aks-cicdamdpool-38368475-vmss000007 node/aks-cicdamdpool-38368475-vmss000007 uncordoned check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 11:55 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 100m / 100m 512Mi / 512Mi data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:01 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover drainnode Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster vscale check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster vscale mysql-qznsyf --auto-approve --force=true --components mysql --cpu 200m --memory 0.6Gi --namespace ns-yknsj ` OpsRequest mysql-qznsyf-verticalscaling-sh9n2 created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-verticalscaling-sh9n2 -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-verticalscaling-sh9n2 ns-yknsj VerticalScaling mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:02 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-verticalscaling-sh9n2 ns-yknsj VerticalScaling mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:02 UTC+0800 check ops status done ops_status:mysql-qznsyf-verticalscaling-sh9n2 ns-yknsj VerticalScaling mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:02 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-verticalscaling-sh9n2 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-verticalscaling-sh9n2 patched `kbcli cluster delete-ops --name mysql-qznsyf-verticalscaling-sh9n2 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-verticalscaling-sh9n2 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster update monitor cluster does not need to check monitor currently check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done test failover networkdelay check cluster status before cluster-failover-networkdelay check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkdelay-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkdelay-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkdelay-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networkdelay-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all action: delay delay: latency: 2000ms correlation: '100' jitter: 0ms direction: to duration: 2m `kubectl apply -f test-chaos-mesh-networkdelay-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networkdelay-mysql-qznsyf created apply test-chaos-mesh-networkdelay-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networkdelay-mysql-qznsyf.yaml` networkdelay chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkdelay-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networkdelay-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkdelay-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover networkdelay Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster update enable-all-logs `kbcli cluster update mysql-qznsyf --enable-all-logs=true --namespace ns-yknsj ` error: failed to reconfigure log variables of target cluster: no config templates for component mysql check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done test failover networkpartition check cluster status before cluster-failover-networkpartition check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkpartition-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkpartition-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkpartition-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networkpartition-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 action: partition mode: all target: mode: all selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 direction: to duration: 2m `kubectl apply -f test-chaos-mesh-networkpartition-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networkpartition-mysql-qznsyf created apply test-chaos-mesh-networkpartition-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networkpartition-mysql-qznsyf.yaml` networkpartition chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkpartition-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networkpartition-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkpartition-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover networkpartition Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover connectionstress check cluster status before cluster-failover-connectionstress check cluster status done cluster_status:Running check node drain check node drain success Error from server (NotFound): pods "test-db-client-connectionstress-mysql-qznsyf" not found `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge pods test-db-client-connectionstress-mysql-qznsyf --namespace ns-yknsj ` Error from server (NotFound): pods "test-db-client-connectionstress-mysql-qznsyf" not found 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. Error from server (NotFound): pods "test-db-client-connectionstress-mysql-qznsyf" not found `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql No resources found in ns-yknsj namespace. apiVersion: v1 kind: Pod metadata: name: test-db-client-connectionstress-mysql-qznsyf namespace: ns-yknsj spec: containers: - name: test-dbclient imagePullPolicy: IfNotPresent image: docker.io/apecloud/dbclient:test args: - "--host" - ".ns-yknsj.svc.cluster.local" - "--user" - "root" - "--password" - "c5zVze3x6s22594B" - "--port" - "3306" - "--database" - "mysql" - "--dbtype" - "mysql" - "--test" - "connectionstress" - "--connections" - "83" - "--duration" - "60" restartPolicy: Never `kubectl apply -f test-db-client-connectionstress-mysql-qznsyf.yaml` pod/test-db-client-connectionstress-mysql-qznsyf created apply test-db-client-connectionstress-mysql-qznsyf.yaml Success `rm -rf test-db-client-connectionstress-mysql-qznsyf.yaml` check pod status check pod test-db-client-connectionstress-mysql-qznsyf status done pod_status:NAME READY STATUS RESTARTS AGE test-db-client-connectionstress-mysql-qznsyf 0/1 Completed 0 5s check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done --host .ns-yknsj.svc.cluster.local --user root --password c5zVze3x6s22594B --port 3306 --database mysql --dbtype mysql --test connectionstress --connections 83 --duration 60 SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider] Failed to connect to MySQL database: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Trying with database MySQL. Test execution failed: Failed to connect to MySQL database: java.io.IOException: Failed to connect to MySQL database: at com.apecloud.dbtester.tester.MySQLTester.connect(MySQLTester.java:65) at com.apecloud.dbtester.commons.TestExecutor.executeTest(TestExecutor.java:29) at OneClient.executeTest(OneClient.java:108) at OneClient.main(OneClient.java:40) Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:829) at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:449) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:242) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) at java.sql/java.sql.DriverManager.getConnection(Unknown Source) at java.sql/java.sql.DriverManager.getConnection(Unknown Source) at com.apecloud.dbtester.tester.MySQLTester.connect(MySQLTester.java:63) ... 3 more Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) at com.mysql.cj.NativeSession.connect(NativeSession.java:120) at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:949) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819) ... 9 more Caused by: java.net.UnknownHostException: .ns-yknsj.svc.cluster.local at java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source) at java.base/java.net.InetAddress.getAllByName0(Unknown Source) at java.base/java.net.InetAddress.getAllByName(Unknown Source) at java.base/java.net.InetAddress.getAllByName(Unknown Source) at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:133) at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) ... 12 more `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge pods test-db-client-connectionstress-mysql-qznsyf --namespace ns-yknsj ` pod/test-db-client-connectionstress-mysql-qznsyf patched (no change) 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 "test-db-client-connectionstress-mysql-qznsyf" force deleted check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover connectionstress Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover networklossover check cluster status before cluster-failover-networklossover check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networklossover-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networklossover-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networklossover-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networklossover-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all action: loss loss: loss: '100' correlation: '100' direction: to duration: 2m `kubectl apply -f test-chaos-mesh-networklossover-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networklossover-mysql-qznsyf created apply test-chaos-mesh-networklossover-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networklossover-mysql-qznsyf.yaml` networklossover chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networklossover-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networklossover-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networklossover-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover networklossover Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover networkbandwidthover check cluster status before cluster-failover-networkbandwidthover check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkbandwidthover-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkbandwidthover-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkbandwidthover-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networkbandwidthover-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 action: bandwidth mode: all bandwidth: rate: '1bps' limit: 20971520 buffer: 10000 duration: 2m `kubectl apply -f test-chaos-mesh-networkbandwidthover-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networkbandwidthover-mysql-qznsyf created apply test-chaos-mesh-networkbandwidthover-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networkbandwidthover-mysql-qznsyf.yaml` networkbandwidthover chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkbandwidthover-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networkbandwidthover-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkbandwidthover-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover networkbandwidthover Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cmpv upgrade service version:2,5.7.44|2,8.0.30|2,8.0.31|2,8.0.32|2,8.0.33|2,8.0.34|2,8.0.35|2,8.0.36|2,8.0.37|2,8.0.38|2,8.0.39|2,8.4.0|2,8.4.1|2,8.4.2 set latest cmpv service version latest service version:8.0.39 cmpv service version upgrade and downgrade 8.0.30 is less than 8.0.31 upgrade from:8.0.30 to service version:8.0.31 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.31 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-qtmwr created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-qtmwr ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:17 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-qtmwr ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:17 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-qtmwr ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:17 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-qtmwr --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-qtmwr patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-qtmwr --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-qtmwr deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success 8.0.31 is less than 8.0.32 upgrade from:8.0.31 to service version:8.0.32 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.32 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-q47r6 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-q47r6 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:19 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) command terminated with exit code 1 check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-q47r6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:19 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-q47r6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:19 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-q47r6 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-q47r6 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-q47r6 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-q47r6 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1 checking cluster readonly data consistent... check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1 checking cluster readonly data consistent... check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success 8.0.32 is less than 8.0.33 upgrade from:8.0.32 to service version:8.0.33 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.33 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-5xwpq created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-5xwpq ns-yknsj Upgrade mysql-qznsyf Running -/- Sep 01,2025 12:20 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-5xwpq ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:20 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-5xwpq ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:20 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-5xwpq --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-5xwpq patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-5xwpq --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-5xwpq deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success 8.0.33 is less than 8.0.34 upgrade from:8.0.33 to service version:8.0.34 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.34 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-wkrj7 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-wkrj7 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:22 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-wkrj7 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:22 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-wkrj7 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:22 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-wkrj7 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-wkrj7 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-wkrj7 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-wkrj7 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.34 to service version:8.0.35 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.35 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-5w6ht created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-5w6ht ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:24 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-5w6ht ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:24 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-5w6ht ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:24 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-5w6ht --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-5w6ht patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-5w6ht --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-5w6ht deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.35 to service version:8.0.39 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.39 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-gktv6 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-gktv6 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:26 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-gktv6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:26 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-gktv6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:26 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-gktv6 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-gktv6 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-gktv6 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-gktv6 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success downgrade from:8.0.39 to service version:8.0.35 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.35 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-fw2w6 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-fw2w6 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:28 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-fw2w6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:28 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-fw2w6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:28 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-fw2w6 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-fw2w6 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-fw2w6 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-fw2w6 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.35 to service version:8.0.36 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.36 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-9h6b6 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-9h6b6 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:29 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-9h6b6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:29 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-9h6b6 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:29 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-9h6b6 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-9h6b6 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-9h6b6 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-9h6b6 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.36 to service version:8.0.39 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.39 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-qlrrr created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-qlrrr ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:31 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) command terminated with exit code 1 check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-qlrrr ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:31 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-qlrrr ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:31 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-qlrrr --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-qlrrr patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-qlrrr --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-qlrrr deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success downgrade from:8.0.39 to service version:8.0.36 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.36 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-62ckh created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-62ckh ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:32 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-62ckh ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:32 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-62ckh ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:32 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-62ckh --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-62ckh patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-62ckh --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-62ckh deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.36 to service version:8.0.37 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.37 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-ct8xs created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-ct8xs ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:34 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) command terminated with exit code 1 check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-ct8xs ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:34 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-ct8xs ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:34 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-ct8xs --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-ct8xs patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-ct8xs --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-ct8xs deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.37 to service version:8.0.39 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.39 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-2jkfv created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-2jkfv ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:35 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave status Slave_IO_Running: Connecting connect checking... Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-2jkfv ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:35 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-2jkfv ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:35 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-2jkfv --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-2jkfv patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-2jkfv --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-2jkfv deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success downgrade from:8.0.39 to service version:8.0.37 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.37 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-hwvjs created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-hwvjs ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:37 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-hwvjs ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:37 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-hwvjs ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:37 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-hwvjs --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-hwvjs patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-hwvjs --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-hwvjs deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.37 to service version:8.0.38 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.38 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-s8v4f created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-s8v4f ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:38 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) command terminated with exit code 1 check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-s8v4f ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:38 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-s8v4f ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:38 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-s8v4f --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-s8v4f patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-s8v4f --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-s8v4f deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success upgrade from:8.0.38 to service version:8.0.39 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.39 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-w9682 created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-w9682 ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:40 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-w9682 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:40 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-w9682 ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:40 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-w9682 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-w9682 patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-w9682 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-w9682 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success downgrade from:8.0.39 to service version:8.0.38 cluster upgrade apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-upgrade-cmpv- namespace: ns-yknsj spec: clusterName: mysql-qznsyf upgrade: components: - componentName: mysql serviceVersion: 8.0.38 type: Upgrade check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-dr2pc created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-dr2pc ns-yknsj Upgrade mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:42 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-upgrade-cmpv-dr2pc ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:42 UTC+0800 check ops status done ops_status:mysql-qznsyf-upgrade-cmpv-dr2pc ns-yknsj Upgrade mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:42 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-upgrade-cmpv-dr2pc --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-upgrade-cmpv-dr2pc patched `kbcli cluster delete-ops --name mysql-qznsyf-upgrade-cmpv-dr2pc --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-upgrade-cmpv-dr2pc deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover dnserror check cluster status before cluster-failover-dnserror check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge DNSChaos test-chaos-mesh-dnserror-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnserror-mysql-qznsyf" not found Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnserror-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: DNSChaos metadata: name: test-chaos-mesh-dnserror-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-0 mode: all action: error duration: 2m `kubectl apply -f test-chaos-mesh-dnserror-mysql-qznsyf.yaml` dnschaos.chaos-mesh.org/test-chaos-mesh-dnserror-mysql-qznsyf created apply test-chaos-mesh-dnserror-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-dnserror-mysql-qznsyf.yaml` dnserror chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:04 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000000/10.224.0.5 Sep 01,2025 12:03 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge DNSChaos test-chaos-mesh-dnserror-mysql-qznsyf --namespace ns-yknsj ` 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. dnschaos.chaos-mesh.org "test-chaos-mesh-dnserror-mysql-qznsyf" force deleted Error from server (NotFound): dnschaos.chaos-mesh.org "test-chaos-mesh-dnserror-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover dnserror Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster stop check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster stop mysql-qznsyf --auto-approve --force=true --namespace ns-yknsj ` OpsRequest mysql-qznsyf-stop-ckwlx created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-stop-ckwlx -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-stop-ckwlx ns-yknsj Stop mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:46 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Stopping Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Stopping cluster_status:Stopping cluster_status:Stopping check cluster status done cluster_status:Stopped check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` 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 mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-stop-ckwlx ns-yknsj Stop mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:46 UTC+0800 check ops status done ops_status:mysql-qznsyf-stop-ckwlx ns-yknsj Stop mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:46 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-stop-ckwlx --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-stop-ckwlx patched `kbcli cluster delete-ops --name mysql-qznsyf-stop-ckwlx --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-stop-ckwlx deleted cluster start check cluster status before ops check cluster status done cluster_status:Stopped `kbcli cluster start mysql-qznsyf --force=true --namespace ns-yknsj ` OpsRequest mysql-qznsyf-start-vmmks created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-start-vmmks -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-start-vmmks ns-yknsj Start mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:46 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:46 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:46 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-start-vmmks ns-yknsj Start mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:46 UTC+0800 check ops status done ops_status:mysql-qznsyf-start-vmmks ns-yknsj Start mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:46 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-start-vmmks --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-start-vmmks patched `kbcli cluster delete-ops --name mysql-qznsyf-start-vmmks --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-start-vmmks deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover networkduplicate check cluster status before cluster-failover-networkduplicate check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkduplicate-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkduplicate-mysql-qznsyf" not found Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkduplicate-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: NetworkChaos metadata: name: test-chaos-mesh-networkduplicate-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all action: duplicate duplicate: duplicate: '100' correlation: '100' direction: to duration: 2m `kubectl apply -f test-chaos-mesh-networkduplicate-mysql-qznsyf.yaml` networkchaos.chaos-mesh.org/test-chaos-mesh-networkduplicate-mysql-qznsyf created apply test-chaos-mesh-networkduplicate-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-networkduplicate-mysql-qznsyf.yaml` networkduplicate chaos test waiting 120 seconds check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:46 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:46 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge NetworkChaos test-chaos-mesh-networkduplicate-mysql-qznsyf --namespace ns-yknsj ` 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. networkchaos.chaos-mesh.org "test-chaos-mesh-networkduplicate-mysql-qznsyf" force deleted Error from server (NotFound): networkchaos.chaos-mesh.org "test-chaos-mesh-networkduplicate-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-1 failover networkduplicate Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster configure component_tmp: mysql check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster configure mysql-qznsyf --auto-approve --force=true --set binlog_expire_logs_seconds=691200 --components mysql --config-spec mysql-replication-config --config-file my.cnf --namespace ns-yknsj ` Will updated configure file meta: ConfigSpec: mysql-replication-config ConfigFile: my.cnf ComponentName: mysql ClusterName: mysql-qznsyf OpsRequest mysql-qznsyf-reconfiguring-zgfts created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-reconfiguring-zgfts -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-reconfiguring-zgfts ns-yknsj Reconfiguring mysql-qznsyf mysql Running -/- Sep 01,2025 12:51 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:46 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:46 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-reconfiguring-zgfts ns-yknsj Reconfiguring mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:51 UTC+0800 check ops status done ops_status:mysql-qznsyf-reconfiguring-zgfts ns-yknsj Reconfiguring mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:51 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-reconfiguring-zgfts --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-reconfiguring-zgfts patched `kbcli cluster delete-ops --name mysql-qznsyf-reconfiguring-zgfts --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-reconfiguring-zgfts deleted check config variables Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. current value_actual: 691200 configure:[binlog_expire_logs_seconds] result actual:[691200] equal expected:[691200] `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test failover podkill check cluster status before cluster-failover-podkill check cluster status done cluster_status:Running check node drain check node drain success `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge PodChaos test-chaos-mesh-podkill-mysql-qznsyf --namespace ns-yknsj ` 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. Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podkill-mysql-qznsyf" not found Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podkill-mysql-qznsyf" not found apiVersion: chaos-mesh.org/v1alpha1 kind: PodChaos metadata: name: test-chaos-mesh-podkill-mysql-qznsyf namespace: ns-yknsj spec: selector: namespaces: - ns-yknsj labelSelectors: apps.kubeblocks.io/pod-name: mysql-qznsyf-mysql-1 mode: all action: pod-kill `kubectl apply -f test-chaos-mesh-podkill-mysql-qznsyf.yaml` podchaos.chaos-mesh.org/test-chaos-mesh-podkill-mysql-qznsyf created apply test-chaos-mesh-podkill-mysql-qznsyf.yaml Success `rm -rf test-chaos-mesh-podkill-mysql-qznsyf.yaml` check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:46 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:51 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge PodChaos test-chaos-mesh-podkill-mysql-qznsyf --namespace ns-yknsj ` 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. podchaos.chaos-mesh.org "test-chaos-mesh-podkill-mysql-qznsyf" force deleted Error from server (NotFound): podchaos.chaos-mesh.org "test-chaos-mesh-podkill-mysql-qznsyf" not found check failover pod name failover pod name:mysql-qznsyf-mysql-0 failover podkill Success `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster restart check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster restart mysql-qznsyf --auto-approve --force=true --namespace ns-yknsj ` OpsRequest mysql-qznsyf-restart-j4982 created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-restart-j4982 -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-restart-j4982 ns-yknsj Restart mysql-qznsyf mysql Running 0/2 Sep 01,2025 12:52 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Updating Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= 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 mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:53 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:52 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-1;secondary: mysql-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-restart-j4982 ns-yknsj Restart mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:52 UTC+0800 check ops status done ops_status:mysql-qznsyf-restart-j4982 ns-yknsj Restart mysql-qznsyf mysql Succeed 2/2 Sep 01,2025 12:52 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-restart-j4982 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-restart-j4982 patched `kbcli cluster delete-ops --name mysql-qznsyf-restart-j4982 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-restart-j4982 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-1: out of mysql-qznsyf-mysql-1(primary), mysql-qznsyf-mysql-0(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-0 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success test switchover cluster promote check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster promote mysql-qznsyf --auto-approve --force=true --component mysql --namespace ns-yknsj ` OpsRequest mysql-qznsyf-custom-84v68 created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-custom-84v68 -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-custom-84v68 ns-yknsj Custom mysql-qznsyf mysql Running 0/1 Sep 01,2025 12:54 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql Halt Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:53 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:52 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-custom-84v68 ns-yknsj Custom mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 12:54 UTC+0800 check ops status done ops_status:mysql-qznsyf-custom-84v68 ns-yknsj Custom mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 12:54 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-custom-84v68 --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-custom-84v68 patched `kbcli cluster delete-ops --name mysql-qznsyf-custom-84v68 --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-custom-84v68 deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success switchover pod:mysql-qznsyf-mysql-0 switchover success No resources found in ns-yknsj namespace. `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql apiVersion: v1 kind: Pod metadata: name: benchtest-mysql-qznsyf namespace: ns-yknsj 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:mysql-qznsyf-mysql.ns-yknsj.svc.cluster.local,user:root,password:c5zVze3x6s22594B,port:3306,db:benchtest,tables:5,threads:4,times:10,size:1000,type:oltp_read_write" restartPolicy: Never `kubectl apply -f benchtest-mysql-qznsyf.yaml` pod/benchtest-mysql-qznsyf created apply benchtest-mysql-qznsyf.yaml Success check pod status pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 ContainerCreating 0 1s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 ContainerCreating 0 5s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 ContainerCreating 0 11s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 16s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 22s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 27s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 33s check pod benchtest-mysql-qznsyf status done pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 Completed 0 38s `rm -rf benchtest-mysql-qznsyf.yaml` `kubectl logs benchtest-mysql-qznsyf --tail 30 --namespace ns-yknsj ` [ 7s ] thds: 4 tps: 49.00 qps: 996.98 (r/w/o: 696.99/202.00/98.00) lat (ms,99%): 204.11 err/s: 0.00 reconn/s: 0.00 [ 8s ] thds: 4 tps: 55.00 qps: 1099.98 (r/w/o: 767.99/222.00/110.00) lat (ms,99%): 142.39 err/s: 0.00 reconn/s: 0.00 [ 9s ] thds: 4 tps: 48.00 qps: 950.01 (r/w/o: 670.01/184.00/96.00) lat (ms,99%): 193.38 err/s: 0.00 reconn/s: 0.00 [ 10s ] thds: 4 tps: 51.00 qps: 1049.92 (r/w/o: 731.94/215.98/101.99) lat (ms,99%): 108.68 err/s: 0.00 reconn/s: 0.00 SQL statistics: queries performed: read: 7252 write: 2072 other: 1036 total: 10360 transactions: 518 (51.71 per sec.) queries: 10360 (1034.17 per sec.) ignored errors: 0 (0.00 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 10.0163s total number of events: 518 Latency (ms): min: 8.59 avg: 77.28 max: 203.99 99th percentile: 186.54 sum: 40030.72 Threads fairness: events (avg/stddev): 129.5000/0.87 execution time (avg/stddev): 10.0077/0.01 `kubectl delete pod benchtest-mysql-qznsyf --force --namespace ns-yknsj ` 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-mysql-qznsyf" force deleted No resources found in ns-yknsj namespace. `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql apiVersion: v1 kind: Pod metadata: name: benchtest-mysql-qznsyf namespace: ns-yknsj 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:4.156.48.211,user:root,password:c5zVze3x6s22594B,port:3306,db:benchtest,tables:5,threads:4,times:10,size:1000,type:oltp_read_write" restartPolicy: Never `kubectl apply -f benchtest-mysql-qznsyf.yaml` pod/benchtest-mysql-qznsyf created apply benchtest-mysql-qznsyf.yaml Success check pod status pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 ContainerCreating 0 1s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 5s pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 1/1 Running 0 11s check pod benchtest-mysql-qznsyf status done pod_status:NAME READY STATUS RESTARTS AGE benchtest-mysql-qznsyf 0/1 Completed 0 16s `rm -rf benchtest-mysql-qznsyf.yaml` `kubectl logs benchtest-mysql-qznsyf --tail 30 --namespace ns-yknsj ` [ 7s ] thds: 4 tps: 51.00 qps: 1008.92 (r/w/o: 704.94/201.98/101.99) lat (ms,99%): 127.81 err/s: 0.00 reconn/s: 0.00 [ 8s ] thds: 4 tps: 46.00 qps: 934.93 (r/w/o: 660.95/181.99/91.99) lat (ms,99%): 196.89 err/s: 0.00 reconn/s: 0.00 [ 9s ] thds: 4 tps: 51.01 qps: 977.10 (r/w/o: 677.07/198.02/102.01) lat (ms,99%): 186.54 err/s: 0.00 reconn/s: 0.00 [ 10s ] thds: 4 tps: 47.00 qps: 954.96 (r/w/o: 672.97/187.99/94.00) lat (ms,99%): 189.93 err/s: 0.00 reconn/s: 0.00 SQL statistics: queries performed: read: 6972 write: 1992 other: 996 total: 9960 transactions: 498 (49.52 per sec.) queries: 9960 (990.41 per sec.) ignored errors: 0 (0.00 per sec.) reconnects: 0 (0.00 per sec.) General statistics: total time: 10.0547s total number of events: 498 Latency (ms): min: 8.48 avg: 80.68 max: 197.55 99th percentile: 189.93 sum: 40178.44 Threads fairness: events (avg/stddev): 124.5000/1.50 execution time (avg/stddev): 10.0446/0.01 `kubectl delete pod benchtest-mysql-qznsyf --force --namespace ns-yknsj ` 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-mysql-qznsyf" force deleted cluster update terminationPolicy WipeOut `kbcli cluster update mysql-qznsyf --termination-policy=WipeOut --namespace ns-yknsj ` cluster.apps.kubeblocks.io/mysql-qznsyf updated check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql WipeOut Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:53 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 12:52 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kubectl get backupschedule -l app.kubernetes.io/instance=mysql-qznsyf ` `kubectl get backupschedule mysql-qznsyf-mysql-backup-schedule -ojsonpath='***.spec.schedules[*].backupMethod***' ` backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched check backup status `kbcli cluster list-backups mysql-qznsyf --namespace ns-yknsj ` No backups found in ns-yknsj namespace. No backups found in ns-yknsj namespace. backup_status:-- No backups found in ns-yknsj namespace. backup_status:-- `kubectl get backupschedule -l app.kubernetes.io/instance=mysql-qznsyf ` `kubectl get backupschedule mysql-qznsyf-mysql-backup-schedule -ojsonpath='***.spec.schedules[*].backupMethod***' ` backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backup_status:mysql-qznsyf-xtrabackup-Running backup_status:mysql-qznsyf-xtrabackup-Running check backup status done backup_status:mysql-qznsyf-xtrabackup-20250901045900 ns-yknsj mysql-qznsyf xtrabackup Completed 6895020 19s Sep 01,2025 12:59 UTC+0800 Sep 01,2025 12:59 UTC+0800 Sep 09,2025 12:59 UTC+0800 `kubectl get backupschedule -l app.kubernetes.io/instance=mysql-qznsyf ` `kubectl get backupschedule mysql-qznsyf-mysql-backup-schedule -ojsonpath='***.spec.schedules[*].backupMethod***' ` backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) backupschedule.dataprotection.kubeblocks.io/mysql-qznsyf-mysql-backup-schedule patched (no change) cluster restore backup Error from server (NotFound): opsrequests.apps.kubeblocks.io "abk-qznsyf" not found `kbcli cluster describe-backup mysql-qznsyf-xtrabackup-20250901045900 --namespace ns-yknsj ` Name: mysql-qznsyf-xtrabackup-20250901045900 Cluster: mysql-qznsyf Namespace: ns-yknsj Spec: Method: xtrabackup Policy Name: mysql-qznsyf-mysql-backup-policy Status: Phase: Completed Total Size: 6895020 ActionSet Name: mysql-xtrabackup Repository: backuprepo-kbcli-test Duration: 19s Expiration Time: Sep 09,2025 12:59 UTC+0800 Start Time: Sep 01,2025 12:59 UTC+0800 Completion Time: Sep 01,2025 12:59 UTC+0800 Path: /ns-yknsj/mysql-qznsyf-e239e358-f691-45f4-a2ca-8f5fb5689d89/mysql/mysql-qznsyf-xtrabackup-20250901045900 Warning Events: `kbcli cluster restore abk-qznsyf --backup mysql-qznsyf-xtrabackup-20250901045900 --namespace ns-yknsj ` Cluster abk-qznsyf created check cluster status `kbcli cluster list abk-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS abk-qznsyf ns-yknsj mysql WipeOut Sep 01,2025 12:59 UTC+0800 clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status: cluster_status: cluster_status: cluster_status: cluster_status: cluster_status: cluster_status: 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 cluster_status:Creating cluster_status:Creating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances abk-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME abk-qznsyf-mysql-0 ns-yknsj abk-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 13:00 UTC+0800 abk-qznsyf-mysql-1 ns-yknsj abk-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 13:00 UTC+0800 check pod status done check cluster role check cluster role done primary: abk-qznsyf-mysql-1;secondary: abk-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i abk-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kbcli cluster describe-backup mysql-qznsyf-xtrabackup-20250901045900 --namespace ns-yknsj ` Name: mysql-qznsyf-xtrabackup-20250901045900 Cluster: mysql-qznsyf Namespace: ns-yknsj Spec: Method: xtrabackup Policy Name: mysql-qznsyf-mysql-backup-policy Status: Phase: Completed Total Size: 6895020 ActionSet Name: mysql-xtrabackup Repository: backuprepo-kbcli-test Duration: 19s Expiration Time: Sep 09,2025 12:59 UTC+0800 Start Time: Sep 01,2025 12:59 UTC+0800 Completion Time: Sep 01,2025 12:59 UTC+0800 Path: /ns-yknsj/mysql-qznsyf-e239e358-f691-45f4-a2ca-8f5fb5689d89/mysql/mysql-qznsyf-xtrabackup-20250901045900 Warning Events: cluster connect Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. *************************** 1. row *************************** Slave_IO_State: Waiting for source to send event Master_Host: abk-qznsyf-mysql-1.abk-qznsyf-mysql-headless Master_User: kbreplicator Master_Port: 3306 Connect_Retry: 60 Master_Log_File: abk-qznsyf-mysql-1-bin.000001 Read_Master_Log_Pos: 19806 Relay_Log_File: relay-bin.000002 Relay_Log_Pos: 19647 Relay_Master_Log_File: abk-qznsyf-mysql-1-bin.000001 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 19405 Relay_Log_Space: 20252 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 2 Master_UUID: 93eaf1ef-86f0-11f0-b4fd-e2eb21756e10 Master_Info_File: mysql.slave_master_info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Replica has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: 93eaf1ef-86f0-11f0-b4fd-e2eb21756e10:1-49 Executed_Gtid_Set: 93eaf1ef-86f0-11f0-b4fd-e2eb21756e10:1-49, 9dd8175a-86e3-11f0-b9ea-421a4f279a8d:1-2358, 9de7a670-86e3-11f0-9ad2-9e44d17ec699:1-3138 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: Master_public_key_path: Get_master_public_key: 0 Network_Namespace: `echo 'show variables like "max_connections";' | kbcli cluster connect abk-qznsyf --namespace ns-yknsj ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. Connect to instance abk-qznsyf-mysql-1: out of abk-qznsyf-mysql-1(primary), abk-qznsyf-mysql-0(secondary) Variable_name Value max_connections 100 connect cluster Success set max_connections to 100 delete cluster abk-qznsyf `kbcli cluster delete abk-qznsyf --auto-approve --namespace ns-yknsj ` Cluster abk-qznsyf deleted pod_info:abk-qznsyf-mysql-0 3/3 Running 0 83s abk-qznsyf-mysql-1 3/3 Running 0 83s No resources found in ns-yknsj namespace. delete cluster pod done No resources found in ns-yknsj namespace. check cluster resource non-exist OK: pvc No resources found in ns-yknsj namespace. delete cluster done No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. cluster delete backup `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge backups mysql-qznsyf-xtrabackup-20250901045900 --namespace ns-yknsj ` backup.dataprotection.kubeblocks.io/mysql-qznsyf-xtrabackup-20250901045900 patched `kbcli cluster delete-backup mysql-qznsyf --name mysql-qznsyf-xtrabackup-20250901045900 --force --auto-approve --namespace ns-yknsj ` Backup mysql-qznsyf-xtrabackup-20250901045900 deleted No opsrequests found in ns-yknsj namespace. cluster xtrabackup backup `kubectl get backuprepo backuprepo-kbcli-test -o jsonpath="***.spec.credential.name***"` `kubectl get backuprepo backuprepo-kbcli-test -o jsonpath="***.spec.credential.namespace***"` `kubectl get secrets kb-backuprepo-bxwnt -n kb-hmwej -o jsonpath="***.data.accessKeyId***"` `kubectl get secrets kb-backuprepo-bxwnt -n kb-hmwej -o jsonpath="***.data.secretAccessKey***"` KUBEBLOCKS NAMESPACE:kb-hmwej get kubeblocks namespace done `kubectl get secrets -l app.kubernetes.io/instance=kbcli-test-minio --namespace kb-hmwej -o jsonpath="***.items[0].data.root-user***"` `kubectl get secrets -l app.kubernetes.io/instance=kbcli-test-minio --namespace kb-hmwej -o jsonpath="***.items[0].data.root-password***"` minio_user:kbclitest,minio_password:kbclitest,minio_endpoint:kbcli-test-minio.kb-hmwej.svc.cluster.local:9000 list minio bucket kbcli-test `echo 'mc config host add minioserver http://kbcli-test-minio.kb-hmwej.svc.cluster.local:9000 kbclitest kbclitest;mc ls minioserver' | kubectl exec -it kbcli-test-minio-669d87677b-7sjlg --namespace kb-hmwej -- bash` Unable to use a TTY - input is not a terminal or the right kind of file list minio bucket done default backuprepo:backuprepo-kbcli-test exists `kbcli cluster backup mysql-qznsyf --method xtrabackup --namespace ns-yknsj ` Backup backup-ns-yknsj-mysql-qznsyf-20250901130204 created successfully, you can view the progress: kbcli cluster list-backups --name=backup-ns-yknsj-mysql-qznsyf-20250901130204 -n ns-yknsj check backup status `kbcli cluster list-backups mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE SOURCE-CLUSTER METHOD STATUS TOTAL-SIZE DURATION CREATE-TIME COMPLETION-TIME EXPIRATION backup-ns-yknsj-mysql-qznsyf-20250901130204 ns-yknsj mysql-qznsyf xtrabackup Running Sep 01,2025 13:02 UTC+0800 backup_status:mysql-qznsyf-xtrabackup-Running backup_status:mysql-qznsyf-xtrabackup-Running check backup status done backup_status:backup-ns-yknsj-mysql-qznsyf-20250901130204 ns-yknsj mysql-qznsyf xtrabackup Completed 6153440 10s Sep 01,2025 13:02 UTC+0800 Sep 01,2025 13:02 UTC+0800 cluster restore backup Error from server (NotFound): opsrequests.apps.kubeblocks.io "abk-qznsyf" not found `kbcli cluster describe-backup backup-ns-yknsj-mysql-qznsyf-20250901130204 --namespace ns-yknsj ` Name: backup-ns-yknsj-mysql-qznsyf-20250901130204 Cluster: mysql-qznsyf Namespace: ns-yknsj Spec: Method: xtrabackup Policy Name: mysql-qznsyf-mysql-backup-policy Status: Phase: Completed Total Size: 6153440 ActionSet Name: mysql-xtrabackup Repository: backuprepo-kbcli-test Duration: 10s Start Time: Sep 01,2025 13:02 UTC+0800 Completion Time: Sep 01,2025 13:02 UTC+0800 Path: /ns-yknsj/mysql-qznsyf-e239e358-f691-45f4-a2ca-8f5fb5689d89/mysql/backup-ns-yknsj-mysql-qznsyf-20250901130204 Warning Events: `kbcli cluster restore abk-qznsyf --backup backup-ns-yknsj-mysql-qznsyf-20250901130204 --namespace ns-yknsj ` Cluster abk-qznsyf created check cluster status `kbcli cluster list abk-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS abk-qznsyf ns-yknsj mysql WipeOut Sep 01,2025 13:02 UTC+0800 clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= cluster_status: cluster_status: cluster_status: cluster_status: cluster_status: 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 cluster_status:Creating cluster_status:Creating cluster_status:Creating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances abk-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME abk-qznsyf-mysql-0 ns-yknsj abk-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 13:02 UTC+0800 abk-qznsyf-mysql-1 ns-yknsj abk-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 13:02 UTC+0800 check pod status done check cluster role check cluster role done primary: abk-qznsyf-mysql-1;secondary: abk-qznsyf-mysql-0 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i abk-qznsyf-mysql-0 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `kbcli cluster describe-backup backup-ns-yknsj-mysql-qznsyf-20250901130204 --namespace ns-yknsj ` Name: backup-ns-yknsj-mysql-qznsyf-20250901130204 Cluster: mysql-qznsyf Namespace: ns-yknsj Spec: Method: xtrabackup Policy Name: mysql-qznsyf-mysql-backup-policy Status: Phase: Completed Total Size: 6153440 ActionSet Name: mysql-xtrabackup Repository: backuprepo-kbcli-test Duration: 10s Start Time: Sep 01,2025 13:02 UTC+0800 Completion Time: Sep 01,2025 13:02 UTC+0800 Path: /ns-yknsj/mysql-qznsyf-e239e358-f691-45f4-a2ca-8f5fb5689d89/mysql/backup-ns-yknsj-mysql-qznsyf-20250901130204 Warning Events: cluster connect Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. *************************** 1. row *************************** Slave_IO_State: Waiting for source to send event Master_Host: abk-qznsyf-mysql-1.abk-qznsyf-mysql-headless Master_User: kbreplicator Master_Port: 3306 Connect_Retry: 60 Master_Log_File: abk-qznsyf-mysql-1-bin.000001 Read_Master_Log_Pos: 16598 Relay_Log_File: relay-bin.000002 Relay_Log_Pos: 16840 Relay_Master_Log_File: abk-qznsyf-mysql-1-bin.000001 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 16598 Relay_Log_Space: 17044 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 2 Master_UUID: f9c59aa2-86f0-11f0-9416-e2eb21756e10 Master_Info_File: mysql.slave_master_info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Replica has read all relay log; waiting for more updates Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: f9c59aa2-86f0-11f0-9416-e2eb21756e10:1-41 Executed_Gtid_Set: 9dd8175a-86e3-11f0-b9ea-421a4f279a8d:1-2358, 9de7a670-86e3-11f0-9ad2-9e44d17ec699:1-3314, f9c59aa2-86f0-11f0-9416-e2eb21756e10:1-41 Auto_Position: 1 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version: Master_public_key_path: Get_master_public_key: 0 Network_Namespace: `echo 'show variables like "max_connections";' | kbcli cluster connect abk-qznsyf --namespace ns-yknsj ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. Connect to instance abk-qznsyf-mysql-1: out of abk-qznsyf-mysql-1(primary), abk-qznsyf-mysql-0(secondary) Variable_name Value max_connections 100 connect cluster Success set max_connections to 100 delete cluster abk-qznsyf `kbcli cluster delete abk-qznsyf --auto-approve --namespace ns-yknsj ` Cluster abk-qznsyf deleted pod_info:abk-qznsyf-mysql-0 3/3 Running 0 89s abk-qznsyf-mysql-1 3/3 Running 0 89s No resources found in ns-yknsj namespace. delete cluster pod done No resources found in ns-yknsj namespace. check cluster resource non-exist OK: pvc No resources found in ns-yknsj namespace. delete cluster done No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. cluster rebulid instances apiVersion: apps.kubeblocks.io/v1alpha1 kind: OpsRequest metadata: generateName: mysql-qznsyf-rebuildinstance- namespace: ns-yknsj spec: type: RebuildInstance clusterName: mysql-qznsyf force: true rebuildFrom: - componentName: mysql instances: - name: mysql-qznsyf-mysql-1 backupName: backup-ns-yknsj-mysql-qznsyf-20250901130204 inPlace: true restoreEnv: - name: BACKUP_FOR_STANDBY value: "true" check cluster status before ops check cluster status done cluster_status:Running `kubectl create -f test_ops_cluster_mysql-qznsyf.yaml` opsrequest.apps.kubeblocks.io/mysql-qznsyf-rebuildinstance-zsdfr created create test_ops_cluster_mysql-qznsyf.yaml Success `rm -rf test_ops_cluster_mysql-qznsyf.yaml` check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:04 UTC+0800 check ops status done ops_status:mysql-qznsyf-rebuildinstance-zsdfr ns-yknsj RebuildInstance mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 13:04 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-rebuildinstance-zsdfr --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-rebuildinstance-zsdfr patched `kbcli cluster delete-ops --name mysql-qznsyf-rebuildinstance-zsdfr --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-rebuildinstance-zsdfr deleted check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql WipeOut Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:53 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 13:05 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success cluster delete backup `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge backups backup-ns-yknsj-mysql-qznsyf-20250901130204 --namespace ns-yknsj ` backup.dataprotection.kubeblocks.io/backup-ns-yknsj-mysql-qznsyf-20250901130204 patched `kbcli cluster delete-backup mysql-qznsyf --name backup-ns-yknsj-mysql-qznsyf-20250901130204 --force --auto-approve --namespace ns-yknsj ` Backup backup-ns-yknsj-mysql-qznsyf-20250901130204 deleted No opsrequests found in ns-yknsj namespace. cluster list-logs `kbcli cluster list-logs mysql-qznsyf --namespace ns-yknsj ` No log files found. You can enable the log feature with the kbcli command below. kbcli cluster update mysql-qznsyf --enable-all-logs=true --namespace ns-yknsj Error from server (NotFound): pods "mysql-qznsyf-mysql-0" not found cluster logs `kbcli cluster logs mysql-qznsyf --tail 30 --namespace ns-yknsj ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) 2025-09-01T04:54:40Z INFO DCS-K8S Found switchover Setting ***"configmap": ***"candidate":"","leader":"mysql-qznsyf-mysql-1"*** 2025-09-01T04:54:41Z INFO DCS-K8S Found switchover Setting ***"configmap": ***"candidate":"","leader":"mysql-qznsyf-mysql-1"*** 2025-09-01T04:54:41Z INFO HA Cluster has no leader, attempt to take the leader 2025-09-01T04:54:41Z INFO MySQL promote success 2025-09-01T04:54:41Z INFO HA Take the leader success! 2025-09-01T04:54:41Z INFO HA Refresh leader ttl 2025-09-01T04:55:04Z INFO HA This member is Cluster's leader 2025-09-01T04:55:04Z DEBUG HA Refresh leader ttl 2025-09-01T04:56:04Z INFO HA This member is Cluster's leader 2025-09-01T04:56:04Z DEBUG HA Refresh leader ttl 2025-09-01T04:57:04Z INFO HA This member is Cluster's leader 2025-09-01T04:57:04Z DEBUG HA Refresh leader ttl 2025-09-01T04:58:04Z INFO HA This member is Cluster's leader 2025-09-01T04:58:04Z DEBUG HA Refresh leader ttl 2025-09-01T04:59:04Z INFO HA This member is Cluster's leader 2025-09-01T04:59:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:00:04Z INFO HA This member is Cluster's leader 2025-09-01T05:00:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:01:04Z INFO HA This member is Cluster's leader 2025-09-01T05:01:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:02:04Z INFO HA This member is Cluster's leader 2025-09-01T05:02:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:03:04Z INFO HA This member is Cluster's leader 2025-09-01T05:03:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:04:04Z INFO HA This member is Cluster's leader 2025-09-01T05:04:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:05:04Z INFO HA This member is Cluster's leader 2025-09-01T05:05:04Z DEBUG HA Refresh leader ttl 2025-09-01T05:06:04Z INFO HA This member is Cluster's leader 2025-09-01T05:06:04Z DEBUG HA Refresh leader ttl cluster logs slow `kbcli cluster logs mysql-qznsyf --tail 30 --file-type=slow --namespace ns-yknsj ` error: get pod component definition name in cluster.yaml fail cluster logs error `kbcli cluster logs mysql-qznsyf --tail 30 --file-type=error --namespace ns-yknsj ` error: get pod component definition name in cluster.yaml fail cluster expose check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster expose mysql-qznsyf --auto-approve --force=true --type internet --enable false --components mysql --namespace ns-yknsj ` OpsRequest mysql-qznsyf-expose-sghhp created successfully, you can view the progress: kbcli cluster describe-ops mysql-qznsyf-expose-sghhp -n ns-yknsj check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-expose-sghhp ns-yknsj Expose mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:06 UTC+0800 check cluster status `kbcli cluster list mysql-qznsyf --show-labels --namespace ns-yknsj ` NAME NAMESPACE CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS CREATED-TIME LABELS mysql-qznsyf ns-yknsj mysql WipeOut Running Sep 01,2025 11:23 UTC+0800 app.kubernetes.io/instance=mysql-qznsyf,clusterdefinition.kubeblocks.io/name=mysql,clusterversion.kubeblocks.io/name= check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances mysql-qznsyf --namespace ns-yknsj ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME mysql-qznsyf-mysql-0 ns-yknsj mysql-qznsyf mysql Running primary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000008/10.224.0.9 Sep 01,2025 12:53 UTC+0800 mysql-qznsyf-mysql-1 ns-yknsj mysql-qznsyf mysql Running secondary 0 200m / 200m 644245094400m / 644245094400m data:14Gi aks-cicdamdpool-38368475-vmss000006/10.224.0.10 Sep 01,2025 13:05 UTC+0800 check pod status done check cluster role check cluster role done primary: mysql-qznsyf-mysql-0;secondary: mysql-qznsyf-mysql-1 check cluster connect `echo 'SHOW SLAVE STATUS\G;' | kbcli cluster connect --namespace ns-yknsj -i mysql-qznsyf-mysql-1 ` Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. check mysql slave success check cluster connect done check ops status `kbcli cluster list-ops mysql-qznsyf --status all --namespace ns-yknsj ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME mysql-qznsyf-expose-sghhp ns-yknsj Expose mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:06 UTC+0800 ops_status:mysql-qznsyf-expose-sghhp ns-yknsj Expose mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:06 UTC+0800 ops_status:mysql-qznsyf-expose-sghhp ns-yknsj Expose mysql-qznsyf mysql Running 0/1 Sep 01,2025 13:06 UTC+0800 check ops status done ops_status:mysql-qznsyf-expose-sghhp ns-yknsj Expose mysql-qznsyf mysql Succeed 1/1 Sep 01,2025 13:06 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests mysql-qznsyf-expose-sghhp --namespace ns-yknsj ` opsrequest.apps.kubeblocks.io/mysql-qznsyf-expose-sghhp patched `kbcli cluster delete-ops --name mysql-qznsyf-expose-sghhp --force --auto-approve --namespace ns-yknsj ` OpsRequest mysql-qznsyf-expose-sghhp deleted `echo 'use mydb; SELECT value FROM tmp_table WHERE id = 1;' | kbcli cluster connect mysql-qznsyf --namespace ns-yknsj ` check data: Connect to instance mysql-qznsyf-mysql-0: out of mysql-qznsyf-mysql-0(primary), mysql-qznsyf-mysql-1(secondary) Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster data consistent Success `kubectl get secrets -l app.kubernetes.io/instance=mysql-qznsyf` set secret: mysql-qznsyf-mysql-account-root `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.username***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.password***"` `kubectl get secrets mysql-qznsyf-mysql-account-root -o jsonpath="***.data.port***"` DB_USERNAME:root;DB_PASSWORD:c5zVze3x6s22594B;DB_PORT:3306;DB_DATABASE:mysql `echo "echo \"use mydb; SELECT value FROM tmp_table WHERE id = 1;\" | mysql -P3306 -h127.0.0.1 -uroot -p'c5zVze3x6s22594B'" | kubectl exec -it mysql-qznsyf-mysql-1 --namespace ns-yknsj -- bash ` check readonly data: Defaulted container "mysql" out of: mysql, lorry, config-manager, init-data (init), init-xtrabackup (init), init-jemalloc (init), init-syncer (init), init-lorry (init) Unable to use a TTY - input is not a terminal or the right kind of file Warning: arning] Using a password on the command line interface can be insecure. value vdawm check cluster readonly data consistent Success delete cluster mysql-qznsyf `kbcli cluster delete mysql-qznsyf --auto-approve --namespace ns-yknsj ` Cluster mysql-qznsyf deleted pod_info:mysql-qznsyf-mysql-0 3/3 Running 0 13m mysql-qznsyf-mysql-1 3/3 Running 0 2m No resources found in ns-yknsj namespace. delete cluster pod done No resources found in ns-yknsj namespace. check cluster resource non-exist OK: pvc No resources found in ns-yknsj namespace. delete cluster done No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. No resources found in ns-yknsj namespace. Mysql Test Suite All Done! --------------------------------------Mysql (Topology = replication Replicas 2) Test Result-------------------------------------- [PASSED]|[Create]|[ComponentVersion=mysql;ServiceVersion=8.0.30;]|[Description=Create a cluster and component version mysql and service version 8.0.30] [PASSED]|[Connect]|[ComponentName=mysql]|[Description=Connect to the cluster] [PASSED]|[AddData]|[Values=vdawm]|[Description=Add data to the cluster] [PASSED]|[CheckAddDataReadonly]|[Values=vdawm;Role=Readonly]|[Description=Add data to the cluster readonly] [PASSED]|[Expose]|[Enable=true;TYPE=internet;ComponentName=mysql]|[Description=Expose Enable the internet service with mysql component] [PASSED]|[Failover]|[HA=Network Corrupt;Durations=2m;ComponentName=mysql]|[Description=Simulates network corrupt fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to corrupt network.] [WARNING]|[CheckFailover]|[FailoverType=fullcpu]|[Description=-] [PASSED]|[Failover]|[HA=Full CPU;Durations=2m;ComponentName=mysql]|[Description=Simulates conditions where pods experience CPU full either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to high CPU load.] [PASSED]|[HorizontalScaling Out]|[ComponentName=mysql]|[Description=HorizontalScaling Out the cluster specify component mysql] [PASSED]|[HorizontalScaling In]|[ComponentName=mysql]|[Description=HorizontalScaling In the cluster specify component mysql] [PASSED]|[No-Failover]|[HA=Time Offset;Durations=2m;ComponentName=mysql]|[Description=Simulates a time offset scenario thereby testing the application's resilience to potential slowness/unavailability of some replicas due to time offset.] [PASSED]|[Failover]|[HA=Pod Failure;Durations=2m;ComponentName=mysql]|[Description=Simulates conditions where pods experience failure for a period of time either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to failure.] [PASSED]|[Failover]|[HA=OOM;Durations=2m;ComponentName=mysql]|[Description=Simulates conditions where pods experience OOM either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to high Memory load.] [PASSED]|[Failover]|[HA=Kill 1;ComponentName=mysql]|[Description=Simulates conditions where process 1 killed either due to expected/undesired processes thereby testing the application's resilience to unavailability of some replicas due to abnormal termination signals.] [PASSED]|[VolumeExpansion]|[ComponentName=mysql]|[Description=VolumeExpansion the cluster specify component mysql] [PASSED]|[No-Failover]|[HA=DNS Random;Durations=2m;ComponentName=mysql]|[Description=Simulates conditions where pods experience random IP addresses being returned by the DNS service for a period of time either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to the DNS service returning random IP addresses.] [PASSED]|[Failover]|[HA=Evicting Pod;ComponentName=mysql]|[Description=Simulates conditions where pods evicting either due to node drained thereby testing the application's resilience to unavailability of some replicas due to evicting.] [PASSED]|[VerticalScaling]|[ComponentName=mysql]|[Description=VerticalScaling the cluster specify component mysql] [PASSED]|[Update]|[Monitor=true]|[Description=Update the cluster Monitor enable] [PASSED]|[No-Failover]|[HA=Network Delay;Durations=2m;ComponentName=mysql]|[Description=Simulates network delay fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to delay network.] [PASSED]|[Update]|[Logs=Enable]|[Description=Update the cluster Logs enable] [PASSED]|[No-Failover]|[HA=Network Partition;Durations=2m;ComponentName=mysql]|[Description=Simulates network partition fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to partition network.] [PASSED]|[No-Failover]|[HA=Connection Stress;ComponentName=mysql]|[Description=Simulates conditions where pods experience connection stress either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to high Connection load.] [PASSED]|[Failover]|[HA=Network Loss;Durations=2m;ComponentName=mysql]|[Description=Simulates network loss fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to loss network.] [PASSED]|[Failover]|[HA=Network Bandwidth;Durations=2m;ComponentName=mysql]|[Description=Simulates network bandwidth fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to bandwidth network.] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.30;ComponentVersionTo=8.0.31]|[Description=Upgrade the cluster specify component mysql service version from 8.0.30 to 8.0.31] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.31;ComponentVersionTo=8.0.32]|[Description=Upgrade the cluster specify component mysql service version from 8.0.31 to 8.0.32] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.32;ComponentVersionTo=8.0.33]|[Description=Upgrade the cluster specify component mysql service version from 8.0.32 to 8.0.33] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.33;ComponentVersionTo=8.0.34]|[Description=Upgrade the cluster specify component mysql service version from 8.0.33 to 8.0.34] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.34;ComponentVersionTo=8.0.35]|[Description=Upgrade the cluster specify component mysql service version from 8.0.34 to 8.0.35] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.35;ComponentVersionTo=8.0.39]|[Description=Upgrade the cluster specify component mysql service version from 8.0.35 to 8.0.39] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.39;ComponentVersionTo=8.0.35]|[Description=Upgrade the cluster specify component mysql service version from 8.0.39 to 8.0.35] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.35;ComponentVersionTo=8.0.36]|[Description=Upgrade the cluster specify component mysql service version from 8.0.35 to 8.0.36] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.36;ComponentVersionTo=8.0.39]|[Description=Upgrade the cluster specify component mysql service version from 8.0.36 to 8.0.39] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.39;ComponentVersionTo=8.0.36]|[Description=Upgrade the cluster specify component mysql service version from 8.0.39 to 8.0.36] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.36;ComponentVersionTo=8.0.37]|[Description=Upgrade the cluster specify component mysql service version from 8.0.36 to 8.0.37] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.37;ComponentVersionTo=8.0.39]|[Description=Upgrade the cluster specify component mysql service version from 8.0.37 to 8.0.39] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.39;ComponentVersionTo=8.0.37]|[Description=Upgrade the cluster specify component mysql service version from 8.0.39 to 8.0.37] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.37;ComponentVersionTo=8.0.38]|[Description=Upgrade the cluster specify component mysql service version from 8.0.37 to 8.0.38] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.38;ComponentVersionTo=8.0.39]|[Description=Upgrade the cluster specify component mysql service version from 8.0.38 to 8.0.39] [PASSED]|[Upgrade]|[ComponentName=mysql;ComponentVersionFrom=8.0.39;ComponentVersionTo=8.0.38]|[Description=Upgrade the cluster specify component mysql service version from 8.0.39 to 8.0.38] [PASSED]|[No-Failover]|[HA=DNS Error;Durations=2m;ComponentName=mysql]|[Description=Simulates conditions where pods experience DNS service errors for a period of time either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to DNS service errors.] [PASSED]|[Stop]|[-]|[Description=Stop the cluster] [PASSED]|[Start]|[-]|[Description=Start the cluster] [PASSED]|[No-Failover]|[HA=Network Duplicate;Durations=2m;ComponentName=mysql]|[Description=Simulates network duplicate fault thereby testing the application's resilience to potential slowness/unavailability of some replicas due to duplicate network.] [PASSED]|[Reconfiguring]|[ComponentName=mysql;binlog_expire_logs_seconds=691200]|[Description=Reconfiguring the cluster specify component mysql set binlog_expire_logs_seconds=691200] [PASSED]|[Failover]|[HA=Pod Kill;ComponentName=mysql]|[Description=Simulates conditions where pods experience kill for a period of time either due to expected/undesired processes thereby testing the application's resilience to potential slowness/unavailability of some replicas due to kill.] [PASSED]|[Restart]|[-]|[Description=Restart the cluster] [PASSED]|[SwitchOver]|[ComponentName=mysql]|[Description=SwitchOver the cluster specify component mysql] [PASSED]|[Bench]|[ComponentName=mysql]|[Description=Bench the cluster service with mysql component] [PASSED]|[Bench]|[HostType=LB;ComponentName=mysql]|[Description=Bench the cluster LB service with mysql component] [PASSED]|[Update]|[TerminationPolicy=WipeOut]|[Description=Update the cluster TerminationPolicy WipeOut] [PASSED]|[Backup]|[Schedule=true;BackupMethod=xtrabackup]|[Description=The cluster Schedule xtrabackup Backup] [PASSED]|[Restore]|[Schedule=true;BackupMethod=xtrabackup]|[Description=The cluster Schedule xtrabackup Restore] [PASSED]|[Connect]|[ComponentName=mysql]|[Description=Connect to the cluster] [PASSED]|[Delete Restore Cluster]|[Schedule=true;BackupMethod=xtrabackup]|[Description=Delete the Schedule xtrabackup restore cluster] [PASSED]|[Backup]|[BackupMethod=xtrabackup]|[Description=The cluster xtrabackup Backup] [PASSED]|[Restore]|[BackupMethod=xtrabackup]|[Description=The cluster xtrabackup Restore] [PASSED]|[Connect]|[ComponentName=mysql]|[Description=Connect to the cluster] [PASSED]|[Delete Restore Cluster]|[BackupMethod=xtrabackup]|[Description=Delete the xtrabackup restore cluster] [PASSED]|[RebuildInstance]|[ComponentName=mysql]|[Description=Rebuild the cluster instance specify component mysql] [PASSED]|[Expose]|[Disable=true;TYPE=internet;ComponentName=mysql]|[Description=Expose Disable the internet service with mysql component] [PASSED]|[Delete]|[-]|[Description=Delete the cluster] [END]