From 9ae6287100f4d6c8b25fd100af8485551d906ecb Mon Sep 17 00:00:00 2001 From: Tanmay Satam Date: Mon, 15 Apr 2024 13:56:53 -0400 Subject: [PATCH] Revert "adding retry logic on yum commands to avoid resource locking" This reverts commit 95e171def7fef31583ea6125b3adbc584ed8f508. --- pkg/deploy/generator/scripts/rpVMSS.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkg/deploy/generator/scripts/rpVMSS.sh b/pkg/deploy/generator/scripts/rpVMSS.sh index 879483f1222..e8bf7d29658 100644 --- a/pkg/deploy/generator/scripts/rpVMSS.sh +++ b/pkg/deploy/generator/scripts/rpVMSS.sh @@ -5,18 +5,11 @@ echo "setting ssh password authentication" sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config systemctl reload sshd.service -#Adding retry logic to yum commands in order to avoid stalling out on resource locks -for attempt in {1..5}; do - echo "running RHUI fix" - yum update -y --disablerepo='*' --enablerepo='rhui-microsoft-azure*' - if [[ ${attempt} -lt 5 ]]; then sleep 10; else exit 1; fi -done +echo "running RHUI fix" +yum update -y --disablerepo='*' --enablerepo='rhui-microsoft-azure*' -for attempt in {1..5}; do - echo "running yum update" - yum -y -x WALinuxAgent -x WALinuxAgent-udev update --allowerasing - if [[ ${attempt} -lt 5 ]]; then sleep 10; else exit 1; fi -done +echo "running yum update" +yum -y -x WALinuxAgent -x WALinuxAgent-udev update --allowerasing echo "extending partition table" # Linux block devices are inconsistently named