存储报错信息:

Events:
  Type     Reason                  Age                 From                     Message
  ----     ------                  ----                ----                     -------
  Warning  FailedScheduling        18m                 default-scheduler        pod has unbound immediate PersistentVolumeClaims (repeated 6 times)
  Normal   Scheduled               18m                 default-scheduler        Successfully assigned kubesphere-system/minio-8cd46c8d9-xzhkh to 192.168.30.103
  Normal   SuccessfulAttachVolume  18m                 attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-010eae1a-5213-4633-9ce3-ec8d1897278a"
  Warning  FailedMount             98s (x16 over 18m)  kubelet, 192.168.30.103  MountVolume.NewMounter initialization failed for volume "pvc-010eae1a-5213-4633-9ce3-ec8d1897278a" : Couldn't get secret kubesphere-system/ceph-secret err: secrets "ceph-secret" not found
  Warning  FailedMount             24s (x8 over 16m)   kubelet, 192.168.30.103  Unable to mount volumes for pod "minio-8cd46c8d9-xzhkh_kubesphere-system(7d021cd2-b9ca-4aa1-9463-c28435206df9)": timeout expired waiting for volumes to attach or mount for pod "kubesphere-system"/"minio-8cd46c8d9-xzhkh". list of unmounted volumes=[export]. list of unattached volumes=[export minio-user minio-config-dir ks-minio-token-zdwk2]

    Forest-L 感谢大佬的排查,这边已经解决。看日志是ceph存储的配置问题,非常感谢

    • john 回复了此帖
      6 个月 后

      具体怎么解决的 遇到了一样的问题

      6 个月 后

      Forest-L 大佬 我也遇到相同的问题 可以帮忙协助看一下吗 多谢

      TASK [common : Kubesphere | Deploy minio] **************************************
      fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install ks-minio /kubesphere/kubesphere/minio-ha -f /kubesphere/kubesphere/custom-values-minio.yaml –set fullnameOverride=minio –namespace kubesphere-system –wait –timeout 1800s\n”, “delta”: “0:30:12.536292”, “end”: “2021-05-31 10:30:04.335264”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-05-31 09:59:51.798972”, “stderr”: “Error: failed post-install: timed out waiting for the condition”, “stderr_lines”: [“Error: failed post-install: timed out waiting for the condition”], “stdout”: "Release \“ks-minio\” does not exist. Installing it now.", “stdout_lines”: ["Release \“ks-minio\” does not exist. Installing it now."]}
      …ignoring

      TASK [common : debug] **********************************************************
      ok: [localhost] => {
      “msg”: [
      “1. check the storage configuration and storage server”,
      “2. make sure the DNS address in /etc/resolv.conf is available”,
      “3. execute ‘kubectl logs -n kubesphere-system -l job-name=minio-make-bucket-job’ to watch logs”,
      “4. execute ‘helm -n kubesphere-system uninstall ks-minio && kubectl -n kubesphere-system delete job minio-make-bucket-job’”,
      “5. Restart the installer pod in kubesphere-system namespace”
      ]



        8 天 后

        vipmachao minio这个问题是网络或者储存出来问题,你可以在部署之前设置下kubernetes的仓库

        cat <<EOF > /etc/yum.repos.d/kubernetes.repo
        [kubernetes]
        name=Kubernetes
        baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
        enabled=1
        gpgcheck=0
        repo_gpgcheck=0
        gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
               http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
        EOF
        yum makecache fast
        1 个月 后

        Forest-L 我也是一样的问题,到部署minio报了五个错,解决两三天了,没办法解决。能远程解决下吗大佬,有偿

          14 天 后

          mysq-pvc没有生成呢,设置了默认存储了吗?kubectl get sc 看一看

          4 个月 后
          1 个月 后

          我也是使用的自建 ceph-csi,

          如果此处为2个都为默认存储类型 ,需要去掉一个

          将其中一个设置为false ,亲测管用

          7 个月 后
          23 天 后
          11 天 后

          Mr-dulinfeng 大哥,你怎么解决的,遇到了一模一样的问题

          TASK [common : Kubesphere | Deploy minio] **************************************

          fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install ks-minio /etc/kubesphere/minio-ha -f /etc/kubesphere/custom-values-minio.yaml –set fullnameOverride=minio –namespace kubesphere-system –wt –timeout 1800\n”, “delta”: “0:00:00.931626”, “end”: “2022-09-12 03:54:42.372429”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-09-12 03:54:41.440803”, “stderr”: "Error: UPGRADE FAILED: \“ks-minio\” has no deployed releases “stderr_lines”: ["Error: UPGRADE FAILED: \“ks-minio\” has no deployed releases"], “stdout”: "", “stdout_lines”: []}

          …ignoring

          TASK [common : debug] **********************************************************

          ok: [localhost] => {

          "msg": [
          
              "1. check the storage configuration and storage server", 
          
              "2. make sure the DNS address in /etc/resolv.conf is available.", 
          
              "3. execute 'helm del --purge ks-minio && kubectl delete job -n kubesphere-system ks-minio-make-bucket-job'", 
          
              "4. Restart the installer pod in kubesphere-system namespace"
          
          ]

          }

          TASK [common : fail] ***********************************************************

          fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “It is suggested to refer to the above methods for troubleshooting problems .”}

          PLAY RECAP *********************************************************************

          localhost : ok=35 changed=26 unreachable=0 failed=1 skipped=73 rescued=0 ignored=4

            2 个月 后
            9 个月 后

            遇到同样问题,今天更新了helm 版本(最新3.12.3) 后再次安装解决了。 最好给一个requirement ,提示要需要哪些文件,如果真按照提示真正走偏了.

            商业产品与合作咨询