apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.18k stars 181 forks source link

[BUG]1.0 Got different results when using different versions both in cmpv to create zookeeper clusters #8470

Closed tianyue86 closed 2 days ago

tianyue86 commented 1 week ago

Describe the env

Kubernetes: v1.30.4-eks-a737599
KubeBlocks: 1.0.0-beta.2
kbcli: 1.0.0-alpha.1

To Reproduce Steps to reproduce the behavior:

  1. Got different results when using different versions both in cmpv to create cluster img_v3_02gl_443f8413-27b8-4a74-9998-69cafbd40e8g
NAMESPACE   NAME                   CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS     AGE
default             zkeeper-dsuqgc                                             Delete                             Running    3m54s
default             zkeeper-enqmff                                              Delete                             Failed     5m14s

check pod:
zkeeper-enqmff-zookeeper-0                                     1/2     CrashLoopBackOff        10 (9s ago)      26m
zkeeper-enqmff-zookeeper-1                                     1/2     CrashLoopBackOff        10 (6s ago)      26m

Events:
  Type     Reason                  Age                   From                     Message
  ----     ------                  ----                  ----                     -------
  Normal   Scheduled               27m                   default-scheduler        Successfully assigned default/zkeeper-enqmff-zookeeper-0 to ip-172-31-2-87.ap-northeast-1.compute.internal
  Normal   SuccessfulAttachVolume  27m                   attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-a879fa41-f818-47e7-af9b-66db88aa745f"
  Normal   SuccessfulAttachVolume  27m                   attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-58d43355-56f6-46b0-b326-817686d1b611"
  Normal   Pulled                  27m                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kubeblocks-tools:1.0.0-beta.2" already present on machine
  Normal   Created                 27m                   kubelet                  Created container init-kbagent
  Normal   Started                 27m                   kubelet                  Started container init-kbagent
  Normal   Pulled                  27m                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/zookeeper:3.4.14" already present on machine
  Normal   Created                 27m                   kubelet                  Created container kbagent
  Normal   Started                 27m                   kubelet                  Started container kbagent
  Normal   Created                 26m (x4 over 27m)     kubelet                  Created container zookeeper
  Normal   Started                 26m (x4 over 27m)     kubelet                  Started container zookeeper
  Normal   Pulled                  26m (x4 over 27m)     kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/zookeeper:3.4.14" already present on machine
  Normal   roleProbe               26m                   kbagent                  {"instance":"zkeeper-enqmff-zookeeper","probe":"roleProbe","code":0}
  Warning  BackOff                 118s (x127 over 27m)  kubelet                  Back-off restarting failed container zookeeper in pod zkeeper-enqmff-zookeeper-0_default(4364bd6b-e3d9-4852-84c9-6673be721c8c)
  1. Check cmpv
    tianyue@apeclouds-MacBook-Pro kbcli % k get cmpv|grep zookeeper
    pulsar-zookeeper          2.11.2,3.0.2                                                                                     Available   4h15m
    zookeeper                 3.4.14,3.6.4,3.7.2,3.8.4,3.9.2

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.