From issues-return-81529-archive-asf-public=cust-asf.ponee.io@ambari.apache.org Tue Mar 24 15:26:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 60AC618065D for ; Tue, 24 Mar 2020 16:26:03 +0100 (CET) Received: (qmail 55751 invoked by uid 500); 24 Mar 2020 15:26:02 -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 55742 invoked by uid 99); 24 Mar 2020 15:26:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2020 15:26:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BEB5FE2F8D for ; Tue, 24 Mar 2020 15:26:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 512627802D4 for ; Tue, 24 Mar 2020 15:26:00 +0000 (UTC) Date: Tue, 24 Mar 2020 15:26:00 +0000 (UTC) From: "Mangayarkarasi Thirugnanaselvam (Jira)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-25123) /var/lib/ambari-agent/cache not updating (Ambari 2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-25123?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D17= 065876#comment-17065876 ]=20 Mangayarkarasi Thirugnanaselvam commented on AMBARI-25123: ---------------------------------------------------------- [~aonishuk]=C2=A0My customer is facing this issue in 2.7.3 We have suggested the below steps: 1- curl -o Ambari-25123.patch=20 [https://github.com/apache/ambari/commit/6fae0efce307b0ba8d5520189af0de4be2= 1edccb.patch] 2- sudo patch -p1 /usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrche= strator.py Ambari-25123.patch 3- sudo ambari-agent restart However, after restarting he was still facing this issue: common-services d= ir was not regenerated Kindly advice. > /var/lib/ambari-agent/cache not updating (Ambari 2.7) > ----------------------------------------------------- > > Key: AMBARI-25123 > URL: https://issues.apache.org/jira/browse/AMBARI-25123 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Priority: Major > Labels: pull-request-available > Fix For: 2.7.4 > > Attachments: AMBARI-25123.patch, AMBARI-25123.patch > > Time Spent: 1h 20m > Remaining Estimate: 0h > > As of Ambari 2.7, any changes to /var/lib/ambari-server/resources are not > pushed to ambari-agents cache (/var/lib/ambari-agent/cache/. This is not = an > issue in Ambari 2.6. > Also, if you remove files or need to wipe ambari-agent cache(s), the file= s > will never repopulate. > Another example, is custom ambari host_scripts not being pushed to the am= bari- > agents as should be done based on this article, and works in Ambari 2.6: > custom-ambari-alerts.html> > To reproduce: > * 1\. deploy hosts with Ambari 2.7.3 and have them connected to an amba= ri-server > * 2\. turn on DEBUG logging in ambari-agent > * 3\. go to an ambari-agent. Notice that there is no /var/lib/ambari-ag= ent/cache/host_scripts/.hash but there are .hash files for the stack direct= ories. > * 4\. on the ambari-server, add files into /var/lib/ambari-server/resou= rces/host_scripts > * 5\. restart ambari-agent and notice that their host_scripts directory= is never updated and .hash is never generated > * 6\. check ambari-agent.log and notice that other paths were checked (= by FileCache.py) but host_scripts were not -- This message was sent by Atlassian Jira (v8.3.4#803005)