Skip to content

Commit af4efe8

Browse files
committed
Make Salt Bundle more tolerant to long running jobs (bsc#1228690)
1 parent 1de50cc commit af4efe8

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 994ebca519945c86dc30f1510dff36b3261446c0 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
3+
4+
Date: Thu, 10 Oct 2024 11:51:02 +0100
5+
Subject: [PATCH] Enhance cleanup mechanism after Salt Bundle upgrade
6+
(bsc#1228690) (#685)
7+
8+
---
9+
pkg/common/venv-salt-minion-postinstall.service | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/pkg/common/venv-salt-minion-postinstall.service b/pkg/common/venv-salt-minion-postinstall.service
13+
index b122d7d6ea..c9db270435 100644
14+
--- a/pkg/common/venv-salt-minion-postinstall.service
15+
+++ b/pkg/common/venv-salt-minion-postinstall.service
16+
@@ -2,6 +2,6 @@
17+
Description=Clean old environment for venv-salt-minion
18+
19+
[Service]
20+
-ExecStart=/bin/sh -c '/usr/lib/venv-salt-minion/bin/post_start_cleanup.sh || :'
21+
+ExecStart=/bin/sh -c 'WAIT_IF_SALT_JOBS=1 /usr/lib/venv-salt-minion/bin/post_start_cleanup.sh || :'
22+
Type=oneshot
23+
24+
--
25+
2.46.1
26+

salt/salt.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ Patch142: avoid-explicit-reading-of-etc-salt-minion-bsc-122035.patch
450450
Patch143: fix-x509-test-fails-on-old-openssl-systems-682.patch
451451
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/684
452452
Patch144: fix-x509-private-key-tests-and-test_suse-on-sle12-68.patch
453+
# PATCH-FIX_OPENSUSE: https://github.com/openSUSE/salt/pull/685
454+
Patch145: enhance-cleanup-mechanism-after-salt-bundle-upgrade-.patch
453455

454456
### IMPORTANT: The line below is used as a snippet marker. Do not touch it.
455457
### SALT PATCHES LIST END

0 commit comments

Comments
 (0)