Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Wescale cluster status is always creating #5547

Closed
ahjing99 opened this issue Oct 19, 2023 · 0 comments · Fixed by #5551
Closed

[BUG]Wescale cluster status is always creating #5547

ahjing99 opened this issue Oct 19, 2023 · 0 comments · Fixed by #5551
Assignees
Labels
bug kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Milestone

Comments

@ahjing99
Copy link
Collaborator

➜ ~ kbcli version
Kubernetes: v1.27.3-gke.100
KubeBlocks: 0.7.0-beta.7
kbcli: 0.7.0-beta.7

   `kbcli cluster create  mysql  scale-gllygj             --termination-policy=WipeOut             --cpu=0.5             --memory=1             --storage=20                      --mode='raftGroup'                     --replicas=3                     --storage=20                     --availability-policy=none                     --proxy-enabled=true  --namespace default `

Info: --version is not specified, ac-mysql-8.0.30 is applied by default.
Cluster scale-gllygj created

➜  ~ kbcli cluster describe scale-gllygj
Name: scale-gllygj	 Created Time: Oct 19,2023 17:10 UTC+0800
NAMESPACE   CLUSTER-DEFINITION   VERSION           STATUS     TERMINATION-POLICY
default     apecloud-mysql       ac-mysql-8.0.30   Creating   WipeOut

Endpoints:
COMPONENT   MODE        INTERNAL                                              EXTERNAL
mysql       ReadWrite   scale-gllygj-mysql.default.svc.cluster.local:3306     <none>
vtgate      ReadWrite   scale-gllygj-vtgate.default.svc.cluster.local:15306   <none>

Topology:
COMPONENT      INSTANCE                      ROLE       STATUS    AZ              NODE                                                  CREATED-TIME
mysql          scale-gllygj-mysql-0          leader     Running   us-central1-c   gke-yjtest-default-pool-ff74a9b4-w1bp/10.128.15.211   Oct 19,2023 17:10 UTC+0800
mysql          scale-gllygj-mysql-1          follower   Running   us-central1-c   gke-yjtest-default-pool-ff74a9b4-40mr/10.128.15.213   Oct 19,2023 17:10 UTC+0800
mysql          scale-gllygj-mysql-2          follower   Running   us-central1-c   gke-yjtest-default-pool-ff74a9b4-dh81/10.128.15.214   Oct 19,2023 17:10 UTC+0800
vtcontroller   scale-gllygj-vtcontroller-0   <none>     Running   us-central1-c   gke-yjtest-default-pool-ff74a9b4-dh81/10.128.15.214   Oct 19,2023 17:10 UTC+0800
vtgate         scale-gllygj-vtgate-0         <none>     Running   us-central1-c   gke-yjtest-default-pool-ff74a9b4-40mr/10.128.15.213   Oct 19,2023 17:10 UTC+0800

Resources Allocation:
COMPONENT      DEDICATED   CPU(REQUEST/LIMIT)   MEMORY(REQUEST/LIMIT)   STORAGE-SIZE   STORAGE-CLASS
mysql          false       500m / 500m          1Gi / 1Gi               data:20Gi      kb-default-sc
vtcontroller   false       500m / 500m          128Mi / 128Mi           data:20Gi      kb-default-sc
vtgate         false       500m / 500m          <none>                  <none>         <none>

Images:
COMPONENT      TYPE           IMAGE
mysql          mysql          infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/apecloud-mysql-server:8.0.30-5.beta2.20230830.g4ca1eb8.13
vtcontroller   vtcontroller   infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1
vtgate         vtgate         infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/apecloud-mysql-scale:0.1.1

Show cluster events: kbcli cluster list-events -n default scale-gllygj

➜  ~ kbcli cluster connect scale-gllygj
Connect to instance scale-gllygj-mysql-0: out of scale-gllygj-mysql-0(leader), scale-gllygj-mysql-2(follower), scale-gllygj-mysql-1(follower)
Defaulted container "mysql" out of: mysql, metrics, vttablet, kb-checkrole, config-manager, action-0, action-1, kb-role-probe, role-agent-installer (init)
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1418
Server version: 8.0.30 WeSQL Server - GPL, Release 5, Revision 4ca1eb8

Copyright (c) 2000, 2022, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

k logs kubeblocks-f8b479cc8-jwwvf >kb.txt
Defaulted container "manager" out of: manager, tools (init), datascript (init)
kb.txt

@ahjing99 ahjing99 added kind/bug Something isn't working severity/major Great chance user will encounter the same problem labels Oct 19, 2023
@ahjing99 ahjing99 added this to the Release 0.7.0 milestone Oct 19, 2023
@free6om free6om linked a pull request Oct 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants