You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2018/05/11 17:17:51 UTC
[ambari] branch trunk updated: AMBARI-23778 v3 Ambari assigns /home
for NameNode, DataNode and NodeManager directories (#1249)
This is an automated email from the ASF dual-hosted git repository.
swagle pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new d15e9e0 AMBARI-23778 v3 Ambari assigns /home for NameNode, DataNode and NodeManager directories (#1249)
d15e9e0 is described below
commit d15e9e0964dd7e025be116e361a1c25308192cfc
Author: majorendre <34...@users.noreply.github.com>
AuthorDate: Fri May 11 19:17:49 2018 +0200
AMBARI-23778 v3 Ambari assigns /home for NameNode, DataNode and NodeManager directories (#1249)
---
ambari-agent/src/main/python/ambari_agent/Hardware.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ambari-agent/src/main/python/ambari_agent/Hardware.py b/ambari-agent/src/main/python/ambari_agent/Hardware.py
index f922043..0742d70 100644
--- a/ambari-agent/src/main/python/ambari_agent/Hardware.py
+++ b/ambari-agent/src/main/python/ambari_agent/Hardware.py
@@ -40,7 +40,7 @@ class Hardware:
CHECK_REMOTE_MOUNTS_KEY = 'agent.check.remote.mounts'
CHECK_REMOTE_MOUNTS_TIMEOUT_KEY = 'agent.check.mounts.timeout'
CHECK_REMOTE_MOUNTS_TIMEOUT_DEFAULT = '10'
- IGNORE_ROOT_MOUNTS = ["proc", "dev", "sys", "boot"]
+ IGNORE_ROOT_MOUNTS = ["proc", "dev", "sys", "boot", "home"]
IGNORE_DEVICES = ["proc", "tmpfs", "cgroup", "mqueue", "shm"]
LINUX_PATH_SEP = "/"
@@ -174,7 +174,7 @@ class Hardware:
- mount path or a part of mount path is not in the blacklist
"""
if mount["device"] not in self.IGNORE_DEVICES and\
- mount["mountpoint"].split("/")[0] not in self.IGNORE_ROOT_MOUNTS and\
+ mount["mountpoint"].strip()[1:].split("/")[0] not in self.IGNORE_ROOT_MOUNTS and\
self._chk_writable_mount(mount['mountpoint']) and\
not path_isfile(mount["mountpoint"]) and\
not self._is_mount_blacklisted(blacklisted_mount_points, mount["mountpoint"]):
--
To stop receiving notification emails like this one, please contact
swagle@apache.org.