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 AA3F6107DE for ; Thu, 19 Dec 2013 15:29:23 +0000 (UTC) Received: (qmail 30816 invoked by uid 500); 19 Dec 2013 15:29:22 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 30718 invoked by uid 500); 19 Dec 2013 15:29:19 -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 30710 invoked by uid 99); 19 Dec 2013 15:29:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:29:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ekohlwey@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 15:29:13 +0000 Received: by mail-oa0-f42.google.com with SMTP id i4so1366836oah.1 for ; Thu, 19 Dec 2013 07:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=q6lifDSOCwOfCYQDs2+m1wAdhp+Rgl8ga86B35z27Rs=; b=fBDHMmjCIP2b9kQQAGW596zv7uLSUjq7Pnz/ZCD3cbWjhiA/FdsExO3lDo39jAKTla o6cu9eNY4YfKluP5vhmcLqhuaHfh5QNKCvKEXEIutj+eLOFlv7cyeKEs1Cc1mec4W/v9 5DTXjxg3Op6v1ytEBA4ILGNnzdhcsk93tEHAqBYEOsqMgJ1b/qvg5qkBAkguD4by/vel 50o42gHi/HyOnuX2lmxaifq2ETRckvUHTmwANcEakQF1ZROmFRnGHE9r9c8SPtX5yo3i TXghl7nJ5nQF0QRAkLEkheH69blonlc352pNNFHu8VKQ2QE4bi400KQwPue4Y1837O9S 8gEg== MIME-Version: 1.0 X-Received: by 10.182.48.130 with SMTP id l2mr1698612obn.44.1387466932894; Thu, 19 Dec 2013 07:28:52 -0800 (PST) Received: by 10.76.125.135 with HTTP; Thu, 19 Dec 2013 07:28:52 -0800 (PST) Received: by 10.76.125.135 with HTTP; Thu, 19 Dec 2013 07:28:52 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Dec 2013 10:28:52 -0500 Message-ID: Subject: Re: Malformed package list in generated pp files From: Ed Kohlwey To: dev@ambari.apache.org Content-Type: multipart/alternative; boundary=089e0160b3dcac43eb04ede4d1a9 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160b3dcac43eb04ede4d1a9 Content-Type: text/plain; charset=ISO-8859-1 What about cleanup of the site-xx.pp files? Can that be turned off? It did not occur in older versions. On Dec 19, 2013 10:11 AM, "Sumit Mohanty" wrote: > You can enable debug level by editing ambari-agent.ini file. > > [agent] > loglevel=DEBUGINFO > > -Sumit > On 12/19/13 12:08 AM, "Ed Kohlwey" wrote: > > > Thanks. Is anyone aware if there is a way to get better debugging output > > from the agent? > > > > > > On Wed, Dec 18, 2013 at 11:41 PM, Sumit Mohanty > > wrote: > > > >> You are right. The 2.0._ stack is the one that has support for dynamic > >> stack. However, that code is under active development and thus there > may > >> be intermittent issues like you are seeing. I will ensure that the > >> developers working on this capability take a look into this issue. > >> > >> -Sumit > >> > >> On 12/18/13 8:20 PM, "Ed Kohlwey" wrote: > >> > >>> >I'm deploying 2.0._ - and looking to work on the dynamic stack > changes > >>> >(which I understand from Nate Cole are only available within that > stack). > >>> > > >>> >It looks like the issue may be within manifestGenerator.py on lines > 167 > >>> >and > >>> >172 (earlier trunk check out today, assume it hasn't changed) - > there's no > >>> >input validation so I assume thats how the un-escaped strings are > getting > >>> >in. > >>> > > >>> >I'm currently trying to test a patch but the agent keeps cleaning up > the > >>> >generated site-xx.pp files before I can get to them. Is there a way > to > >>> >turn > >>> >off this behavior? > >>> > > >>> > > >>> >On Wed, Dec 18, 2013 at 10:13 PM, Sumit Mohanty > >>> >wrote: > >>> > > >>>> >> What version of the stack are you deploying? Try deploying 2.0.6 > and > see > >>>> >> if the issue reproduces. I had deployed the same a few days back. > >>>> >> > >>>> >> -Sumit > >>>> >> > >>>> >> On 12/18/13 6:19 PM, "Ed Kohlwey" wrote: > >>>> >> > >>>>> >> >I'm attempting to get started with ambari development, and while > >>>> >>setting > >>>>> >> >up > >>>>> >> >an environment based on a trunk checkout I noticed that my agent > >>>> >>scripts > >>>>> >> >appear the be producing malformed package_list strings. Here's > an > >>>> >>example: > >>>>> >> > > >>>> >> > >>>>> > >>>>> > >>>$package_list="[{"type":"rpm","name":"libganglia-3.5.0-99"},{"type":"rpm > >>>>> >>>", > >>>> >> > >>>>> > >>>>> > >>>"name":"ganglia-devel-3.5.0-99"},{"type":"rpm","name":"ganglia-gmetad-3. > >>>>> >>>5. > >>>> >> > >>>>> > >>>>> > >>>0-99"},{"type":"rpm","name":"ganglia-web-3.5.7-99.noarch"},{"type":"rpm" > >>>>> >>>," > >>>> >> > >>>>> > >>>>> > >>>name":"python-rrdtool.x86_64"},{"type":"rpm","name":"ganglia-gmond-3.5.0 > >>>>> >>>-9 > >>>>> >> > >9"},{"type":"rpm","name":"ganglia-gmond-modules-python-3.5.0-99"}]" > >>>>> >> > > >>>>> >> >The inner quotes are not escaped so puppet fails to parse the > .pp > >>>> >>files. > >>>>> >> > > >>>>> >> >Has anyone encountered this issue? Does anyone have any ideas > about > >>>> >>what > >>>>> >> >to > >>>>> >> >do about it? > >>>> >> > >>>> >> > >>>> >> > >>>> >> -- > >>>> >> CONFIDENTIALITY NOTICE > >>>> >> NOTICE: This message is intended for the use of the individual or > >>>> >>entity to > >>>> >> which it is addressed and may contain information that is > confidential, > >>>> >> privileged and exempt from disclosure under applicable law. If the > >>>> >>reader > >>>> >> of this message is not the intended recipient, you are hereby > notified > >>>> >>that > >>>> >> any printing, copying, dissemination, distribution, disclosure or > >>>> >> forwarding of this communication is strictly prohibited. If you > have > >>>> >> received this communication in error, please contact the sender > >>>> >>immediately > >>>> >> and delete it from your system. Thank You. > >>>> >> > >> > >> > >> > >> -- > >> CONFIDENTIALITY NOTICE > >> NOTICE: This message is intended for the use of the individual or > entity to > >> which it is addressed and may contain information that is confidential, > >> privileged and exempt from disclosure under applicable law. If the > reader > >> of this message is not the intended recipient, you are hereby notified > that > >> any printing, copying, dissemination, distribution, disclosure or > >> forwarding of this communication is strictly prohibited. If you have > >> received this communication in error, please contact the sender > immediately > >> and delete it from your system. Thank You. > >> > > > > > > -- > CONFIDENTIALITY NOTICE > NOTICE: This message is intended for the use of the individual or entity to > which it is addressed and may contain information that is confidential, > privileged and exempt from disclosure under applicable law. If the reader > of this message is not the intended recipient, you are hereby notified that > any printing, copying, dissemination, distribution, disclosure or > forwarding of this communication is strictly prohibited. If you have > received this communication in error, please contact the sender immediately > and delete it from your system. Thank You. > --089e0160b3dcac43eb04ede4d1a9--