From 52e4dd1b622b971183f7bd8511536f843d87ba6b Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Wed, 7 Oct 2026 16:41:34 -0500 Subject: [PATCH] Added lock timeout for zypper commands on suse platform during build host setup Ticket: ENT-14720 Changelog: none --- ci/setup-cfengine-build-host.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/setup-cfengine-build-host.sh b/ci/setup-cfengine-build-host.sh index 087cae49c..5e95491f0 100755 --- a/ci/setup-cfengine-build-host.sh +++ b/ci/setup-cfengine-build-host.sh @@ -30,6 +30,12 @@ function chown-root-owned-to-jenkins() { fi } +# ENT-14720 on fresh SUSE instances something on the image runs zypper at boot +# and can still hold the lock when we start, failing our zypper calls with +# "System management is locked by the application with pid NNNN (zypper)." +# Make zypper (including calls from cf-agent below) wait for the lock instead. +export ZYPP_LOCK_TIMEOUT=300 + ls -la /home/ if ! id -u jenkins; then useradd jenkins -p jenkins