创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
CentOS7系统(均在内网环境,无法连接互联网)
4核、8G,100G磁盘
4核、16G,100G磁盘
4核、8G、100G磁盘
4核、8G、100G磁盘
Kubernetes版本信息
利用KK离线安装Kubernets和KubeSpher,并且已经提前准备好了离线包,该离线包kubesphere.tar.gz在有网络的环境可以正常部署。
KubeSphere版本信息
v3.3.2
问题是什么
报错日志:
已加载插件:fastestmirror
正在清理软件源: base-local
Cleaning up list of fastest mirrors
Other repos take up 576 M of disk space (use –verbose for details)
已加载插件:fastestmirror
Determining fastest mirrors
file:///tmp/kubekey/iso/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base-local: Damaged repomd.xml file
正在尝试其它镜像。
One of the configured repositories failed (CentOS7.6-local),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1\. Contact the upstream for the repository and get them to fix the problem.
2\. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3\. Run the command with the repository temporarily disabled
yum --disablerepo=base-local ...
4\. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable base-local
or
subscription-manager repos --disable=base-local
5\. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=base-local.skip_if_unavailable=true
failure: repodata/repomd.xml from base-local: [Errno 256] No more mirrors to try.
file:///tmp/kubekey/iso/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base-local: Damaged repomd.xml file
16:14:47 CST message: [node1]
update local repository failed: Failed to exec command: sudo -E /bin/bash -c “yum clean all && yum makecache”
已加载插件:fastestmirror
正在清理软件源: base-local
Cleaning up list of fastest mirrors
Other repos take up 576 M of disk space (use –verbose for details)
已加载插件:fastestmirror
Determining fastest mirrors
file:///tmp/kubekey/iso/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base-local: Damaged repomd.xml file
正在尝试其它镜像。
One of the configured repositories failed (CentOS7.6-local),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1\. Contact the upstream for the repository and get them to fix the problem.
2\. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3\. Run the command with the repository temporarily disabled
yum --disablerepo=base-local ...
4\. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable base-local
or
subscription-manager repos --disable=base-local
5\. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=base-local.skip_if_unavailable=true
failure: repodata/repomd.xml from base-local: [Errno 256] No more mirrors to try.
file:///tmp/kubekey/iso/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base-local: Damaged repomd.xml file: Process exited with status 1