Woraround systemd issue on CentOS 9-stream
systemd-252-16.el9 introduced a regression
where libvirtd process exits after 120s of
inactivity.
Add a workaround to unset 120s timeout for
libvirtd, the workaround can be removed once
the fix is available in systemd rpm.
Related-Bug: #2029335
Change-Id: Id6db6c17518b54d5fef7c381c509066a569aff6d
diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh
index faea44f..80a83bb 100755
--- a/tools/fixup_stuff.sh
+++ b/tools/fixup_stuff.sh
@@ -94,6 +94,11 @@
if [[ $os_VENDOR == "CentOSStream" && $os_RELEASE -eq 8 ]]; then
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'
fi
+ # TODO(ykarel): Workaround for systemd issue, remove once fix is
+ # included in systemd rpm https://bugs.launchpad.net/devstack/+bug/2029335
+ if [[ $os_VENDOR == "CentOSStream" && $os_RELEASE -eq 9 ]]; then
+ echo 'LIBVIRTD_ARGS=""' | sudo tee /etc/sysconfig/libvirtd
+ fi
}
function fixup_ovn_centos {