fnag_huna

那应该是不支持的,可以尝试把Repos/centos-7.7-amd64.iso改成centos-7.8-amd64.iso试试。
如果不行的话就装v3.0.0吧。

    Cauchy 改成7.8以后成功开始安装了,非常感谢!但是现在出现了这样的状况,是在拉镜像拉不下来吗?我用的代理,wget能通网,但不知道为什么这里的镜像无法拉取,望解惑
    又仔细看了一眼地址,感觉是在本地拉取的镜像?那为何无法拉取呢?

      fnag_huna
      可以执行docker info看下docker的配置,是不是这个本地仓库的地址没有加到docker的insecure_registries中。

        Cauchy 看了一下,里面是有本地仓库地址的:Insecure Registries: 192.168.2.32:5000 127.0.0.0/8这是什么原因呢

          fnag_huna
          docker ps | grep registry检查下这个仓库服务是否正常,然后push个镜像试下是否能成功。

            Cauchy 顺带一提,我现在安装的是 all-in-one 单节点模式的,之前尝试安装多节点时出现了这样的情况
            我的hosts.ini配置是这样的:
            请问是哪里出问题了?

            fnag_huna
            看起来是registry服务不正常,可以重启下这个容器试试。
            上边那个ssh连接不到远程机器的问题应该是机器上留存了旧的连接信息。可以把/.ssh/known_hosts删掉试试。

              Cauchy 谢谢您,帮助了我很多。前面几次bug调试无果,目前尝试从centos7.7安装kubesphere了,期待能成功吧。。。

              nan 有解决么,我刚好也碰到这个问题

              `TASK [bootstrap-os : Ensure bash_completion.d folder exists] ****************************************************************************************************************************************
              Monday 07 September 2020 21:53:32 +0800 (0:00:00.087) 0:01:03.428 ******
              ok: [m]
              ok: [n2]
              ok: [n1]

              PLAY [k8s-cluster:etcd] *****************************************************************************************************************************************************************************

              TASK [chrony : apt cache] ***************************************************************************************************************************************************************************
              Monday 07 September 2020 21:53:33 +0800 (0:00:00.433) 0:01:03.861 ******
              skipping: [n1]
              skipping: [n2]
              skipping: [m]

              TASK [chrony : apt remove ntp] **********************************************************************************************************************************************************************
              Monday 07 September 2020 21:53:33 +0800 (0:00:00.098) 0:01:03.959 ******
              fatal: [m]: FAILED! => {
              “changed”: false
              }

              MSG:

              Unsupported parameters for (yum) module: warn Supported parameters include: allow_downgrade, autoremove, bugfix, conf_file, disable_excludes, disable_gpg_check, disable_plugin, disablerepo, downloa d_only, enable_plugin, enablerepo, exclude, install_repoquery, installroot, list, name, releasever, security, skip_broken, state, update_cache, update_only, use_backend, validate_certs

              …ignoring
              fatal: [n2]: FAILED! => {
              “changed”: false
              }

              MSG:

              Unsupported parameters for (yum) module: warn Supported parameters include: allow_downgrade, autoremove, bugfix, conf_file, disable_excludes, disable_gpg_check, disable_plugin, disablerepo, downloa d_only, enable_plugin, enablerepo, exclude, install_repoquery, installroot, list, name, releasever, security, skip_broken, state, update_cache, update_only, use_backend, validate_certs

              …ignoring
              fatal: [n1]: FAILED! => {
              “changed”: false
              }

              MSG:

              Unsupported parameters for (yum) module: warn Supported parameters include: allow_downgrade, autoremove, bugfix, conf_file, disable_excludes, disable_gpg_check, disable_plugin, disablerepo, downloa d_only, enable_plugin, enablerepo, exclude, install_repoquery, installroot, list, name, releasever, security, skip_broken, state, update_cache, update_only, use_backend, validate_certs

              …ignoring

              TASK [chrony : apt remove ntp] **********************************************************************************************************************************************************************
              Monday 07 September 2020 21:53:33 +0800 (0:00:00.520) 0:01:04.480 ******
              skipping: [n1]
              skipping: [n2]
              skipping: [m]

              TASK [chrony : install chrony] **********************************************************************************************************************************************************************
              Monday 07 September 2020 21:53:33 +0800 (0:00:00.091) 0:01:04.572 ******
              `

              这个是什么情况,在Multi-Node 模式安装时出来的

              `TASK [etcd : Install etcd launch script] ************************************************************************************************************************************************************
              Monday 07 September 2020 21:57:41 +0800 (0:00:00.412) 0:05:12.625 ******
              changed: [m]

              TASK [etcd : Install etcd-events launch script] *****************************************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.240) 0:05:12.866 ******
              skipping: [m]

              TASK [etcd : include_tasks] *************************************************************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.036) 0:05:12.902 ******
              included: /root/kubesphere-all-v2.1.1/k8s/roles/etcd/tasks/configure.yml for m

              TASK [etcd : Configure | Check if etcd cluster is healthy] ******************************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.107) 0:05:13.010 ******
              fatal: [m]: FAILED! => {
              “changed”: false,
              “cmd”: “/usr/local/bin/etcdctl –endpoints=https://192.168.0.155:2379 cluster-health | grep -q ‘cluster is healthy’”,
              “delta”: “0:00:00.011008″,
              “end”: “2020-09-07 21:57:42.497988”,
              “rc”: 1,
              “start”: “2020-09-07 21:57:42.486980”
              }

              STDERR:

              Error: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 192.168.0.155:2379: getsockopt: connection refused

              error #0: dial tcp 192.168.0.155:2379: getsockopt: connection refused

              MSG:

              non-zero return code

              …ignoring

              TASK [etcd : Configure | Check if etcd-events cluster is healthy] ***********************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.255) 0:05:13.265 ******
              skipping: [m]

              TASK [etcd : include_tasks] *************************************************************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.040) 0:05:13.305 ******
              included: /root/kubesphere-all-v2.1.1/k8s/roles/etcd/tasks/refresh_config.yml for m

              TASK [etcd : Refresh config | Create etcd config file] **********************************************************************************************************************************************
              Monday 07 September 2020 21:57:42 +0800 (0:00:00.070) 0:05:13.375 ******
              changed: [m]

              `

              • TAO 回复了此帖

                TAO 这也是在Multi-Node 模式下安装的报错信息,大佬们怎么解决

                `Monday 07 September 2020 22:01:35 +0800 (0:00:00.124) 0:00:02.590 ******
                ok: [m]
                FAILED - RETRYING: Installing epel-release (YUM) (5 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (5 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (4 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (4 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (3 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (3 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (2 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (2 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (1 retries left).
                FAILED - RETRYING: Installing epel-release (YUM) (1 retries left).
                fatal: [n2]: FAILED! => {
                “attempts”: 5,
                “changed”: false,
                “rc”: 1,
                “results”: [
                “Resolving Dependencies\n–> Running transaction check\n—> Package epel-release.noarch 0:7-12 will be installed\n–> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n epel-release noarch 7-12 epel 15 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal size: 15 k\nInstalled size: 24 k\nDownloading packages:\nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7\n”
                ]
                }

                MSG:

                warning: /var/cache/yum/x86_64/7/epel/packages/epel-release-7-12.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

                GPG key retrieval failed: [Errno 14] curl#37 - “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7″

                fatal: [n1]: FAILED! => {
                “attempts”: 5,
                “changed”: false,
                “rc”: 1,
                “results”: [
                “Resolving Dependencies\n–> Running transaction check\n—> Package epel-release.noarch 0:7-12 will be installed\n–> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n epel-release noarch 7-12 epel 15 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal size: 15 k\nInstalled size: 24 k\nDownloading packages:\nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7\n”
                ]
                }

                MSG:

                warning: /var/cache/yum/x86_64/7/epel/packages/epel-release-7-12.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

                GPG key retrieval failed: [Errno 14] curl#37 - “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7”

                TASK [prepare/nodes : KubeSphere | Installing JQ (APT)] ***************************************************************************************************************************************************************************
                Monday 07 September 2020 22:02:12 +0800 (0:00:36.255) 0:00:38.845 ******
                skipping: [m]

                TASK [prepare/nodes : KubeSphere| Installing JQ (YUM)] ****************************************************************************************************************************************************************************
                Monday 07 September 2020 22:02:12 +0800 (0:00:00.035) 0:00:38.881 ******
                ok: [m]

                `
                这个也是Multi-Node 模式下安装报错的信息

                `TASK [ks-installer : kubesphere-installer is ok] **********************************************************************************************************************************************************************************
                Monday 07 September 2020 22:02:42 +0800 (0:00:00.463) 0:01:09.184 ******
                FAILED - RETRYING: kubesphere-installer is ok (30 retries left).
                changed: [m]

                PLAY RECAP ************************************************************************************************************************************************************************************************************************
                m : ok=136 changed=19 unreachable=0 failed=0
                n1 : ok=2 changed=1 unreachable=0 failed=1
                n2 : ok=2 changed=1 unreachable=0 failed=1

                Monday 07 September 2020 22:03:12 +0800 (0:00:30.294) 0:01:39.478 ******

                prepare/nodes : Installing epel-release (YUM) —————————————————————————————————————————————————————————– 36.26s
                ks-installer : kubesphere-installer is ok ——————————————————————————————————————————————————————————— 30.29s
                prepare/nodes : pip | Installing pip ————————————————————————————————————————————————————————————— 5.83s
                download : Download items ————————————————————————————————————————————————————————————————– 1.27s
                download : Download items ————————————————————————————————————————————————————————————————– 0.76s
                download : Sync container ————————————————————————————————————————————————————————————————– 0.70s
                download : Sync container ————————————————————————————————————————————————————————————————– 0.66s
                download : Sync container ————————————————————————————————————————————————————————————————– 0.56s
                download : Download items ————————————————————————————————————————————————————————————————– 0.56s
                download : Download items ————————————————————————————————————————————————————————————————– 0.56s
                download : Sync container ————————————————————————————————————————————————————————————————– 0.55s
                plugins/LocalVolume : openebs | Creating manifests ————————————————————————————————————————————————————————- 0.47s
                ks-installer : ks-installer | Creating manifests ————————————————————————————————————————————————————————— 0.47s
                ks-installer : ks-installer | Creating KubeSphere Installer —————————————————————————————————————————————————————- 0.46s
                prepare/nodes : GlusterFS | Installing glusterfs-client (YUM) ————————————————————————————————————————————————————– 0.42s
                prepare/nodes : Copy get-pip.py ——————————————————————————————————————————————————————————————– 0.33s
                modify resolv.conf ——————————————————————————————————————————————————————————————————— 0.33s
                plugins/LocalVolume : openebs | Creating openebs ————————————————————————————————————————————————————————— 0.32s
                ks-installer : ks-installer | Creating system namespaces ——————————————————————————————————————————————————————- 0.29s
                prepare/nodes : Ceph RBD | Installing ceph-common (YUM) ——————————————————————————————————————————————————————– 0.27s
                failed!


                please refer to https://kubesphere.io/docs/v2.1/zh-CN/faq/faq-install/


                [root@m scripts]#
                `

                Multi-Node 模式下安装后的结果,怎么解决啊大佬们!

                `changed: [master]
                fatal: [node1]: FAILED! => {
                “changed”: true,
                “cmd”: “sudo python /tmp/pip/get-pip.py”,
                “delta”: “0:01:04.280038″,
                “end”: “2020-09-08 01:12:04.637797”,
                “rc”: 2,
                “start”: “2020-09-08 01:11:00.357759″
                }

                STDOUT:

                Collecting pip
                Downloading pip-20.2.2-py2.py3-none-any.whl (1.5 MB)

                STDERR:

                DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
                ERROR: Exception:
                Traceback (most recent call last):
                File “/tmp/tmpBudflM/pip.zip/pip/_internal/cli/base_command.py”, line 186, in main
                status = self.run(options, args)
                File “/tmp/tmpBudflM/pip.zip/pip/
                internal/commands/install.py”, line 331, in run
                resolver.resolve(requirement_set)
                File “/tmp/tmpBudflM/pip.zip/pip/internal/legacy_resolve.py”, line 177, in resolve
                discovered_reqs.extend(self.
                resolve_one(requirement_set, req))
                File “/tmp/tmpBudflM/pip.zip/pip/_internal/legacy_resolve.py”, line 333, in resolve_one
                abstract_dist = self.
                get_abstract_dist_for(req_to_install)
                File “/tmp/tmpBudflM/pip.zip/pip/_internal/legacy_resolve.py”, line 282, in get_abstract_dist_for
                abstract_dist = self.preparer.prepare_linked_requirement(req)
                File “/tmp/tmpBudflM/pip.zip/pip/
                internal/operations/prepare.py”, line 482, in prepare_linked_requirement
                hashes=hashes,
                File “/tmp/tmpBudflM/pip.zip/pip/internal/operations/prepare.py”, line 287, in unpack_url
                hashes=hashes,
                File “/tmp/tmpBudflM/pip.zip/pip/
                internal/operations/prepare.py”, line 159, in unpack_http_url
                link, downloader, temp_dir.path, hashes
                File “/tmp/tmpBudflM/pip.zip/pip/_internal/operations/prepare.py”, line 303, in download_http_url
                for chunk in download.chunks:
                File “/tmp/tmpBudflM/pip.zip/pip/
                internal/utils/ui.py”, line 160, in iter
                for x in it:
                File “/tmp/tmpBudflM/pip.zip/pip/internal/network/utils.py”, line 39, in response_chunks
                decode_content=False,
                File “/tmp/tmpBudflM/pip.zip/pip/
                vendor/urllib3/response.py”, line 564, in stream
                data = self.read(amt=amt, decode_content=decode_content)
                File “/tmp/tmpBudflM/pip.zip/pip/vendor/urllib3/response.py”, line 529, in read
                raise IncompleteRead(self.
                fp_bytes_read, self.length_remaining)
                File “/usr/lib64/python2.7/contextlib.py”, line 35, in exit
                self.gen.throw(type, value, traceback)
                File “/tmp/tmpBudflM/pip.zip/pip/_vendor/urllib3/response.py”, line 439, in error_catcher
                raise ReadTimeoutError(self.
                pool, None, “Read timed out.”)
                ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.

                MSG:

                non-zero return code

                `

                  `TASK [ks-installer : ks-installer | Creating KubeSphere Installer] *****************************************************************************************************************************
                  Tuesday 08 September 2020 01:33:25 +0800 (0:00:00.428) 0:23:09.677 *****
                  changed: [master] => (item=ks-installer-config.yaml)
                  changed: [master] => (item=ks-installer-deployment.yaml)

                  TASK [ks-installer : kubesphere-installer is ok] ***********************************************************************************************************************************************
                  Tuesday 08 September 2020 01:33:25 +0800 (0:00:00.443) 0:23:10.120 *****
                  FAILED - RETRYING: kubesphere-installer is ok (30 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (29 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (28 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (27 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (26 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (25 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (24 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (23 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (22 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (21 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (20 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (19 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (18 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (17 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (16 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (15 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (14 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (13 retries left).
                  FAILED - RETRYING: kubesphere-installer is ok (12 retries left).
                  changed: [master]

                  PLAY RECAP *************************************************************************************************************************************************************************************
                  master : ok=146 changed=41 unreachable=0 failed=0
                  node1 : ok=13 changed=11 unreachable=0 failed=1
                  node2 : ok=125 changed=25 unreachable=0 failed=0

                  Tuesday 08 September 2020 01:42:58 +0800 (0:09:32.738) 0:32:42.859 *****

                  ks-installer : kubesphere-installer is ok ——————————————————————————————————————————————— 572.74s
                  download : container_download | Download image if required ( haproxy:2.0.4 ) ———————————————————————————————————- 269.72s
                  download : container_download | Download image if required ( kubesphere/ks-apiserver:v2.1.1 ) —————————————————————————————– 199.36s
                  prepare/nodes : pip | Installing pip ————————————————————————————————————————————————– 186.16s
                  download : container_download | Download image if required ( kubesphere/ks-console:v2.1.1 ) ——————————————————————————————- 160.56s
                  download : container_download | Download image if required ( mysql:8.0.11 ) ———————————————————————————————————– 141.94s
                  download : container_download | Download image if required ( kubesphere/ks-installer:v2.1.1 ) —————————————————————————————– 125.41s
                  download : container_download | Download image if required ( osixia/openldap:1.3.0 ) ————————————————————————————————— 63.75s
                  download : container_download | Download image if required ( redis:5.0.5-alpine ) —————————————————————————————————— 48.68s
                  download : container_download | Download image if required ( kubesphere/ks-account:v2.1.1 ) ——————————————————————————————– 35.14s
                  download : container_download | Download image if required ( kubesphere/ks-apigateway:v2.1.1 ) —————————————————————————————– 27.92s
                  download : container_download | Download image if required ( alpine:3.10.4 ) ———————————————————————————————————– 24.66s
                  prepare/nodes : Ceph RBD | Installing ceph-common (YUM) ——————————————————————————————————————————– 24.28s
                  download : container_download | Download image if required ( nginx:1.14-alpine ) ——————————————————————————————————- 20.53s
                  prepare/nodes : KubeSphere| Installing JQ (YUM) —————————————————————————————————————————————- 12.01s
                  prepare/nodes : NFS-Client | Installing nfs-utils (YUM) ——————————————————————————————————————————— 6.37s
                  prepare/nodes : GlusterFS | Installing glusterfs-client (YUM) ————————————————————————————————————————— 4.36s
                  prepare/nodes : Installing epel-release (YUM) ——————————————————————————————————————————————- 1.99s
                  download : Download items ————————————————————————————————————————————————————— 1.23s
                  prepare/nodes : Copy get-pip.py ——————————————————————————————————————————————————— 0.91s
                  failed!


                  please refer to https://kubesphere.io/docs/v2.1/zh-CN/faq/faq-install/


                  [root@master scripts]#

                  `


                  装了我差不多3-4个小时,然后就这样了,这是咋回事呀,大佬们