0
点赞
收藏
分享

微信扫一扫

部署k8s集群+ceph存储出现依赖性缺失的故障案例(最小化系统)

环境:最小化安装的系统(以redhat系为例)

日志报障1:
```html/xml
[INFO] - fatal: [master01]: FAILED! => {"changed": false, "failures": [],
"msg":"Depsolve Error occured: \n Problem: package kubeadm-1.21.8-0.x86_64 requires kubelet >= 1.19.0,
but none of the providers can be installed\n- conflicting requests\n
-nothing provides socat needed by kubelet-1.21.8-0.x86_64", "rc": 1, "results": []}

原因:缺少kubeadm的依赖包
解决办法:使用系统自带的yum源+K8S腾讯源进行依赖包的rpm下载(如果部署的机器可以直接连接外网那就直接安装就行)
附:k8s腾讯源
```html/xml
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.cloud.tencent.com/kubernetes/yum/repos/kubernetes-el7-aarch64/
enabled=1
gpgcheck=0
#repo_gpgcheck=1
##gpgkey=https://mirrors.cloud.tencent.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.cloud.tencent.com/kubernetes/yum/doc/rpm-package-key.gpg

随后通过yum这边下载对应的软件即可
```html/xml
yum install -y 下载的软件 --downloadonly --downloaddir=/opt #会一起把依赖包都下载下来

----

**日志报障2:**
```html/xml
2022-06-29 15:44:35 [INFO] - fatal: [master01]: 
FAILED! => {"changed": false, "failures": [], "msg":
 "Depsolve Error occured: \n Problem: package kubeadm-1.21.8-0.x86_64 requires kubelet
 >= 1.19.0, but none of the providers can be installed\n  
- package kubelet-1.21.8-0.x86_64 requires socat, 
- but none of the providers can be installed\n  - conflicting requests\n  
- - nothing provides libwrap.so.0()(64bit) needed by socat-1.7.3.2-2.el7.x86_64", "rc": 1, "results": []}

原因1:kubeadm完成依赖问题后缺少依赖包的依赖:socat
原因2:kubeadm完成依赖问题后socat缺少依赖包的依赖:libwrap.so.0()(64bit)
解决:首先,libwrap.so.0这些是属于openssl这块方面的。socat这块完全可以通过系统自带的Yum源配置下载rpm包,或者可以再添加一个epel源来进行大范围的搜索。(如果部署的机器可以直接连接外网那就直接安装就行)
```html/xml
yum install -y epel-release
yum clean all && yum makecache

随后通过yum这边下载对应的openssl以及socat即可
```html/xml
yum install -y  下载的软件  --downloadonly  --downloaddir=/opt #会一起把依赖包都下载下来

日志报障3:
```html/xml
[INFO] - fatal: [master01]: FAILED! =>
{"changed": false, "failures": [], "msg":
"Depsolve Error occured: \n Problem: package
cephmount-1.0.0-1.x86_64 requires
libcrypto.so.10()(64bit), but none of
the providers can be installed\n

  • package cephmount-1.0.0-1.x86_64
  • requires libcrypto.so.10(libcrypto.so.10)(64bit),
  • but none of the providers can be installed\n
    • cannot install both openssl-libs-1:1.1.1m-5.oe2203.x86_64
  • and openssl-libs-1:1.0.2k-19.el7.x86_64\n
    • cannot install both openssl-libs-1:1.1.1m-5.oe2203.x86_64
  • and openssl-libs-1:1.0.2k-25.el7_9.x86_64\n
    • package unbound-libs-1.13.2-3.oe2203.x86_64 requires
  • libcrypto.so.1.1()(64bit), but none of the providers can be installed\n - package unbound-libs-1.13.2-3.oe2203.x86_64 requires libcrypto.so.1.1(OPENSSL_1_1_0)(64bit),
  • but none of the providers can be installed\n
    • package unbound-libs-1.13.2-3.oe2203.x86_64
  • requires libssl.so.1.1()(64bit),
  • but none of the providers can be installed\n
    • package unbound-libs-1.13.2-3.oe2203.x86_64 requires libssl.so.1.1(OPENSSL_1_1_0)(64bit),
  • but none of the providers can be installed\n
    • package unbound-libs-1.13.2-3.oe2203.x86_64 requires libcrypto.so.1.1(OPENSSL_1_1_1)(64bit),
  • but none of the providers can be installed\n
    • cannot install both
  • openssl-libs-1:1.0.2k-19.el7.x86_64 and openssl-libs-1:1.1.1m-1.oe2203.x86_64\n - cannot install both openssl-libs-1:1.0.2k-25.el7_9.x86_64
  • and openssl-libs-1:1.1.1m-1.oe2203.x86_64\n
    • conflicting requests\n
    • problem with installed package
  • unbound-libs-1.13.2-3.oe2203.x86_64", "rc": 1, "results": []}
    
    原因:在安装ceph的时候(这里是自己打包好的镜像包),cephmount版本过低,需求低版本的openssl。而我这里的最小化系统(最新版)自带高版本的openssl,如果想安装低版本的openssl。则会出现高低版本的openssl相互冲突。而在实际环境中,系统自带的高版本的openssl一般不可以随意降级

解决:寻找相关人员重新打包ceph的安装包(新版)或者去自己对应版本的yum仓库下载最新的ceph然后安装完成即可(如果部署的机器可以直接连接外网那就直接安装就行)

举报

相关推荐

0 条评论