Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 46BC4200C0F for ; Thu, 2 Feb 2017 17:02:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 45211160B54; Thu, 2 Feb 2017 16:02:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B57F160B61 for ; Thu, 2 Feb 2017 17:02:56 +0100 (CET) Received: (qmail 76631 invoked by uid 500); 2 Feb 2017 16:02:55 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 76622 invoked by uid 99); 2 Feb 2017 16:02:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2017 16:02:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3D4F1C1102 for ; Thu, 2 Feb 2017 16:02:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.801 X-Spam-Level: X-Spam-Status: No, score=0.801 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_BADIPHTTP=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vZi6s1O77tCr for ; Thu, 2 Feb 2017 16:02:54 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E44415FB76 for ; Thu, 2 Feb 2017 16:02:53 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ADD1FE0591 for ; Thu, 2 Feb 2017 16:02:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DBB0525295 for ; Thu, 2 Feb 2017 16:02:51 +0000 (UTC) Date: Thu, 2 Feb 2017 16:02:51 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-19746) Ambari HDFS Metric alerts turns to UNKNOWN status with error "argument of type 'NoneType' is not iterable" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Feb 2017 16:02:57 -0000 [ https://issues.apache.org/jira/browse/AMBARI-19746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Sen updated AMBARI-19746: -------------------------------- Status: Patch Available (was: Reopened) > Ambari HDFS Metric alerts turns to UNKNOWN status with error "argument of type 'NoneType' is not iterable" > ---------------------------------------------------------------------------------------------------------- > > Key: AMBARI-19746 > URL: https://issues.apache.org/jira/browse/AMBARI-19746 > Project: Ambari > Issue Type: Bug > Components: alerts > Affects Versions: 2.5.0 > Reporter: Dmytro Sen > Assignee: Dmytro Sen > Priority: Blocker > Fix For: 2.5.0 > > Attachments: AMBARI-19746_2.patch, AMBARI-19746.patch > > > Build used : ambari-2.5.0.0-724 > Test is updating the alert definition minimumValue to "0.0". > Payload used to update the minimumValue > {code:java} > /{ > "AlertDefinition": { > "cluster_name": "cl1", > "id": 81, > "name": "increase_nn_heap_usage_daily", > "label": "NameNode Heap Usage (Daily)", > "component_name": "NAMENODE", > "description": "This service-level alert is triggered if the NameNode heap usage deviation has grown beyond the specified threshold within a day period.", > "enabled": true, > "ignore_host": false, > "interval": 1, > "scope": "ANY", > "service_name": "HDFS", > "source": { > "parameters": [{ > "name": "mergeHaMetrics", > "display_name": "Whether active and stanby NameNodes metrics should be merged", > "value": "false", > "description": "Whether active and stanby NameNodes metrics should be merged.", > "type": "STRING", > "visibility": "HIDDEN" > }, { > "name": "interval", > "display_name": "Time interval in minutes", > "value": "1440.0", > "description": "Time interval in minutes.", > "type": "NUMERIC", > "visibility": "HIDDEN" > }, { > "name": "appId", > "display_name": "AMS application id", > "value": "NAMENODE", > "description": "The application id used to retrieve the metric.", > "type": "STRING", > "visibility": "HIDDEN" > }, { > "name": "metricName", > "display_name": "Metric Name", > "value": "jvm.JvmMetrics.MemHeapUsedM", > "description": "The metric to monitor.", > "type": "STRING", > "visibility": "HIDDEN" > }, { > "name": "metric.deviation.warning.threshold", > "display_name": "Growth Rate", > "value": "20.0", > "description": "The percentage of NameNode heap usage growth.", > "type": "PERCENT" > }, { > "name": "metric.deviation.critical.threshold", > "display_name": "Growth Rate", > "value": "50.0", > "description": "The percentage of NameNode heap usage growth.", > "type": "PERCENT" > }, { > "name": "metric.units", > "display_name": "Metric Units", > "value": "MB", > "description": "The units that the metric data points are reported in.", > "type": "STRING", > "visibility": "HIDDEN" > }, { > "name": "minimumValue", > "display_name": "Minimum Heap", > "value": "0.0", > "description": "The minimum heap increase in a day.", > "type": "NUMERIC" > }], > "path": "HDFS/2.1.0.2.0/package/alerts/alert_metrics_deviation.py", > "type": "SCRIPT" > } > } > } > {code} > Alert response : > {code:java} > 03:14:20 AM 01-25-2017 AmbariItems FINE - API call response:{ > "href" : "http://172.27.9.139:8080/api/v1/clusters/cl1/alerts/119", > "Alert" : { > "cluster_name" : "cl1", > "component_name" : "NAMENODE", > "definition_id" : 81, > "definition_name" : "increase_nn_heap_usage_daily", > "firmness" : "HARD", > "host_name" : "ctr-e126-1485243696039-2656-01-000006.hwx.site", > "id" : 119, > "instance" : null, > "label" : "NameNode Heap Usage (Daily)", > "latest_timestamp" : 1485314039820, > "maintenance_state" : "OFF", > "occurrences" : 13, > "original_timestamp" : 1485313319818, > "repeat_tolerance" : 1, > "repeat_tolerance_remaining" : 0, > "scope" : "ANY", > "service_name" : "HDFS", > "state" : "UNKNOWN", > "text" : "argument of type 'NoneType' is not iterable" > } > } > {code} > Note : Test used to pass consistently. -- This message was sent by Atlassian JIRA (v6.3.15#6346)