这又是哪门子的错误,为何怎么都装不成功?

我的人生已经不用怀疑了,我在怀疑到底有没人装成功了?

  • zpf 回复了此帖

    rayzhou2017 装了,离线自动安装的,这个问题解决了,要在两个节点的/etc/host 文件吧master仓库地址配置,默认生成的IP地址不对的

    默认在/etc/host 文件生成了一堆东西,仓库地址生成不对。

    这问题解决了,又出新的问题了…下面的图:
    蛋疼装这个的东西…

    kumu 看离线安装的视频教程了么?

    • kumu 回复了此帖

      zpf
      all in one 装过,也不能正常,装了之后还是有很多模块功能不能正常用的。。。

      zpf
      都是一毛一样安装教程来的。 不管离线还是在线,都不能能完整装好,在线最小安装能装上,开启其他功能就会有各种不知名的错误啊。。。

        kumu 如果其它组件卡开启安装遇到了问题,请把 installer 的错误日志贴出来看一下,官方文档也有告诉你怎样查 installer 日志。只有提供详细的日志 社区才好帮你定位问题 : )

        • kumu 回复了此帖

          kumu 这听起来应该是你环境的问题,先仔细看文档的安装条件。有错误提供日志让人帮忙查查。

          kumu

          你好,社区已经在 Azure、华为云、阿里云、青云等各大公有云,Vmware 平台、物理机上进行过验证 https://kubesphere.com.cn/docs/installing-on-linux/

          不同的基础设施,不同的基础环境会带来不同的挑战,这也是安装部分的难点。能描述下你的主机环境吗?

          kumu

          1. 机器之间的防火墙或者安全组放行对应的端口,或者全部放行
          2. 机器的配置需要满足安装要求(cpu、内存、硬盘)
          3. 有什么问题应该把日志发出来
          • kumu 回复了此帖

            [root@node1 ~]# kubectl get pod -A
            NAMESPACE NAME READY STATUS RESTARTS AGE
            kube-system calico-kube-controllers-677cbc8557-zktgk 1/1 Running 2 19h
            kube-system calico-node-57zrc 1/1 Running 5 18h
            kube-system calico-node-wc59s 0/1 CrashLoopBackOff 29 18h
            kube-system calico-node-wjq9f 1/1 Running 2 19h
            kube-system coredns-79878cb9c9-6pntq 1/1 Running 2 19h
            kube-system coredns-79878cb9c9-wst8c 1/1 Running 2 19h
            kube-system kube-apiserver-node1 1/1 Running 3 19h
            kube-system kube-apiserver-node3 1/1 Running 6 18h
            kube-system kube-controller-manager-node1 1/1 Running 7 19h
            kube-system kube-controller-manager-node3 1/1 Running 6 18h
            kube-system kube-proxy-hlt7n 1/1 Running 6 19h
            kube-system kube-proxy-mdb7b 1/1 Running 4 19h
            kube-system kube-proxy-v6wsj 1/1 Running 6 18h
            kube-system kube-scheduler-node1 1/1 Running 6 19h
            kube-system kube-scheduler-node3 1/1 Running 4 18h
            kube-system metrics-server-98546f9bd-8qt4w 1/1 Running 7 18h
            kube-system nodelocaldns-56kxk 1/1 Running 4 19h
            kube-system nodelocaldns-m7z8p 1/1 Running 4 18h
            kube-system nodelocaldns-trpjx 1/1 Running 2 19h
            kube-system openebs-localpv-provisioner-5cd9579c5-r554k 0/1 ContainerCreating 0 18h
            kube-system openebs-ndm-588jj 1/1 Running 4 19h
            kube-system openebs-ndm-cjjpv 1/1 Running 5 18h
            kube-system openebs-ndm-mjvv6 0/1 CrashLoopBackOff 27 18h
            kube-system openebs-ndm-operator-6656f85b86-9q476 1/1 Running 3 19h
            kube-system snapshot-controller-0 0/1 ContainerCreating 0 49m
            kubesphere-system ks-installer-78745765f5-cl7qq 1/1 Running 2 19h
            kubesphere-system minio-8ccf8886f-2n8pg 0/1 Pending 0 46m
            kubesphere-system openldap-0 0/1 Pending 0 47m
            kubesphere-system redis-ha-haproxy-765c9f6946-62bd5 1/1 Running 0 47m
            kubesphere-system redis-ha-haproxy-765c9f6946-b6hgw 0/1 Init:0/1 0 47m
            kubesphere-system redis-ha-haproxy-765c9f6946-xnwcx 1/1 Running 2 47m
            kubesphere-system redis-ha-server-0 0/2 Pending 0 47m
            [root@node1 ~]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath=‘{.items[0].metadata.name}’) -f
            2021-01-05T01:25:20-05:00 INFO : shell-operator latest
            2021-01-05T01:25:20-05:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
            2021-01-05T01:25:20-05:00 INFO : Use temporary dir: /tmp/shell-operator
            2021-01-05T01:25:20-05:00 INFO : Initialize hooks manager …
            2021-01-05T01:25:20-05:00 INFO : Search and load hooks …
            2021-01-05T01:25:20-05:00 INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
            2021-01-05T01:25:50-05:00 INFO : Load hook config from ‘/hooks/kubesphere/schedule.sh’
            2021-01-05T01:25:50-05:00 INFO : Initializing schedule manager …
            2021-01-05T01:25:50-05:00 INFO : KUBE Init Kubernetes client
            2021-01-05T01:25:50-05:00 INFO : KUBE-INIT Kubernetes client is configured successfully
            2021-01-05T01:25:50-05:00 INFO : MAIN: run main loop
            2021-01-05T01:25:50-05:00 INFO : MAIN: add onStartup tasks
            2021-01-05T01:25:50-05:00 INFO : QUEUE add all HookRun@OnStartup
            2021-01-05T01:25:50-05:00 INFO : Running schedule manager …
            2021-01-05T01:25:50-05:00 INFO : MSTOR Create new metric shell_operator_live_ticks
            2021-01-05T01:25:50-05:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
            2021-01-05T01:25:50-05:00 INFO : GVR for kind ‘ClusterConfiguration’ is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
            2021-01-05T01:25:51-05:00 INFO : EVENT Kube event ‘6f808fc5-9f76-4357-a3a5-73cf15d27688’
            2021-01-05T01:25:51-05:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
            2021-01-05T01:25:53-05:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
            2021-01-05T01:25:53-05:00 INFO : Running hook ‘kubesphere/installRunner.py’ binding ‘KUBE_EVENTS’ …
            [WARNING]: No inventory was parsed, only implicit localhost is available
            [WARNING]: provided hosts list is empty, only localhost is available. Note that
            the implicit localhost does not match ‘all’

            PLAY [localhost] ***************************************************************

            TASK [download : include_tasks] ************************************************
            skipping: [localhost]

            TASK [download : Download items] ***********************************************
            skipping: [localhost]

            TASK [download : Sync container] ***********************************************
            skipping: [localhost]

            TASK [kubesphere-defaults : Configure defaults] ********************************
            ok: [localhost] => {
            “msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
            }

            TASK [preinstall : check k8s version] ******************************************
            changed: [localhost]

            TASK [preinstall : init k8s version] *******************************************
            ok: [localhost]

            TASK [preinstall : Stop if kubernetes version is nonsupport] *******************
            ok: [localhost] => {
            “changed”: false,
            “msg”: “All assertions passed”
            }

            TASK [preinstall : check storage class] ****************************************
            changed: [localhost]

            TASK [preinstall : Stop if StorageClass was not found] *************************
            skipping: [localhost]

            TASK [preinstall : check default storage class] ********************************
            changed: [localhost]

            TASK [preinstall : Stop if defaultStorageClass was not found] ******************
            ok: [localhost] => {
            “changed”: false,
            “msg”: “All assertions passed”
            }

            TASK [preinstall : Kubesphere | Checking kubesphere component] *****************
            changed: [localhost]

            TASK [preinstall : Kubesphere | Get kubesphere component version] **************
            skipping: [localhost]

            TASK [preinstall : Kubesphere | Get kubesphere component version] **************
            skipping: [localhost] => (item=ks-openldap)
            skipping: [localhost] => (item=ks-redis)
            skipping: [localhost] => (item=ks-minio)
            skipping: [localhost] => (item=ks-openpitrix)
            skipping: [localhost] => (item=elasticsearch-logging)
            skipping: [localhost] => (item=elasticsearch-logging-curator)
            skipping: [localhost] => (item=istio)
            skipping: [localhost] => (item=istio-init)
            skipping: [localhost] => (item=jaeger-operator)
            skipping: [localhost] => (item=ks-jenkins)
            skipping: [localhost] => (item=ks-sonarqube)
            skipping: [localhost] => (item=logging-fluentbit-operator)
            skipping: [localhost] => (item=uc)
            skipping: [localhost] => (item=metrics-server)

            PLAY RECAP *********************************************************************
            localhost : ok=8 changed=4 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0

            [WARNING]: No inventory was parsed, only implicit localhost is available
            [WARNING]: provided hosts list is empty, only localhost is available. Note that
            the implicit localhost does not match ‘all’

            PLAY [localhost] ***************************************************************

            TASK [download : include_tasks] ************************************************
            skipping: [localhost]

            TASK [download : Download items] ***********************************************
            skipping: [localhost]

            TASK [download : Sync container] ***********************************************
            skipping: [localhost]

            TASK [kubesphere-defaults : Configure defaults] ********************************
            ok: [localhost] => {
            “msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
            }

            TASK [metrics-server : Metrics-Server | Checking old installation files] *******
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | deleting old metrics-server] ***********
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | deleting old metrics-server files] *****
            skipping: [localhost] => (item=metrics-server)

            TASK [metrics-server : Metrics-Server | Getting metrics-server installation files] ***
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | Creating manifests] ********************
            skipping: [localhost] => (item={‘name’: ‘values’, ‘file’: ‘values.yaml’, ‘type’: ‘config’})

            TASK [metrics-server : Metrics-Server | Check Metrics-Server] ******************
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | Installing metrics-server] *************
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | Installing metrics-server retry] *******
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | Waitting for v1beta1.metrics.k8s.io ready] ***
            skipping: [localhost]

            TASK [metrics-server : Metrics-Server | import metrics-server status] **********
            skipping: [localhost]

            PLAY RECAP *********************************************************************
            localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0

            [WARNING]: No inventory was parsed, only implicit localhost is available
            [WARNING]: provided hosts list is empty, only localhost is available. Note that
            the implicit localhost does not match ‘all’

            PLAY [localhost] ***************************************************************

            TASK [download : include_tasks] ************************************************
            skipping: [localhost]

            TASK [download : Download items] ***********************************************
            skipping: [localhost]

            TASK [download : Sync container] ***********************************************
            skipping: [localhost]

            TASK [kubesphere-defaults : Configure defaults] ********************************
            ok: [localhost] => {
            “msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
            }

            TASK [common : Kubesphere | Check kube-node-lease namespace] *******************
            changed: [localhost]

            TASK [common : KubeSphere | Get system namespaces] *****************************
            ok: [localhost]

            TASK [common : set_fact] *******************************************************
            ok: [localhost]

            TASK [common : debug] **********************************************************
            ok: [localhost] => {
            “msg”: [
            “kubesphere-system”,
            “kubesphere-controls-system”,
            “kubesphere-monitoring-system”,
            “kube-node-lease”,
            “kubesphere-logging-system”,
            “openpitrix-system”,
            “kubesphere-devops-system”,
            “istio-system”,
            “kubesphere-alerting-system”,
            “istio-system”
            ]
            }

            TASK [common : KubeSphere | Create kubesphere namespace] ***********************
            changed: [localhost] => (item=kubesphere-system)
            changed: [localhost] => (item=kubesphere-controls-system)
            changed: [localhost] => (item=kubesphere-monitoring-system)
            changed: [localhost] => (item=kube-node-lease)
            changed: [localhost] => (item=kubesphere-logging-system)
            changed: [localhost] => (item=openpitrix-system)
            changed: [localhost] => (item=kubesphere-devops-system)
            changed: [localhost] => (item=istio-system)
            changed: [localhost] => (item=kubesphere-alerting-system)
            changed: [localhost] => (item=istio-system)

            TASK [common : KubeSphere | Labeling system-workspace] *************************
            changed: [localhost] => (item=default)
            changed: [localhost] => (item=kube-public)
            changed: [localhost] => (item=kube-system)
            changed: [localhost] => (item=kubesphere-system)
            changed: [localhost] => (item=kubesphere-controls-system)
            changed: [localhost] => (item=kubesphere-monitoring-system)
            changed: [localhost] => (item=kube-node-lease)
            changed: [localhost] => (item=kubesphere-logging-system)
            changed: [localhost] => (item=openpitrix-system)
            changed: [localhost] => (item=kubesphere-devops-system)
            changed: [localhost] => (item=istio-system)
            changed: [localhost] => (item=kubesphere-alerting-system)
            changed: [localhost] => (item=istio-system)

            TASK [common : KubeSphere | Create ImagePullSecrets] ***************************
            changed: [localhost] => (item=default)
            changed: [localhost] => (item=kube-public)
            changed: [localhost] => (item=kube-system)
            changed: [localhost] => (item=kubesphere-system)
            changed: [localhost] => (item=kubesphere-controls-system)
            changed: [localhost] => (item=kubesphere-monitoring-system)
            changed: [localhost] => (item=kube-node-lease)
            changed: [localhost] => (item=kubesphere-logging-system)
            changed: [localhost] => (item=openpitrix-system)
            changed: [localhost] => (item=kubesphere-devops-system)
            changed: [localhost] => (item=istio-system)
            changed: [localhost] => (item=kubesphere-alerting-system)
            changed: [localhost] => (item=istio-system)

            TASK [common : Kubesphere | Label namespace for network policy] ****************
            changed: [localhost]

            TASK [common : KubeSphere | Getting kubernetes master num] *********************
            changed: [localhost]

            TASK [common : KubeSphere | Setting master num] ********************************
            ok: [localhost]

            TASK [common : Kubesphere | Getting common component installation files] *******
            changed: [localhost] => (item=common)
            changed: [localhost] => (item=ks-crds)

            TASK [common : KubeSphere | Create KubeSphere crds] ****************************
            changed: [localhost]

            TASK [common : KubeSphere | Recreate KubeSphere crds] **************************
            changed: [localhost]

            TASK [common : KubeSphere | check k8s version] *********************************
            changed: [localhost]

            TASK [common : Kubesphere | Getting common component installation files] *******
            changed: [localhost] => (item=snapshot-controller)

            TASK [common : Kubesphere | Creating snapshot controller values] ***************
            changed: [localhost] => (item={‘name’: ‘custom-values-snapshot-controller’, ‘file’: ‘custom-values-snapshot-controller.yaml’})

            TASK [common : Kubesphere | Remove old snapshot crd] ***************************
            changed: [localhost]

            TASK [common : Kubesphere | Deploy snapshot controller] ************************
            changed: [localhost]

            TASK [common : Kubesphere | Checking openpitrix common component] **************
            changed: [localhost]

            TASK [common : include_tasks] **************************************************
            skipping: [localhost] => (item={‘op’: ‘openpitrix-db’, ‘ks’: ‘mysql-pvc’})
            skipping: [localhost] => (item={‘op’: ‘openpitrix-etcd’, ‘ks’: ‘etcd-pvc’})

            TASK [common : Getting PersistentVolumeName (mysql)] ***************************
            skipping: [localhost]

            TASK [common : Getting PersistentVolumeSize (mysql)] ***************************
            skipping: [localhost]

            TASK [common : Setting PersistentVolumeName (mysql)] ***************************
            skipping: [localhost]

            TASK [common : Setting PersistentVolumeSize (mysql)] ***************************
            skipping: [localhost]

            TASK [common : Getting PersistentVolumeName (etcd)] ****************************
            skipping: [localhost]

            TASK [common : Getting PersistentVolumeSize (etcd)] ****************************
            skipping: [localhost]

            TASK [common : Setting PersistentVolumeName (etcd)] ****************************
            skipping: [localhost]

            TASK [common : Setting PersistentVolumeSize (etcd)] ****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check mysql PersistentVolumeClaim] *****************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system mysql-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.404304”, “end”: “2021-01-05 01:29:39.511053”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:39.106749”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting mysql db pv size] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check redis PersistentVolumeClaim] *****************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system redis-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.308463”, “end”: “2021-01-05 01:29:40.576754”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:40.268291”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting redis db pv size] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check minio PersistentVolumeClaim] *****************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system minio -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.565084”, “end”: “2021-01-05 01:29:42.187760”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:41.622676”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“minio\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“minio\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting minio pv size] *****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check openldap PersistentVolumeClaim] **************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system openldap-pvc-openldap-0 -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.135581”, “end”: “2021-01-05 01:29:42.938780”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:42.803199”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“openldap-pvc-openldap-0\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“openldap-pvc-openldap-0\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting openldap pv size] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check etcd db PersistentVolumeClaim] ***************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system etcd-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.130601”, “end”: “2021-01-05 01:29:43.813909”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:43.683308”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“etcd-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“etcd-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting etcd pv size] ******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check redis ha PersistentVolumeClaim] **************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system data-redis-ha-server-0 -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.655197”, “end”: “2021-01-05 01:29:45.485754”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:44.830557”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“data-redis-ha-server-0\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“data-redis-ha-server-0\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting redis ha pv size] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check es-master PersistentVolumeClaim] *************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-logging-system data-elasticsearch-logging-discovery-0 -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.287793”, “end”: “2021-01-05 01:29:47.307024”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:47.019231”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“data-elasticsearch-logging-discovery-0\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“data-elasticsearch-logging-discovery-0\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting es master pv size] *************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check es data PersistentVolumeClaim] ***************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-logging-system data-elasticsearch-logging-data-0 -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.410326”, “end”: “2021-01-05 01:29:48.675401”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:29:48.265075”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“data-elasticsearch-logging-data-0\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“data-elasticsearch-logging-data-0\” not found"], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Setting es data pv size] ***************************
            skipping: [localhost]

            TASK [common : Kubesphere | Creating common component manifests] ***************
            changed: [localhost] => (item={‘path’: ‘etcd’, ‘file’: ‘etcd.yaml’})
            changed: [localhost] => (item={‘name’: ‘mysql’, ‘file’: ‘mysql.yaml’})
            changed: [localhost] => (item={‘path’: ‘redis’, ‘file’: ‘redis.yaml’})

            TASK [common : Kubesphere | Creating mysql sercet] *****************************
            changed: [localhost]

            TASK [common : Kubesphere | Deploying etcd and mysql] **************************
            skipping: [localhost] => (item=etcd.yaml)
            skipping: [localhost] => (item=mysql.yaml)

            TASK [common : Kubesphere | Getting minio installation files] ******************
            skipping: [localhost] => (item=minio-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            skipping: [localhost] => (item={‘name’: ‘custom-values-minio’, ‘file’: ‘custom-values-minio.yaml’})

            TASK [common : Kubesphere | Check minio] ***************************************
            skipping: [localhost]

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

            TASK [common : debug] **********************************************************
            skipping: [localhost]

            TASK [common : fail] ***********************************************************
            skipping: [localhost]

            TASK [common : Kubesphere | create minio config directory] *********************
            skipping: [localhost]

            TASK [common : Kubesphere | Creating common component manifests] ***************
            skipping: [localhost] => (item={‘path’: ‘/root/.config/rclone’, ‘file’: ‘rclone.conf’})

            TASK [common : include_tasks] **************************************************
            skipping: [localhost] => (item=helm)
            skipping: [localhost] => (item=vmbased)

            TASK [common : Kubesphere | import minio status] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check ha-redis] ************************************
            skipping: [localhost]

            TASK [common : Kubesphere | Getting redis installation files] ******************
            skipping: [localhost] => (item=redis-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            skipping: [localhost] => (item={‘name’: ‘custom-values-redis’, ‘file’: ‘custom-values-redis.yaml’})

            TASK [common : Kubesphere | Check old redis status] ****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Delete and backup old redis svc] *******************
            skipping: [localhost]

            TASK [common : Kubesphere | Deploying redis] ***********************************
            skipping: [localhost]

            TASK [common : Kubesphere | Getting redis PodIp] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Creating redis migration script] *******************
            skipping: [localhost] => (item={‘path’: ‘/etc/kubesphere’, ‘file’: ‘redisMigrate.py’})

            TASK [common : Kubesphere | Check redis-ha status] *****************************
            skipping: [localhost]

            TASK [common : ks-logging | Migrating redis data] ******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Disable old redis] *********************************
            skipping: [localhost]

            TASK [common : Kubesphere | Deploying redis] ***********************************
            skipping: [localhost] => (item=redis.yaml)

            TASK [common : Kubesphere | import redis status] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Getting openldap installation files] ***************
            skipping: [localhost] => (item=openldap-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            skipping: [localhost] => (item={‘name’: ‘custom-values-openldap’, ‘file’: ‘custom-values-openldap.yaml’})

            TASK [common : Kubesphere | Check old openldap status] *************************
            skipping: [localhost]

            TASK [common : KubeSphere | Shutdown ks-account] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Delete and backup old openldap svc] ****************
            skipping: [localhost]

            TASK [common : Kubesphere | Check openldap] ************************************
            skipping: [localhost]

            TASK [common : Kubesphere | Deploy openldap] ***********************************
            skipping: [localhost]

            TASK [common : Kubesphere | Load old openldap data] ****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check openldap-ha status] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Get openldap-ha pod list] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Get old openldap data] *****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Migrating openldap data] ***************************
            skipping: [localhost]

            TASK [common : Kubesphere | Disable old openldap] ******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Restart openldap] **********************************
            skipping: [localhost]

            TASK [common : KubeSphere | Restarting ks-account] *****************************
            skipping: [localhost]

            TASK [common : Kubesphere | import openldap status] ****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check ha-redis] ************************************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: "/usr/local/bin/helm list -n kubesphere-system | grep \“ks-redis\”\n", “delta”: “0:00:00.329842”, “end”: “2021-01-05 01:30:02.598401”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:30:02.268559”, “stderr”: "", “stderr_lines”: [], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Getting redis installation files] ******************
            changed: [localhost] => (item=redis-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            changed: [localhost] => (item={‘name’: ‘custom-values-redis’, ‘file’: ‘custom-values-redis.yaml’})

            TASK [common : Kubesphere | Check old redis status] ****************************
            changed: [localhost]

            TASK [common : Kubesphere | Delete and backup old redis svc] *******************
            skipping: [localhost]

            TASK [common : Kubesphere | Deploying redis] ***********************************
            changed: [localhost]

            TASK [common : Kubesphere | Getting redis PodIp] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Creating redis migration script] *******************
            skipping: [localhost] => (item={‘path’: ‘/etc/kubesphere’, ‘file’: ‘redisMigrate.py’})

            TASK [common : Kubesphere | Check redis-ha status] *****************************
            skipping: [localhost]

            TASK [common : ks-logging | Migrating redis data] ******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Disable old redis] *********************************
            skipping: [localhost]

            TASK [common : Kubesphere | Deploying redis] ***********************************
            skipping: [localhost] => (item=redis.yaml)

            TASK [common : Kubesphere | import redis status] *******************************
            changed: [localhost]

            TASK [common : Kubesphere | Getting openldap installation files] ***************
            changed: [localhost] => (item=openldap-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            changed: [localhost] => (item={‘name’: ‘custom-values-openldap’, ‘file’: ‘custom-values-openldap.yaml’})

            TASK [common : Kubesphere | Check old openldap status] *************************
            changed: [localhost]

            TASK [common : KubeSphere | Shutdown ks-account] *******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Delete and backup old openldap svc] ****************
            skipping: [localhost]

            TASK [common : Kubesphere | Check openldap] ************************************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: "/usr/local/bin/helm list -n kubesphere-system | grep \“ks-openldap\”\n", “delta”: “0:00:00.497047”, “end”: “2021-01-05 01:31:28.690847”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:31:28.193800”, “stderr”: "", “stderr_lines”: [], “stdout”: "", “stdout_lines”: []}
            …ignoring

            TASK [common : Kubesphere | Deploy openldap] ***********************************
            changed: [localhost]

            TASK [common : Kubesphere | Load old openldap data] ****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Check openldap-ha status] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Get openldap-ha pod list] **************************
            skipping: [localhost]

            TASK [common : Kubesphere | Get old openldap data] *****************************
            skipping: [localhost]

            TASK [common : Kubesphere | Migrating openldap data] ***************************
            skipping: [localhost]

            TASK [common : Kubesphere | Disable old openldap] ******************************
            skipping: [localhost]

            TASK [common : Kubesphere | Restart openldap] **********************************
            skipping: [localhost]

            TASK [common : KubeSphere | Restarting ks-account] *****************************
            skipping: [localhost]

            TASK [common : Kubesphere | import openldap status] ****************************
            changed: [localhost]

            TASK [common : Kubesphere | Getting minio installation files] ******************
            changed: [localhost] => (item=minio-ha)

            TASK [common : Kubesphere | Creating manifests] ********************************
            changed: [localhost] => (item={‘name’: ‘custom-values-minio’, ‘file’: ‘custom-values-minio.yaml’})

            TASK [common : Kubesphere | Check minio] ***************************************
            fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: "/usr/local/bin/helm list -n kubesphere-system | grep \“ks-minio\”\n", “delta”: “0:00:00.694638”, “end”: “2021-01-05 01:32:33.662385”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:32:32.967747”, “stderr”: "", “stderr_lines”: [], “stdout”: "", “stdout_lines”: []}
            …ignoring

            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:08.250062”, “end”: “2021-01-05 02:02:42.506954”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-05 01:32:34.256892”, “stderr”: “Error: timed out waiting for the condition”, “stderr_lines”: [“Error: 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”
            ]
            }

            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=47 changed=41 unreachable=0 failed=1 skipped=77 rescued=0 ignored=12

            • kumu 回复了此帖

              kumu
              啥子问题?大神指教一下吗?