lework/kainstall

redhat has already removed the sshpass from epel8

jelen56 opened this issue · 0 comments

Hi lework,i got a package installation error when i was using ur shell to init the cluster,like this:

[root@node03 kainstall]# bash kainstall-centos.sh init --master 192.168.1.10 --worker 192.168.1.20 --user  root --password **** --upgrade-kernel
[2023-03-03T18:38:12.099311833+0100]: INFO:    [start] bash kainstall-centos.sh init --master 192.168.1.10 --worker 192.168.1.20 --user root --password **** --upgrade-kernel
[2023-03-03T18:38:12.103986530+0100]: INFO:    [check] ssh command exists.
[2023-03-03T18:38:12.105655497+0100]: WARNING: [check] I require sshpass but it's not installed.
[2023-03-03T18:38:12.107243514+0100]: WARNING: [check] install sshpass package.
[2023-03-03T18:38:13.382721161+0100]: ERROR:   [check] sshpass install failed.

ERROR Summary: 
  [2023-03-03T18:38:13.382721161+0800]: ERROR:   [check] sshpass install failed.
 
  See detailed log >>> /tmp/kainstall.t5ov18pkMG/kainstall.log 

the detail log is :

[root@node03 kainstall]# tail -f /tmp/kainstall.t5ov18pkMG/kainstall.log 
[2023-03-03T18:38:12.099311833+0800]: INFO:    [start] bash kainstall-centos.sh init --master 192.168.1.10 --worker 192.168.1.20 --user root --password **** --upgrade-kernel
[2023-03-03T18:38:12.103986530+0800]: INFO:    [check] ssh command exists.
[2023-03-03T18:38:12.105655497+0800]: WARNING: [check] I require sshpass but it's not installed.
[2023-03-03T18:38:12.107243514+0800]: WARNING: [check] install sshpass package.
[2023-03-03T18:38:12.114142347+0800]: EXEC:    [command] bash -c 'yum install -y sshpass'
Last metadata expiration check: 0:40:54 ago on Sat 03 Mar 2023 07:57:18 AM CST.
No match for argument: sshpass
Error: Unable to find a match: sshpass
[2023-03-03T18:38:13.382721161+0800]: ERROR:   [check] sshpass install failed.

And i have tried to install this package(sshpass) in several different ways (below ways) and found that they all output the same error like before:

1.use rpm to install
2.use yum to install
3.use dnf to install

Finally,i found that redhat has already removed the sshpass from epel8, and i cant find sshpass package from epel repo by using this command:

dnf repository-packages epel list | grep -i sshpass

So I suggest you consider the following sshpass compatibility issues in centos (my centos version is 8.3+)