Skip to content

离线部署 在检测依赖软件时bug #2915

@lizhizhou1985

Description

@lizhizhou1985

What is version of KubeKey has the issue?

4.0.2

What is your os environment?

kylin v10

KubeKey config file

A clear and concise description of what happend.

kk 在检测 conntrack 软件是否安装时,使用的命令错误
不应该是 rpm -q conntrack
应该是: rpm -q conntrack-tools
如截图:

Image

源码部分:
BACKUP_FILE="/etc/yum.repos.d.kubekey.bak-$(date +%Y%m%d%H%M%S)"
PKGS="socat conntrack ipset ebtables chrony ipvsadm"
PKGS_TO_INSTALL=""
for pkg in $PKGS; do
if [ -n "$pkg" ]; then
rpm -q $pkg >/dev/null 2>&1 || PKGS_TO_INSTALL="$PKGS_TO_INSTALL $pkg"
fi
done

建议: 不知道可否改成 which 软件名字 的方法来检测是否安装依赖软件

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions