[
https://issues.apache.org/jira/browse/AMBARI-18705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15609968#comment-15609968
]
Hadoop QA commented on AMBARI-18705:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12835396/AMBARI-18705.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:red}-1 tests included{color}. The patch doesn't appear to include
any new or modified tests.
Please justify why no new tests are needed for this
patch.
Also please list what manual steps were performed to
verify this patch.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in .
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/9023//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/9023//console
This message is automatically generated.
> All host metrics not being collected by AMS if user does not have permissions
> to read mount point.
> --------------------------------------------------------------------------------------------------
>
> Key: AMBARI-18705
> URL: https://issues.apache.org/jira/browse/AMBARI-18705
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Affects Versions: 2.4.2
> Reporter: Aravindan Vijayan
> Assignee: Aravindan Vijayan
> Priority: Critical
> Fix For: 2.4.2
>
> Attachments: AMBARI-18705.patch
>
>
> PROBLEM
> Host metrics are not being collected by AMS in certain environments with
> restrictive disks.
> This is because the metrics monitor process which collects the host metrics
> has insufficient permissions to read a mountpoint. It fails rather than
> sending other metrics.
> {code}
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
> self.run()
> File "/usr/lib64/python2.7/threading.py", line 1083, in run
> self.function(*self.args, **self.kwargs)
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py",
> line 45, in process_event
> self.process_host_collection_event(event)
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py",
> line 76, in process_host_collection_event
> metrics.update(self.host_info.get_combined_disk_usage())
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/core/host_info.py",
> line 188, in get_combined_disk_usage
> usage = psutil.disk_usage(part.mountpoint)
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/__init__.py",
> line 1690, in disk_usage
> return _psplatform.disk_usage(path)
> File
> "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/_psposix.py",
> line 121, in disk_usage
> st = os.statvfs(path)
> OSError: [Errno 13] Permission denied: '/abc/def/mountpoint'
> {code}
> {code}
> [root@ctr-e45-1475874954070-13451-01-000004 ~]# ls -lrt /abc/def/mountpoint
> total 4
> drwx--x--- 4 nobody 3004 36 Oct 26 07:20 filecache
> drwxr-s--- 5 nobody 3004 4096 Oct 26 07:21
> container_e45_1475874954070_13451_01_000004
> {code}
> FIX
> In AMS monitor, tolerate this failure and send other host metrics.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)