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]Failed to create minio cluster with error Unable to prepare the list of endpoints #8771

Closed
tianyue86 opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

Describe the env
Kubernetes: v1.31.1-aliyun.1
KubeBlocks: 1.0.0-beta.22
kbcli: 1.0.0-beta.9

To Reproduce
Steps to reproduce the behavior:

  1. Create minio cluster with yaml below
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: minio-iwlexv
  namespace: default
spec:
  terminationPolicy: Delete
  componentSpecs:
    - name: minio
      componentDef: minio-1.0.0-alpha.0
      replicas: 1
      env:
      - name: MINIO_BUCKETS
        value: 
      serviceAccountName: kb-minio-iwlexv
      disableExporter: true      
      resources:
        limits:
          cpu: 100m
          memory: 0.5Gi
        requests:
          cpu: 100m
          memory: 0.5Gi      
      volumeClaimTemplates:
        - name: data
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
  1. Check cluster status:Failed
k get cluster -A
NAMESPACE   NAME              CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS    AGE
default     minio-iwlexv                           Delete               Failed    12m

k get pod
NAME                           READY   STATUS             RESTARTS       AGE
minio-iwlexv-minio-0           1/2     CrashLoopBackOff   7 (94s ago)    12m
  1. Describe pod
Events:
  Type     Reason                  Age                     From                     Message
  ----     ------                  ----                    ----                     -------
  Normal   Scheduled               7m42s                   default-scheduler        Successfully assigned default/minio-iwlexv-minio-0 to cn-zhangjiakou.10.0.0.144
  Normal   SuccessfulAttachVolume  7m42s                   attachdetach-controller  AttachVolume.Attach succeeded for volume "d-8vb1iqqes6rb5pwh0gpp"
  Normal   AllocIPSucceed          7m33s                   terway-daemon            Alloc IP 10.0.0.34/24 took 36.95065ms
  Normal   Pulled                  7m32s                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kubeblocks-tools:0.8.2" already present on machine
  Normal   Created                 7m32s                   kubelet                  Created container init
  Normal   Started                 7m32s                   kubelet                  Started container init
  Normal   Pulled                  7m31s                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/kubeblocks-tools:1.0.0-beta.22" already present on machine
  Normal   Created                 7m31s                   kubelet                  Created container init-kbagent
  Normal   Started                 7m31s                   kubelet                  Started container init-kbagent
  Normal   Created                 7m30s                   kubelet                  Created container kbagent-worker
  Normal   Pulled                  7m30s                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/minio:RELEASE.2024-06-29T01-20-47Z" already present on machine
  Normal   Started                 7m30s                   kubelet                  Started container kbagent-worker
  Normal   Pulled                  7m29s                   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/minio:RELEASE.2024-06-29T01-20-47Z" already present on machine
  Normal   Created                 7m29s                   kubelet                  Created container kbagent
  Normal   Started                 7m29s                   kubelet                  Started container kbagent
  Normal   Pulled                  7m11s (x3 over 7m29s)   kubelet                  Container image "apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/minio:RELEASE.2024-06-29T01-20-47Z" already present on machine
  Normal   Created                 7m11s (x3 over 7m29s)   kubelet                  Created container minio
  Normal   Started                 7m11s (x3 over 7m29s)   kubelet                  Started container minio
  Normal   roleProbe               6m28s                   kbagent                  {"instance":"minio-iwlexv-minio","probe":"roleProbe","code":0}
  Warning  BackOff                 2m31s (x27 over 7m26s)  kubelet                  Back-off restarting failed container minio in pod minio-iwlexv-minio-0_default(1a6496a3-26d2-4a56-b282-87916083b121)
  1. Logs
the minio replicas history is 1
the minio server pool is  http://minio-iwlexv-minio-{0...0}.minio-iwlexv-minio-headless.default.svc.cluster.local/data
Starting minio server with command: /usr/bin/docker-entrypoint.sh minio server  http://minio-iwlexv-minio-{0...0}.minio-iwlexv-minio-headless.default.svc.cluster.local/data -S /etc/minio/certs/ --address :9000 --console-address :9001
ERROR Unable to prepare the list of endpoints: Incorrect number of endpoints provided [http://minio-iwlexv-minio-{0...0}.minio-iwlexv-minio-headless.default.svc.cluster.local/data]
      > Please provide correct combination of local/remote paths
      HINT:
        For more information, please refer to https://min.io/docs/minio/linux/operations/concepts/erasure-coding.html

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@tianyue86 tianyue86 added the kind/bug Something isn't working label Jan 9, 2025
@tianyue86 tianyue86 added this to the Release 1.0.0 milestone Jan 9, 2025
@fengluodb
Copy link
Contributor

minio 集群要求replicas数大于等于2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants