A fix where dpkg was failing due to ongoing dpkg operation.
This commit is contained in:
Родитель
039c966b01
Коммит
cb815f76f0
|
@ -85,7 +85,7 @@ InstallGPUDrivers() {
|
|||
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} -O /tmp/${CUDA_REPO_PKG}
|
||||
dpkg -i /tmp/${CUDA_REPO_PKG}
|
||||
rm -f /tmp/${CUDA_REPO_PKG}
|
||||
dpkg --force-all --configure -a
|
||||
until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done
|
||||
apt-get -y update
|
||||
apt-get -y install linux-tools-generic linux-cloud-tools-generic
|
||||
apt-get -y install cuda-drivers
|
||||
|
|
|
@ -52,7 +52,7 @@ InstallFIO() {
|
|||
if [[ $DISTRO =~ "Ubuntu" ]];
|
||||
then
|
||||
LogMsg "Detected UBUNTU"
|
||||
dpkg --force-all --configure -a
|
||||
until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done
|
||||
apt-get update
|
||||
apt-get install -y wget sysstat blktrace bc
|
||||
mount -t debugfs none /sys/kernel/debug
|
||||
|
|
|
@ -48,7 +48,7 @@ InstallIPERF3()
|
|||
then
|
||||
|
||||
LogMsg "Detected Ubuntu"
|
||||
ssh ${1} "dpkg --force-all --configure -a"
|
||||
ssh ${1} "until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done"
|
||||
ssh ${1} "apt-get update"
|
||||
ssh ${1} "apt-get -y install iperf3 sysstat bc"
|
||||
if [ $IPversion -eq 6 ]; then
|
||||
|
|
|
@ -49,7 +49,7 @@ InstallLAGSCOPE() {
|
|||
then
|
||||
LogMsg "Detected UBUNTU"
|
||||
LogMsg "Configuring ${1} for lagscope test..."
|
||||
ssh ${1} "dpkg --force-all --configure -a"
|
||||
ssh ${1} "until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done"
|
||||
ssh ${1} "apt-get update"
|
||||
ssh ${1} "apt-get -y install libaio1 sysstat git bc make gcc"
|
||||
ssh ${1} "rm -rf lagscope"
|
||||
|
@ -177,7 +177,7 @@ LogMsg "Now running Lagscope test"
|
|||
LogMsg "Starting server."
|
||||
ssh root@${server} "lagscope -r -D"
|
||||
sleep 1
|
||||
LogMsg "Starting client."
|
||||
LogMsg "lagscope client running..."
|
||||
ssh root@${client} "lagscope -s${server} -i0 -n${pingIteration} -H > lagscope-n${pingIteration}-output.txt"
|
||||
LogMsg "Test finsished."
|
||||
UpdateTestState ICA_TESTCOMPLETED
|
||||
|
|
|
@ -49,7 +49,7 @@ InstallNTTTCP() {
|
|||
then
|
||||
LogMsg "Detected UBUNTU"
|
||||
LogMsg "Configuring ${1} for ntttcp test..."
|
||||
ssh ${1} "dpkg --force-all --configure -a"
|
||||
ssh ${1} "until dpkg --force-all --configure -a; sleep 10; do echo 'Trying again...'; done"
|
||||
ssh ${1} "apt-get update"
|
||||
ssh ${1} "apt-get -y install libaio1 sysstat git bc make gcc"
|
||||
ssh ${1} "git clone https://github.com/Microsoft/ntttcp-for-linux.git"
|
||||
|
|
Загрузка…
Ссылка в новой задаче