Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4160C18211 for ; Fri, 29 Jan 2016 19:41:40 +0000 (UTC) Received: (qmail 25991 invoked by uid 500); 29 Jan 2016 19:41:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 25955 invoked by uid 500); 29 Jan 2016 19:41:40 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 25932 invoked by uid 99); 29 Jan 2016 19:41:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 19:41:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD4262C0453 for ; Fri, 29 Jan 2016 19:41:39 +0000 (UTC) Date: Fri, 29 Jan 2016 19:41:39 +0000 (UTC) From: "Jonathan Hurley (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14847) Concurrent kinit Commands Cause Alerts To Randomly Trigger MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Hurley updated AMBARI-14847: ------------------------------------- Attachment: AMBARI-14847.patch > Concurrent kinit Commands Cause Alerts To Randomly Trigger > ---------------------------------------------------------- > > Key: AMBARI-14847 > URL: https://issues.apache.org/jira/browse/AMBARI-14847 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.0.0 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Critical > Fix For: 2.2.2 > > Attachments: AMBARI-14847.patch > > > The alerts framework on each Ambari Agent runs alerts in a threadpool when the job triggers. This can cause the following error to randomly appear and the alert to go CRITICAL: > {noformat} > Connection failed to http://nat-rare-21-dvitiiuk-2-5.novalocal:8088 (Execution of '/usr/bin/kinit -l 5m -c /var/lib/ambari-agent/tmp/web_alert_cc_f3f99363c3b7d1667f1287ce3a35aa52 -kt /etc/security/keytabs/spnego.service.keytab HTTP/nat-rare-21-dvitiiuk-2-5.novalocal@EXAMPLE.COM > /dev/null' returned 1. > kinit: Internal credentials cache error while storing credentials while getting initial credentials) > {noformat} > The alerts would randomly go CRITICAL at the end of their ticket expiration time only to become OK again shortly after. > The cause is that the {{kinit}} command being executed to create new credentials cannot be run concurrently for the same user. -- This message was sent by Atlassian JIRA (v6.3.4#6332)