Fixed storage and network perf tests for some distros.

This commit is contained in:
Shital Savekar 2017-06-19 16:13:04 +05:30
Родитель cb815f76f0
Коммит 80baf48dde
2 изменённых файлов: 24 добавлений и 83 удалений

Просмотреть файл

@ -70,94 +70,35 @@ InstallFIO() {
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 6" ]]; elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 6" ]];
then then
LogMsg "Detected Redhat 6.x" LogMsg "Detected RHEL 6.x"
fioCentOS6pkg="fio-2.1.10-1.el6.rf.x86_64.rpm" LogMsg "INFO: installing required packages"
LogMsg "INFO: installing required packages" rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum install -y wget sysstat mdadm blktrace libaio yum -y --nogpgcheck install wget sysstat mdadm blktrace libaio fio
mount -t debugfs none /sys/kernel/debug mount -t debugfs none /sys/kernel/debug
installed=`which fio`
if [ ! $installed ]; then
LogMsg "INFO: Installing fio"
fiolPkg=$(ls | grep ${fioCentOS6pkg})
if [ -z "$fiolPkg" ]; then
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS6pkg}"
fi
yum install -y libibverbs.x86_64
yum install -y ${fioCentOS6pkg}
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
fi
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 7" ]]; elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 7" ]];
then then
fioCentOS7pkg="fio-2.2.8-2.el7.x86_64.rpm" LogMsg "Detected RHEL 7.x"
LogMsg "INFO: installing required packages" LogMsg "INFO: installing required packages"
yum install -y wget sysstat mdadm blktrace libaio rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y --nogpgcheck install wget sysstat mdadm blktrace libaio fio
mount -t debugfs none /sys/kernel/debug mount -t debugfs none /sys/kernel/debug
installed=`which fio`
if [ ! $installed ]; then
LogMsg "INFO: Installing fio"
fiolPkg=$(ls | grep ${fioCentOS7pkg})
if [ -z "$fiolPkg" ]; then
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS7pkg}"
fi
yum install -y ${fioCentOS7pkg}
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
fi
elif [[ $DISTRO =~ "CentOS Linux release 6" ]]; elif [[ $DISTRO =~ "CentOS Linux release 6" ]] || [[ $DISTRO =~ "CentOS release 6" ]];
then then
LogMsg "Detected CentOS 6.x" LogMsg "Detected CentOS 6.x"
fioCentOS6pkg="fio-2.1.10-1.el6.rf.x86_64.rpm" LogMsg "INFO: installing required packages"
LogMsg "INFO: installing required packages" rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum install -y wget sysstat mdadm blktrace libaio yum -y --nogpgcheck install wget sysstat mdadm blktrace libaio fio
mount -t debugfs none /sys/kernel/debug mount -t debugfs none /sys/kernel/debug
installed=`which fio`
if [ ! $installed ]; then
LogMsg "INFO: Installing fio"
fiolPkg=$(ls | grep ${fioCentOS6pkg})
if [ -z "$fiolPkg" ]; then
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS6pkg}"
fi
yum install -y libibverbs.x86_64
yum install -y ${fioCentOS6pkg}
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
fi
elif [[ $DISTRO =~ "CentOS Linux release 7" ]]; elif [[ $DISTRO =~ "CentOS Linux release 7" ]];
then then
fioCentOS7pkg="fio-2.2.8-2.el7.x86_64.rpm" LogMsg "Detected CentOS 7.x"
LogMsg "INFO: installing required packages" LogMsg "INFO: installing required packages"
yum install -y wget sysstat mdadm blktrace libaio rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y --nogpgcheck install wget sysstat mdadm blktrace libaio fio
mount -t debugfs none /sys/kernel/debug mount -t debugfs none /sys/kernel/debug
installed=`which fio`
if [ ! $installed ]; then
LogMsg "INFO: Installing fio"
fiolPkg=$(ls | grep ${fioCentOS7pkg})
if [ -z "$fiolPkg" ]; then
wget "https://konkasoftpackages.blob.core.windows.net/linuxbinaries/${fioCentOS7pkg}"
fi
yum install -y ${fioCentOS7pkg}
if [ $? -ne 0 ]; then
LogMsg "Error: Unable to install fio"
exit 1
fi
fi
elif [[ $DISTRO =~ "SUSE Linux Enterprise Server 12" ]]; elif [[ $DISTRO =~ "SUSE Linux Enterprise Server 12" ]];
then then

Просмотреть файл

@ -56,16 +56,16 @@ InstallIPERF3()
ssh ${1} "chmod +x ConfigureUbuntu1604IPv6.sh" ssh ${1} "chmod +x ConfigureUbuntu1604IPv6.sh"
ssh ${1} "./ConfigureUbuntu1604IPv6.sh" ssh ${1} "./ConfigureUbuntu1604IPv6.sh"
fi fi
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 6" ]] || [[ $DISTRO =~ "CentOS Linux release 6" ]] || [[ $DISTRO =~ "CentOS release 6" ]];
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 7.3" ]];
then then
LogMsg "Detected Redhat 7.x" LogMsg "Detected Redhat/CentOS 6.x"
ssh ${1} "rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ssh ${1} "rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm"
ssh ${1} "yum -y --nogpgcheck install iperf3 sysstat bc" ssh ${1} "yum -y --nogpgcheck install iperf3 sysstat bc"
ssh ${1} "iptables -F" ssh ${1} "iptables -F"
elif [[ $DISTRO =~ "CentOS Linux release 7" ]];
elif [[ $DISTRO =~ "Red Hat Enterprise Linux Server release 7" ]] || [[ $DISTRO =~ "CentOS Linux release 7" ]];
then then
LogMsg "Detected CentOS 7.x" LogMsg "Detected Redhat/CentOS 7.x"
ssh ${1} "rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ssh ${1} "rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
ssh ${1} "yum -y --nogpgcheck install iperf3 sysstat bc" ssh ${1} "yum -y --nogpgcheck install iperf3 sysstat bc"
ssh ${1} "iptables -F" ssh ${1} "iptables -F"