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.11k stars 174 forks source link

[BUG] orioledb cluster create CrashLoopBackOff: python3: command not found #6227

Closed JashBook closed 8 months ago

JashBook commented 10 months ago

Describe the bug orioledb cluster create CrashLoopBackOff: python3: command not found.

kbcli version 
Kubernetes: v1.26.8-gke.200
KubeBlocks: 0.7.2
kbcli: 0.7.2

To Reproduce Steps to reproduce the behavior:

  1. create etcd cluster
    kbcli cluster create  etcdo-vedlmo --termination-policy=WipeOut --monitoring-interval=0 --cluster-definition=etcd --enable-all-logs=false --set cpu=100m,memory=0.5Gi,replicas=3,storage=1Gi  --namespace default
  2. create orioledb cluster
    kbcli_0.7.2 cluster create  orioledb-vedlmo --termination-policy=DoNotTerminate --monitoring-interval=0 --cluster-definition=orioledb --enable-all-logs=false --cluster-version=orioledb-beta1 --set cpu=100m,memory=0.5Gi,replicas=2,storage=1Gi --service-reference name=etcdService,cluster=etcdo-vedlmo --namespace default 
  3. See error
    kubectl get pod
    NAME                                                              READY   STATUS              RESTARTS        AGE
    orioledb-vedlmo-orioledb-0                                        5/5     Running             0               3m9s
    orioledb-vedlmo-orioledb-1                                        4/5     CrashLoopBackOff    3 (34s ago)     3m9s

    log CrashLoopBackOff pod

    kubectl logs orioledb-vedlmo-orioledb-1 postgresql 
    chmod: /home/postgres/pgdata/pgroot/data: No such file or directory
    orioledb-vedlmo-orioledb-0.orioledb-vedlmo-orioledb-headless:5432 - accepting connections
    PostgreSQL is ready!
    /kb-scripts/setup.sh: line 37: python3: command not found
    chmod: /var/lib/postgresql/tmp_patroni.yaml: No such file or directory
    -sh: patroni: not found

Expected behavior orioledb cluster create success.

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.

JashBook commented 10 months ago

It can be repeated when do hscale

kbcli version
Kubernetes: v1.26.6-gke.1700
KubeBlocks: 0.8.0-beta.29
kbcli: 0.8.0-beta.29
  1. create etcd
    kbcli cluster create  etcdo-vutgji --termination-policy=WipeOut --monitoring-interval=0 --cluster-definition=etcd --enable-all-logs=false --set cpu=100m,memory=0.5Gi,replicas=3,storage=1Gi  --namespace default
  2. create orioledb
    kbcli cluster create  orioledb-vutgji --termination-policy=Delete --monitoring-interval=0 --cluster-definition=orioledb --enable-all-logs=false --cluster-version=orioledb-beta1 --set cpu=100m,memory=0.5Gi,replicas=1,storage=1Gi --service-reference name=etcdService,cluster=etcdo-vutgji --namespace default 
  3. hscale 1 to 3
    kbcli cluster hscale orioledb-vutgji --auto-approve --components orioledb --replicas 3 --namespace default
  4. see error
    kubectl get pod
    NAME                                              READY   STATUS             RESTARTS        AGE
    etcdo-vutgji-etcd-0                               3/3     Running            0               14m
    etcdo-vutgji-etcd-1                               3/3     Running            0               14m
    etcdo-vutgji-etcd-2                               3/3     Running            0               14m
    orioledb-vutgji-orioledb-0                        5/5     Running            0               8m44s
    orioledb-vutgji-orioledb-1                        4/5     CrashLoopBackOff   6 (17s ago)     6m23s
    orioledb-vutgji-orioledb-2                        4/5     Error              6 (2m57s ago)   6m23s
  5. log error pod
    kubectl logs orioledb-vutgji-orioledb-1 postgresql 
    chmod: /home/postgres/pgdata/pgroot/data: No such file or directory
    orioledb-vutgji-orioledb-0.orioledb-vutgji-orioledb-headless:5432 - accepting connections
    PostgreSQL is ready!
    /kb-scripts/setup.sh: line 37: python3: command not found
    chmod: /var/lib/postgresql/tmp_patroni.yaml: No such file or directory
    -sh: patroni: not found
JashBook commented 8 months ago

not recurrence