Merging to upstream (#12)
* Added new test script for Middlewarw Mongodb benchmark tets * Minor fixes for mongodb perf test * Updated mogngodb test cycle name * Added new test script for FIO perf benchmark test * Minor fix * Minor fix * Minor fix * minor fix * Minor fix for collecting test logs * Updated mongodb code for logs collection * Minor fix for ci logs * Updated FIO test code for proper logs collection * Minor fix * Minor fix for log file names * Minor fix for mongodb ycsb logs collection * Minor fix cleanup VM * Minor fix cleanup VM * Minor fix * Minor fixes for FIO test * Added New script for build linux-next deb package * Added New script for build linux-next deb package * minor fixes * Minor fixes * updated linux-next build deb pack script * Updated instance size Linux-next build deb test * Minor fixes for Linux-next build deb pack test * Minor fixes for Linux-next build deb pack test * Updated the test script to store the deb pack in new loaction * Minor fix * removed duplicate deployment type * Minor fix for distro names * Minor fix * Minor fix for deb package staore loaction * Updated "updaterepos" with new distro name format * Uppercase the distribution name * Updated the UDP net perf test script to run test with given buffer sizes and upload the data loss in database * Reating dummy Documentation/Changes file to avoid .deb creation failure * updated unlimitted bandwidth option for UDP test * Added ARM SAs * Added duration90 secs * Fixed conflicts. * Update NttcpTestPlanFull.csv * Minor fix for fio test * Update ICA-BUILD-LINUX-NEXT-DEB-PACKAGE.ps1 Removed the hard coded image. To deploy VM using latest gallery image * Updated server_start.sh" * Added new script to install LIS by given LIS source file * Updated script to get proper username for test * Fixed Kernel-headers installation issue * Updated the detect_linux_distribution_version lib function to get pro… (#27) * Updated the detect_linux_distribution_version lib function to get proper distro version * Minor fix to support package installation for CentOS
This commit is contained in:
Родитель
e08c16cb3e
Коммит
d516b5b81e
|
@ -87,7 +87,7 @@ if ($isDeployed)
|
|||
$KernelVersion = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm1sshport -command "uname -r 2>&1" -runAsSudo
|
||||
LogMsg "Kernel Version : $KernelVersion"
|
||||
|
||||
Set-Content -Value "bash /home/$user/code/$($currentTestData.testScript) > /home/$user/code/linuxNextBuildTest.txt" -Path "$LogDir\StartTest.sh"
|
||||
Set-Content -Value "bash /home/$user/code/$($currentTestData.testScript) $user > /home/$user/code/linuxNextBuildTest.txt" -Path "$LogDir\StartTest.sh"
|
||||
$out = RemoteCopy -uploadTo $hs1VIP -port $hs1vm1sshport -files ".\$LogDir\StartTest.sh" -username $user -password $password -upload
|
||||
$out = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm1sshport -command "mv StartTest.sh /home/$user/code/" -runAsSudo
|
||||
$testJob = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm1sshport -command "bash /home/$user/code/StartTest.sh" -runAsSudo -RunInBackground
|
||||
|
|
|
@ -39,7 +39,16 @@ function check_exit_status ()
|
|||
|
||||
function detect_linux_ditribution_version()
|
||||
{
|
||||
local distro_version=`cat /etc/*release*|sed 's/"//g'|grep "VERSION_ID="| sed 's/VERSION_ID=//'| sed 's/\r//'`
|
||||
local distro_version="Unknown"
|
||||
if [ -f /etc/os-release ] ; then
|
||||
distro_version=`cat /etc/os-release|sed 's/"//g'|grep "VERSION_ID="| sed 's/VERSION_ID=//'| sed 's/\r//'`
|
||||
elif [ -f /etc/centos-release ] ; then
|
||||
distro_version=`cat /etc/centos-release | sed s/.*release\ // | sed s/\ .*//`
|
||||
elif [ -f /etc/oracle-release ] ; then
|
||||
distro_version=`cat /etc/oracle-release | sed s/.*release\ // | sed s/\ .*//`
|
||||
elif [ -f /etc/redhat-release ] ; then
|
||||
distro_version=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//`
|
||||
fi
|
||||
echo $distro_version
|
||||
}
|
||||
|
||||
|
@ -67,7 +76,7 @@ function detect_linux_ditribution()
|
|||
linux_ditribution='unknown'
|
||||
fi
|
||||
fi
|
||||
echo "${linux_ditribution^}"
|
||||
echo "$(echo "$linux_ditribution" | sed 's/.*/\u&/')"
|
||||
}
|
||||
|
||||
function updaterepos()
|
||||
|
|
|
@ -12,7 +12,8 @@ ICA_TESTFAILED="TestFailed" # Error during running of test
|
|||
|
||||
CONSTANTS_FILE="constants.sh"
|
||||
|
||||
username=`cat /var/log/cloud-init.log | grep Adding| sed "s/.*user //"`
|
||||
#username=`cat /var/log/cloud-init.log | grep Adding| sed "s/.*user //"`
|
||||
username=$1
|
||||
current_kernel=`uname -r`
|
||||
code_path="/home/$username/code"
|
||||
. $code_path/azuremodules.sh
|
||||
|
|
|
@ -85,6 +85,7 @@ elif [ "${customLIS}" == "netnext" ]; then
|
|||
sourceDir="net-next"
|
||||
elif [[ $customLIS == *.rpm ]]; then
|
||||
LogMsg "Custom LIS:$customLIS"
|
||||
sed -i '/^exclude/c\#exclude' /etc/yum.conf
|
||||
yum install -y wget tar
|
||||
LogMsg "Debian package web link detected. Downloading $customLIS"
|
||||
wget $customLIS
|
||||
|
@ -102,6 +103,7 @@ elif [[ $customLIS == *.rpm ]]; then
|
|||
exit 0
|
||||
elif [[ $customLIS == *.tar.gz ]]; then
|
||||
LogMsg "Custom LIS:$customLIS"
|
||||
sed -i '/^exclude/c\#exclude' /etc/yum.conf
|
||||
yum install -y git make tar gcc bc patch dos2unix wget xz >> ~/build-customLIS.txt 2>&1
|
||||
LogMsg "LIS tar file web link detected. Downloading $customLIS"
|
||||
wget $customLIS
|
||||
|
@ -129,6 +131,7 @@ if [ $DistroName == "SLES" -o $DistroName == "SUSE" ]; then
|
|||
LogMsg "LIS doesn't support for $DistroName distro..."
|
||||
elif [ $DistroName == "CENTOS" -o $DistroName == "REDHAT" -o $DistroName == "FEDORA" -o $DistroName == "ORACLELINUX" ]; then
|
||||
LogMsg "Installing packages git make tar gcc bc patch dos2unix wget ..."
|
||||
sed -i '/^exclude/c\#exclude' /etc/yum.conf
|
||||
yum install -y git make tar gcc bc patch dos2unix wget xz >> ~/build-customLIS.txt 2>&1
|
||||
LogMsg "Downloading LIS source from ${LISSource}..."
|
||||
git clone ${LISSource} >> ~/build-customLIS.txt 2>&1
|
||||
|
|
|
@ -167,9 +167,9 @@ RunFIO()
|
|||
|
||||
ConfigCentOS7()
|
||||
{
|
||||
fioCentOS7pkg="fio-2.1.10-1.el7.rf.x86_64.rpm"
|
||||
fioCentOS7pkg="fio-2.2.8-2.el7.x86_64.rpm"
|
||||
LogMsg "INFO: CentOS7: installing required packages"
|
||||
yum install -y wget sysstat mdadm blktrace
|
||||
yum install -y wget sysstat mdadm blktrace libaio
|
||||
mount -t debugfs none /sys/kernel/debug
|
||||
|
||||
installed=`which fio`
|
||||
|
@ -178,7 +178,7 @@ ConfigCentOS7()
|
|||
|
||||
fiolPkg=$(ls | grep ${fioCentOS7pkg})
|
||||
if [ -z "$fiolPkg" ]; then
|
||||
wget "http://pkgs.repoforge.org/fio/${fioCentOS7pkg}"
|
||||
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS7pkg}"
|
||||
fi
|
||||
yum install -y ${fioCentOS7pkg}
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -192,7 +192,7 @@ ConfigCentOS6()
|
|||
{
|
||||
fioCentOS6pkg="fio-2.1.10-1.el6.rf.x86_64.rpm"
|
||||
LogMsg "INFO: CentOS6: installing required packages"
|
||||
yum install -y wget sysstat mdadm blktrace
|
||||
yum install -y wget sysstat mdadm blktrace libaio
|
||||
mount -t debugfs none /sys/kernel/debug
|
||||
|
||||
installed=`which fio`
|
||||
|
@ -201,7 +201,7 @@ ConfigCentOS6()
|
|||
|
||||
fiolPkg=$(ls | grep ${fioCentOS6pkg})
|
||||
if [ -z "$fiolPkg" ]; then
|
||||
wget "http://pkgs.repoforge.org/fio/${fioCentOS6pkg}"
|
||||
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS6pkg}"
|
||||
fi
|
||||
yum install -y libibverbs.x86_64
|
||||
yum install -y ${fioCentOS6pkg}
|
||||
|
@ -347,7 +347,8 @@ mountDir="/data"
|
|||
cd ${HOMEDIR}
|
||||
|
||||
#DISTRO=`grep -ihs "Ubuntu\|Suse\|Fedora\|Debian\|CentOS\|Red Hat Enterprise Linux" /etc/{issue,*release,*version} | grep DISTRIB_ID= | sed s/DISTRIB_ID=//`
|
||||
DISTRO="Ubuntu"
|
||||
DISTRO=`grep -ihs "Ubuntu\|Suse\|Fedora\|Debian\|CentOS\|Red Hat Enterprise Linux" /etc/{issue,*release,*version}`
|
||||
#DISTRO="Ubuntu"
|
||||
echo "###############$DISTRO########################"
|
||||
case $DISTRO in
|
||||
Ubuntu*)
|
||||
|
|
Загрузка…
Ссылка в новой задаче