integ/base/cluster-resource-agents/centos/patches/umount-in-namespace.patch
Martin, Chen 53d39bcee7 rebase resource-agents patch to CentOS 7.6 version
deduct Re-enable-background-execution-of-arp-commands.patch,
already in upgraded basecode

Test:
Pass build and simplex deploy test

Depends-On: https://review.openstack.org/629964/

Story: 2004522
Task: 28427

Change-Id: I6b5ab7f424cafd09164e55a64419f165357f2ffc
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-01-15 13:54:27 +08:00

28 lines
746 B
Diff

From eb45b8271ce64a046d41c93b1cffd641245ce55f Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Mon, 2 Oct 2017 15:12:48 -0400
Subject: [PATCH 05/13] WRS: Patch1109: umount-in-namespace.patch
---
heartbeat/Filesystem | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/heartbeat/Filesystem b/heartbeat/Filesystem
index f536298..05e4097 100755
--- a/heartbeat/Filesystem
+++ b/heartbeat/Filesystem
@@ -503,6 +503,10 @@ signal_processes() {
}
try_umount() {
local SUB=$1
+
+ # We need to ensure we umount in namespaces, too
+ /usr/sbin/umount-in-namespace $SUB
+
$UMOUNT $umount_force $SUB
list_mounts | grep -q " $SUB " >/dev/null 2>&1 || {
ocf_log info "unmounted $SUB successfully"
--
1.9.1