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.14k stars 176 forks source link

[BUG]0.8.0kbcli connect 0.7.2 oceanbase failed #6338

Closed ahjing99 closed 10 months ago

ahjing99 commented 10 months ago
  1. Install 0.7.2 kbcli and kubeblocks
  2. Create oceanbase
  3. Upgrade kbcli and kubeblocks to 0.8.0
    
    ➜  ~ kbcli version
    Kubernetes: v1.27.3-gke.100
    KubeBlocks: 0.8.0-beta.37
    kbcli: 0.8.0-beta.36
    WARNING: version difference between kbcli (0.8.0-beta.36) and kubeblocks (0.8.0-beta.37)

➜ ~ helm list -A | grep oceanbase kb-addon-oceanbase kb-system 1 2024-01-05 02:01:55.610384123 +0000 UTCdeployed oceanbase-0.7.2 4.2.0.0-100010032023083021 ➜ ~

4. kbcli cluster connect oceanbase failed

➜ ~ kbcli cluster connect ocbase-rrnajn Connect to instance ocbase-rrnajn-ob-bundle-0: out of ocbase-rrnajn-ob-bundle-0, ocbase-rrnajn-ob-bundle-1, ocbase-rrnajn-ob-bundle-2 mysql: [Warning] option 'port': value -uroot adjusted to 0. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111) command terminated with exit code 1

5. While 0.7.2 kbcli can connect to oceanbase

➜ ~ kbcli72 version Kubernetes: v1.27.3-gke.100 KubeBlocks: 0.8.0-beta.37 kbcli: 0.7.2 WARNING: version difference between kbcli (0.7.2) and kubeblocks (0.8.0-beta.37)

➜ ~ kbcli72 cluster connect ocbase-rrnajn Connect to instance ocbase-rrnajn-ob-bundle-0: out of ocbase-rrnajn-ob-bundle-0, ocbase-rrnajn-ob-bundle-1, ocbase-rrnajn-ob-bundle-2 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3221518691 Server version: 5.7.25 OceanBase_CE 4.2.0.0 (r100010032023083021-7e912e012b5f2036b79eaeecaaf59884efc184fd) (Built Aug 30 2023 21:30:23)

Copyright (c) 2000, 2021, 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> exit



➜  ~ kbcli report cluster ocbase-rrnajn --with-logs --all-containers
reporting cluster information to report-cluster-ocbase-rrnajn-2024-01-05-13-39-15.zip
processing manifests                               OK
processing events                                  OK
process pod logs                                   OK
[report-cluster-ocbase-rrnajn-2024-01-05-13-39-15.zip](https://github.com/apecloud/kubeblocks/files/13838311/report-cluster-ocbase-rrnajn-2024-01-05-13-39-15.zip)
shanshanying commented 10 months ago

OceanBase 0.7.2 and OcenaBase 0.8 are incompatabile. We made plenty improvements over 0.7.2, adapting to KB 0.8 API, support Backup/Restore, Monitoring, Parameters Configurattion, Logginig. Beside, OceanBase 0.8 supports new features liks dynamict ports, host network, and fixed many bugs).

We strongly suggest users to use KB 0.8 and KBCLI 0.8 to deploy Oceanbase 0.8.