Skip to content

Commit 1d489fe

Browse files
committed
Skip _stackmanager execution for libreswan 5.3+
The _stackmanager binary was removed in libreswan 5.3 and is no longer required for prerequisite checks. This commit conditionally runs _stackmanager only when the binary is present on the system. Signed-off-by: Periyasamy Palanisamy <[email protected]>
1 parent 3dcc3fe commit 1d489fe

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

bindata/network/ovn-kubernetes/common/ipsec-containerized.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,11 @@ spec:
262262
ulimit -n 1024
263263

264264
/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig
265-
# Check kernel modules
266-
/usr/libexec/ipsec/_stackmanager start
265+
# Check kernel modules only for libreswan version <= 5.2. The _stackmanager binary is
266+
# removed from 5.3 onwards, so this check is not needed on later versions.
267+
if [ -e /usr/libexec/ipsec/_stackmanager ]; then
268+
/usr/libexec/ipsec/_stackmanager start
269+
fi
267270
# Check nss database status
268271
/usr/sbin/ipsec --checknss
269272
# Start the pluto IKE daemon

bindata/network/ovn-kubernetes/common/ipsec-host.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,11 @@ spec:
273273
ulimit -n 1024
274274

275275
/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig
276-
# Check kernel modules
277-
/usr/libexec/ipsec/_stackmanager start
276+
# Check kernel modules only for libreswan version <= 5.2. The _stackmanager binary is
277+
# removed from 5.3 onwards, so this check is not needed on later versions.
278+
if [ -e /usr/libexec/ipsec/_stackmanager ]; then
279+
/usr/libexec/ipsec/_stackmanager start
280+
fi
278281
# Check nss database status
279282
/usr/sbin/ipsec --checknss
280283

0 commit comments

Comments
 (0)