mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +00:00
Install repoquery for go-xcat testcases
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user