From 3d8bca98ae8b378e0851387e2e7bff1a7f8e2690 Mon Sep 17 00:00:00 2001 From: Andrew Stoycos Date: Tue, 29 Sep 2020 13:14:56 -0400 Subject: [PATCH] Allow all processes to make core dumps Fixes for OVN and SDN Currently we cannot see ovs coredumps when it segfaults This should fix that and allow us to solve https://bugzilla.redhat.com/show_bug.cgi?id=1875534 Signed-off-by: Andrew Stoycos --- templates/common/_base/files/configure-ovs-network.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/common/_base/files/configure-ovs-network.yaml b/templates/common/_base/files/configure-ovs-network.yaml index f549082919..7860abd47c 100644 --- a/templates/common/_base/files/configure-ovs-network.yaml +++ b/templates/common/_base/files/configure-ovs-network.yaml @@ -157,6 +157,10 @@ contents: sed -i '/^\[ethernet\]$/a mtu='"$iface_mtu" ${new_conn_file} fi cat <> ${new_conn_file} + + #Enable coredumping by all processes, core dump is owned by current user and no security is applied + sysctl -w fs.suid_dumpable=1 + [ovs-interface] type=internal EOF @@ -228,4 +232,8 @@ contents: # remove bridges created by ovn-kubernetes, try to delete br-ex again in case NM fail to talk to ovsdb ovs-vsctl --timeout=30 --if-exists del-br br-int -- --if-exists del-br br-local -- --if-exists del-br br-ex + + #Enable coredumping by all processes, core dump is owned by current user and no security is applied + sysctl -w fs.suid_dumpable=1 + fi