Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos7一键部署失败,当前系统不被支持 #6

Open
mingqing6364 opened this issue Nov 30, 2023 · 8 comments
Open

Centos7一键部署失败,当前系统不被支持 #6

mingqing6364 opened this issue Nov 30, 2023 · 8 comments

Comments

@mingqing6364
Copy link

mingqing6364 commented Nov 30, 2023

下载最新版后,改好配置文件,看日志输出,centos7不支持部署
[root@172-30-110-63 lighthouse-1.1.5]# bin/easy-deploy.sh [root@172-30-110-63 lighthouse-1.1.5]# tail -f bin/log/log.txt Current environment os:CentOS,version:7 The current deployment environment['os':'CentOS','version:':'7'] does not support,process exit!

我翻看了一下发布日志,没有相关描述,查看源码后才发现支持的系统列表。
`checkOSVersion(){
local lsb=$1
local major=$2;
if [[ ! -n $lsb ]] || [[ ! -n $major ]];then
log_info "The current deployment environment does not support,process exit!"
exit -1;
elif [[ ${lsb} == "CentOS" ]] || [[ ${lsb} == "Rocky" ]] || [[ ${lsb} == "Alma" ]] || [[ ${lsb} == "RHEL" ]];then
local supportVersions=("8" "9")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
elif [ ${lsb} == "Debian" ];then
local supportVersions=("10" "11")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
elif [ ${lsb} == "Ubuntu" ];then
local supportVersions=("16.04" "18.04" "20.04" "22.04")
if [[ ! "${supportVersions[@]}" =~ "$major" ]];then
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi
else
log_info "The current deployment environment['os':'${lsb}','version:':'${major}'] does not support,process exit!"
exit -1;
fi

}
`

建议将支持列表,整理到readme.md里面。

此外,请问有支持openEuler等国产系统的计划么?
openEuler22.03-LTS(2024-03会EOL,下一个长期支持版应该会广泛使用)
openEuler22.03-LTS应该是基于Centos8改的,基本上rpm包都能通用
但是/etc/*-release里面没有CentOS关键字,我改一下脚本试试能不能兼容安装起来。

@xl-xueling
Copy link
Owner

嗯,我稍后会将支持的系统版本更新到文档里面;
CentOS7不支持主要是官方的维护时间即将到期,所以这里直接屏蔽了。如果你的环境有配置yum源,可以正常执行yum安装,稍微改一下脚本应该也可以使用CentOS7部署;
openEuler这个操作系统我还没有用过,有时间我会测试一下,因为目前还有些其他的功能在开发,所以可能得三四周以后吧,只要是用的人多的操作系统,都会尽可能支持。

@mingqing6364
Copy link
Author

试了一下openEuler22.03-LTS,ice的相关依赖无法获取,安装失败。
在centos8环境下载了一套ice的rpm包,拷贝过来安装,报会导致受保护的xxx包卸载,也失败了。
估计是得编译安装才行。

@xl-xueling
Copy link
Owner

centos是直接使用Yum安装的,不用编译,你把log.txt文件发给我,[email protected],我看一下

@mingqing6364
Copy link
Author

不是centos出的问题,是openEuler22.03-LTS(可以看出是基于centos8二开的系统),一些相关依赖无法解决。
不纠结了,这个版本会在2024-03 EOL,等下一个LTS发布吧。
而且我也只是学习踩坑,不是用于生产环境,直接换个系统安装就行。
各种消息来看,后续国内主流的服务器系统应该是:中标麒麟、华为欧拉(openEuler是社区版)……

`[root@172-30-110-67 opt]# yum install ice-all-runtime ice-all-devel
OS 10 kB/s | 2.6 kB 00:00
everything 13 kB/s | 2.9 kB 00:00
EPOL 12 kB/s | 2.8 kB 00:00
debuginfo 12 kB/s | 2.8 kB 00:00
source 13 kB/s | 2.7 kB 00:00
update 14 kB/s | 3.1 kB 00:00
update-source 5.5 kB/s | 2.0 kB 00:00
Error:
Problem: 软件包 ice-all-runtime-3.7.10-1.el8.x86_64 需要 python3-ice(x86-64) = 3.7.10-1.el8,但没有提供者可以被安装

  • 无法为该任务安装最佳候选
  • 没有东西可提供 libpython3.6m.so.1.0()(64bit)(python3-ice-3.7.10-1.el8.x86_64 需要)
  • 没有东西可提供 python(abi) = 3.6(python3-ice-3.7.10-1.el8.x86_64 需要)
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    `

@xl-xueling
Copy link
Owner

嗯,好的,有问题随时反馈~

@mingqing6364
Copy link
Author

修改bin/common/common.sh文件中的checkOSVersion函数后,CentOS7环境下部署成功。

@mingqing6364
Copy link
Author

image
不应该是收藏么?

@xl-xueling
Copy link
Owner

😄还真是,我改一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants