source commons files source engines files source kubeblocks files `kubectl get namespace | grep ns-oldcz ` `kubectl create namespace ns-oldcz` namespace/ns-oldcz created create namespace ns-oldcz done download kbcli `gh release list --repo apecloud/kbcli --limit 100 | (grep "1.0" || true)` `curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash -s v1.0.0` 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 33.6M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 33.6M 100 33.6M 0 0 96.8M 0 --:--:-- --:--:-- --:--:-- 354M kbcli installed successfully. Kubernetes: v1.32.5-eks-5d4a308 KubeBlocks: 1.0.0 kbcli: 1.0.0 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 v1.0.0 done Kubernetes: v1.32.5-eks-5d4a308 KubeBlocks: 1.0.0 kbcli: 1.0.0 Kubernetes Env: v1.32.5-eks-5d4a308 check snapshot controller check snapshot controller done eks default-vsc found POD_RESOURCES: No resources found found default storage class: gp3 KubeBlocks version is:1.0.0 skip upgrade KubeBlocks current KubeBlocks version: 1.0.0 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 component definition set component name:yashandb set component version set component version:yashandb set service versions:23.1.1-100 set service versions sorted:23.1.1-100 set yashandb component definition set yashandb component definition yashandb-1.0.0-alpha.0 set replicas first:1,23.1.1-100 set replicas third:1,23.1.1-100 set replicas fourth:1,23.1.1-100 set minimum cmpv service version set minimum cmpv service version replicas:1,23.1.1-100 REPORT_COUNT:1 CLUSTER_TOPOLOGY: Error from server (NotFound): clusterdefinitions.apps.kubeblocks.io "yashandb" not found Not found topology in cluster definition yashandb set yashandb component definition set yashandb component definition yashandb-1.0.0-alpha.0 LIMIT_CPU:0.1 LIMIT_MEMORY:0.5 storage size: 1 No resources found in ns-oldcz namespace. termination_policy:WipeOut create 1 replica WipeOut yashandb cluster check component definition set component definition by component version check cmpd by labels check cmpd by compDefs set component definition: yashandb-1.0.0-alpha.0 by component version:yashandb apiVersion: apps.kubeblocks.io/v1 kind: Cluster metadata: name: yashandb-jqldgd namespace: ns-oldcz spec: terminationPolicy: WipeOut componentSpecs: - name: yashandb componentDef: yashandb-1.0.0-alpha.0 tls: false replicas: 1 resources: requests: cpu: 100m memory: 0.5Gi limits: cpu: 100m memory: 0.5Gi volumeClaimTemplates: - name: data spec: storageClassName: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi `kubectl apply -f test_create_yashandb-jqldgd.yaml` cluster.apps.kubeblocks.io/yashandb-jqldgd created apply test_create_yashandb-jqldgd.yaml Success `rm -rf test_create_yashandb-jqldgd.yaml` check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut May 28,2025 11:38 UTC+0800 cluster_status: cluster_status:Creating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME yashandb-jqldgd-yashandb-0 ns-oldcz yashandb-jqldgd yashandb Running us-west-2a 100m / 100m 512Mi / 512Mi data:1Gi ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:39 UTC+0800 check pod status done Error from server (NotFound): services "yashandb-jqldgd-yashandb" not found check cluster connect `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'"` check cluster connect done `kubectl get secrets -l app.kubernetes.io/instance=yashandb-jqldgd` No resources found in ns-oldcz namespace. Not found cluster secret DB_USERNAME:;DB_PASSWORD:;DB_PORT:;DB_DATABASE: There is no password in Type: 47. describe cluster `kbcli cluster describe yashandb-jqldgd --namespace ns-oldcz ` Name: yashandb-jqldgd Created Time: May 28,2025 11:38 UTC+0800 NAMESPACE CLUSTER-DEFINITION TOPOLOGY STATUS TERMINATION-POLICY ns-oldcz Running WipeOut Endpoints: COMPONENT INTERNAL EXTERNAL yashandb yashandb-jqldgd-yashandb.ns-oldcz.svc.cluster.local:1688 Topology: COMPONENT SERVICE-VERSION INSTANCE ROLE STATUS AZ NODE CREATED-TIME yashandb 23.1.1-100 yashandb-jqldgd-yashandb-0 Running us-west-2a ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:39 UTC+0800 Resources Allocation: COMPONENT INSTANCE-TEMPLATE CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE-SIZE STORAGE-CLASS yashandb 100m / 100m 512Mi / 512Mi data:1Gi kb-default-sc Images: COMPONENT COMPONENT-DEFINITION IMAGE yashandb yashandb-1.0.0-alpha.0 docker.io/apecloud/yashandb-personal:23.1.1.100 Show cluster events: kbcli cluster list-events -n ns-oldcz yashandb-jqldgd `kbcli cluster label yashandb-jqldgd app.kubernetes.io/instance- --namespace ns-oldcz ` label "app.kubernetes.io/instance" not found. `kbcli cluster label yashandb-jqldgd app.kubernetes.io/instance=yashandb-jqldgd --namespace ns-oldcz ` `kbcli cluster label yashandb-jqldgd --list --namespace ns-oldcz ` NAME NAMESPACE LABELS yashandb-jqldgd ns-oldcz app.kubernetes.io/instance=yashandb-jqldgd label cluster app.kubernetes.io/instance=yashandb-jqldgd Success `kbcli cluster label case.name=kbcli.test1 -l app.kubernetes.io/instance=yashandb-jqldgd --namespace ns-oldcz ` `kbcli cluster label yashandb-jqldgd --list --namespace ns-oldcz ` NAME NAMESPACE LABELS yashandb-jqldgd ns-oldcz app.kubernetes.io/instance=yashandb-jqldgd case.name=kbcli.test1 label cluster case.name=kbcli.test1 Success `kbcli cluster label yashandb-jqldgd case.name=kbcli.test2 --overwrite --namespace ns-oldcz ` `kbcli cluster label yashandb-jqldgd --list --namespace ns-oldcz ` NAME NAMESPACE LABELS yashandb-jqldgd ns-oldcz app.kubernetes.io/instance=yashandb-jqldgd case.name=kbcli.test2 label cluster case.name=kbcli.test2 Success `kbcli cluster label yashandb-jqldgd case.name- --namespace ns-oldcz ` `kbcli cluster label yashandb-jqldgd --list --namespace ns-oldcz ` NAME NAMESPACE LABELS yashandb-jqldgd ns-oldcz app.kubernetes.io/instance=yashandb-jqldgd delete cluster label case.name Success cluster connect Error from server (NotFound): services "yashandb-jqldgd-yashandb-compdef" not found `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'" ` Defaulted container "yashandb-container" out of: yashandb-container, volume-permissions (init) Unable to use a TTY - input is not a terminal or the right kind of file /home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688 connect cluster Success cluster stop check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster stop yashandb-jqldgd --auto-approve --force=true --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-stop-zn859 created successfully, you can view the progress: kbcli cluster describe-ops yashandb-jqldgd-stop-zn859 -n ns-oldcz check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-stop-zn859 ns-oldcz Stop yashandb-jqldgd yashandb Running 0/1 May 28,2025 11:40 UTC+0800 check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut Stopping May 28,2025 11:38 UTC+0800 app.kubernetes.io/instance=yashandb-jqldgd cluster_status:Stopping cluster_status:Stopping cluster_status:Stopping cluster_status:Stopping check cluster status done cluster_status:Stopped check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` 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 yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-stop-zn859 ns-oldcz Stop yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:40 UTC+0800 check ops status done ops_status:yashandb-jqldgd-stop-zn859 ns-oldcz Stop yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:40 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests.operations yashandb-jqldgd-stop-zn859 --namespace ns-oldcz ` opsrequest.operations.kubeblocks.io/yashandb-jqldgd-stop-zn859 patched `kbcli cluster delete-ops --name yashandb-jqldgd-stop-zn859 --force --auto-approve --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-stop-zn859 deleted cluster start check cluster status before ops check cluster status done cluster_status:Stopped `kbcli cluster start yashandb-jqldgd --force=true --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-start-2rwph created successfully, you can view the progress: kbcli cluster describe-ops yashandb-jqldgd-start-2rwph -n ns-oldcz check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-start-2rwph ns-oldcz Start yashandb-jqldgd yashandb Running 0/1 May 28,2025 11:41 UTC+0800 check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut Running May 28,2025 11:38 UTC+0800 app.kubernetes.io/instance=yashandb-jqldgd check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME yashandb-jqldgd-yashandb-0 ns-oldcz yashandb-jqldgd yashandb Running us-west-2a 100m / 100m 512Mi / 512Mi data:1Gi ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:41 UTC+0800 check pod status done Error from server (NotFound): services "yashandb-jqldgd-yashandb" not found check cluster connect `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'"` check cluster connect done check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-start-2rwph ns-oldcz Start yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:41 UTC+0800 check ops status done ops_status:yashandb-jqldgd-start-2rwph ns-oldcz Start yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:41 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests.operations yashandb-jqldgd-start-2rwph --namespace ns-oldcz ` opsrequest.operations.kubeblocks.io/yashandb-jqldgd-start-2rwph patched `kbcli cluster delete-ops --name yashandb-jqldgd-start-2rwph --force --auto-approve --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-start-2rwph deleted cluster restart check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster restart yashandb-jqldgd --auto-approve --force=true --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-restart-996sc created successfully, you can view the progress: kbcli cluster describe-ops yashandb-jqldgd-restart-996sc -n ns-oldcz check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-restart-996sc ns-oldcz Restart yashandb-jqldgd yashandb Running 0/1 May 28,2025 11:41 UTC+0800 check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut Updating May 28,2025 11:38 UTC+0800 app.kubernetes.io/instance=yashandb-jqldgd cluster_status:Updating cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME yashandb-jqldgd-yashandb-0 ns-oldcz yashandb-jqldgd yashandb Running us-west-2a 100m / 100m 512Mi / 512Mi data:1Gi ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:41 UTC+0800 check pod status done Error from server (NotFound): services "yashandb-jqldgd-yashandb" not found check cluster connect `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'"` check cluster connect done check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-restart-996sc ns-oldcz Restart yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:41 UTC+0800 check ops status done ops_status:yashandb-jqldgd-restart-996sc ns-oldcz Restart yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:41 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests.operations yashandb-jqldgd-restart-996sc --namespace ns-oldcz ` opsrequest.operations.kubeblocks.io/yashandb-jqldgd-restart-996sc patched `kbcli cluster delete-ops --name yashandb-jqldgd-restart-996sc --force --auto-approve --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-restart-996sc deleted check cluster status before ops check cluster status done cluster_status:Running `kbcli cluster vscale yashandb-jqldgd --auto-approve --force=true --components yashandb --cpu 200m --memory 0.6Gi --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-verticalscaling-m7mcm created successfully, you can view the progress: kbcli cluster describe-ops yashandb-jqldgd-verticalscaling-m7mcm -n ns-oldcz check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-verticalscaling-m7mcm ns-oldcz VerticalScaling yashandb-jqldgd yashandb Running 0/1 May 28,2025 11:42 UTC+0800 check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut Updating May 28,2025 11:38 UTC+0800 app.kubernetes.io/instance=yashandb-jqldgd cluster_status:Updating cluster_status:Updating check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME yashandb-jqldgd-yashandb-0 ns-oldcz yashandb-jqldgd yashandb Running us-west-2a 200m / 200m 644245094400m / 644245094400m data:1Gi ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:42 UTC+0800 check pod status done Error from server (NotFound): services "yashandb-jqldgd-yashandb" not found check cluster connect `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'"` check cluster connect done check ops status `kbcli cluster list-ops yashandb-jqldgd --status all --namespace ns-oldcz ` NAME NAMESPACE TYPE CLUSTER COMPONENT STATUS PROGRESS CREATED-TIME yashandb-jqldgd-verticalscaling-m7mcm ns-oldcz VerticalScaling yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:42 UTC+0800 check ops status done ops_status:yashandb-jqldgd-verticalscaling-m7mcm ns-oldcz VerticalScaling yashandb-jqldgd yashandb Succeed 1/1 May 28,2025 11:42 UTC+0800 `kubectl patch -p '***"metadata":***"finalizers":[]***' --type=merge opsrequests.operations yashandb-jqldgd-verticalscaling-m7mcm --namespace ns-oldcz ` opsrequest.operations.kubeblocks.io/yashandb-jqldgd-verticalscaling-m7mcm patched `kbcli cluster delete-ops --name yashandb-jqldgd-verticalscaling-m7mcm --force --auto-approve --namespace ns-oldcz ` OpsRequest yashandb-jqldgd-verticalscaling-m7mcm deleted cluster update terminationPolicy WipeOut `kbcli cluster update yashandb-jqldgd --termination-policy=WipeOut --namespace ns-oldcz ` cluster.apps.kubeblocks.io/yashandb-jqldgd updated (no change) check cluster status `kbcli cluster list yashandb-jqldgd --show-labels --namespace ns-oldcz ` NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME LABELS yashandb-jqldgd ns-oldcz WipeOut Running May 28,2025 11:38 UTC+0800 app.kubernetes.io/instance=yashandb-jqldgd check cluster status done cluster_status:Running check pod status `kbcli cluster list-instances yashandb-jqldgd --namespace ns-oldcz ` NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME yashandb-jqldgd-yashandb-0 ns-oldcz yashandb-jqldgd yashandb Running us-west-2a 200m / 200m 644245094400m / 644245094400m data:1Gi ip-172-31-6-100.us-west-2.compute.internal/172.31.6.100 May 28,2025 11:42 UTC+0800 check pod status done Error from server (NotFound): services "yashandb-jqldgd-yashandb" not found check cluster connect `kubectl exec -it yashandb-jqldgd-yashandb-0 --namespace ns-oldcz -- sh -c "echo '/home/yashan/bin/yasboot sql -d sys/yasdb_123@:1688'"` connect checking... connect checking... check cluster connect done cluster list-logs `kbcli cluster list-logs yashandb-jqldgd --namespace ns-oldcz ` No log files found. Error from server (NotFound): pods "yashandb-jqldgd-yashandb-0" not found cluster logs `kbcli cluster logs yashandb-jqldgd --tail 30 --namespace ns-oldcz ` Defaulted container "yashandb-container" out of: yashandb-container, volume-permissions (init) delete cluster yashandb-jqldgd `kbcli cluster delete yashandb-jqldgd --auto-approve --namespace ns-oldcz ` Cluster yashandb-jqldgd deleted pod_info:yashandb-jqldgd-yashandb-0 1/1 Terminating 2 (18s ago) 50s No resources found in ns-oldcz namespace. delete cluster pod done No resources found in ns-oldcz namespace. check cluster resource non-exist OK: pvc No resources found in ns-oldcz namespace. delete cluster done No resources found in ns-oldcz namespace. No resources found in ns-oldcz namespace. No resources found in ns-oldcz namespace. Yashan Test Suite All Done! --------------------------------------Yashandb (Topology = Replicas 1) Test Result-------------------------------------- [PASSED]|[Create]|[ComponentDefinition=yashandb-1.0.0-alpha.0;ComponentVersion=yashandb;ServiceVersion=23.1.1-100;]|[Description=Create a cluster with the specified component definition yashandb-1.0.0-alpha.0 and component version yashandb and service version 23.1.1-100] [PASSED]|[Connect]|[ComponentName=yashandb]|[Description=Connect to the cluster] [PASSED]|[Stop]|[-]|[Description=Stop the cluster] [PASSED]|[Start]|[-]|[Description=Start the cluster] [PASSED]|[Restart]|[-]|[Description=Restart the cluster] [PASSED]|[VerticalScaling]|[ComponentName=yashandb]|[Description=VerticalScaling the cluster specify component yashandb] [PASSED]|[Update]|[TerminationPolicy=WipeOut]|[Description=Update the cluster TerminationPolicy WipeOut] [PASSED]|[Delete]|[-]|[Description=Delete the cluster] [END]