Cauchy 是CentOS Linux release 7.8.2003 (Core)
离线安装 KubeSphere 2.1.1 与 Kubernetes
Cauchy 好的,谢谢!
- 已编辑
Cauchy 改成7.8以后成功开始安装了,非常感谢!但是现在出现了这样的状况,是在拉镜像拉不下来吗?我用的代理,wget能通网,但不知道为什么这里的镜像无法拉取,望解惑
又仔细看了一眼地址,感觉是在本地拉取的镜像?那为何无法拉取呢?
Cauchy 看了一下,里面是有本地仓库地址的:Insecure Registries: 192.168.2.32:5000 127.0.0.0/8
这是什么原因呢
Cauchy 顺带一提,我现在安装的是 all-in-one 单节点模式的,之前尝试安装多节点时出现了这样的情况
我的hosts.ini配置是这样的:
请问是哪里出问题了?
Cauchy push了一个镜像,果然无法成功,一直在retrying
Cauchy 查看了一下docker的日志,报的错也让人找不到头绪。。。
Cauchy 谢谢您,帮助了我很多。前面几次bug调试无果,目前尝试从centos7.7安装kubesphere了,期待能成功吧。。。
`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]
`
`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
`