2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

Install repoquery for go-xcat testcases

This commit is contained in:
Mark Gurevich
2020-02-28 09:55:38 -05:00
parent 79999e7e89
commit 4ed604ffb0
3 changed files with 22 additions and 6 deletions

View File

@ -626,7 +626,7 @@ function check_repo_version_yum()
{
type yum >/dev/null 2>&1 || return 255
check_executes repoquery
exit_if_bad "$?" "Install the \`yum-utils' package and rerun."
exit_if_bad "$?" "Install the \`yum-utils' or \`dnf-utils' package and rerun."
local -a name=()
local -a ver=()
while read -r name ver

View File

@ -21,10 +21,14 @@ for (( tryreinstall = 1 ; tryreinstall < $times ; ++tryreinstall ))
do
echo "[$tryreinstall] Trying to install $node with $osimage ..."
echo "Memory on vmhost $vmhost"
ssh $vmhost free -g
echo "Active VMs on vmhost $vmhost"
ssh $vmhost virsh list
if [[ ! -z $vmhost ]];then
# Display memory and active VMs on VM host, when installing on VM
echo "Memory on vmhost $vmhost"
ssh $vmhost free -g
echo "Active VMs on vmhost $vmhost"
ssh $vmhost virsh list
fi
echo "rinstall $node osimage=$osimage"
rinstall $node osimage=$osimage
if [ $? != 0 ];then

View File

@ -19,6 +19,9 @@ check:output=~booted
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN"yum install -y yum-utils dnf-utils bzip2"; fi
#Install devel version of xCAT
cmd:xdsh $$CN "cd /; ./go-xcat --xcat-version=devel -y install"
check:rc==0
@ -52,6 +55,9 @@ check:output=~booted
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN"yum install -y yum-utils dnf-utils bzip2"; fi
#Install GA version of xCAT
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
check:rc==0
@ -85,6 +91,9 @@ check:output=~booted
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN"yum install -y yum-utils dnf-utils bzip2"; fi
#Install GA version of xCAT
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
check:rc==0
@ -128,6 +137,9 @@ check:output=~booted
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
#Install additional packages on Red Hat
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN"yum install -y yum-utils dnf-utils bzip2"; fi
#Install GA version of xCAT
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
check:rc==0
@ -143,7 +155,7 @@ cmd:xdsh $$CN "cd /; ./go-xcat -y completely uninstall"
check:rc==0
cmd:xdsh $$CN "service xcatd status"
check:rc!=0
check:output=~could not be found|dead
check:output=~could not be found|dead|no such service xcatd
#Install devel version of xCAT
cmd:xdsh $$CN "cd /; ./go-xcat --xcat-version=devel -y install"