Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4CE5119ED for ; Thu, 14 Aug 2014 12:43:38 +0000 (UTC) Received: (qmail 99247 invoked by uid 500); 14 Aug 2014 12:43:38 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 99193 invoked by uid 500); 14 Aug 2014 12:43:38 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 99180 invoked by uid 99); 14 Aug 2014 12:43:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 12:43:38 +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 (nike.apache.org: domain of chamilad@wso2.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-ig0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 12:43:12 +0000 Received: by mail-ig0-f171.google.com with SMTP id l13so13396486iga.10 for ; Thu, 14 Aug 2014 05:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oRqAbR+gFXlzDhvK+PNeLjOwE3Yfj1mz2aPCAumiCK8=; b=e7A51Mf2nKGjmR7GaltgNGGdbI+CELc8X55qc/1X/LhNwgZb2/NYgFn3XR9CSDAvtX ytBs6f0ZLlsK4u9mQjy/F5veVnq0DizqfyZyosGWYhsOOuq99Lt9MqSqqmB5IgqjW1G/ mpiErbSuy98Ij9jjkK5pJfcMaM+vG+bvMA0Xk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=oRqAbR+gFXlzDhvK+PNeLjOwE3Yfj1mz2aPCAumiCK8=; b=OgMkdWxhX+bFylNve/QK79js7G4eZ+1Ht3TxX8HJJVf0oXEZU7QruzD5srzQMzrbns /7wNPEsYPcDWlNKIahMiOQV0bG4RF4hepSEIMUpbLtJNjKts37n47hCMkuN6FM8rQC/w PCJVSBDBvdllgm0pCLJhagLm22GYQY0W03Af36BH/narTAeoZa+HWlnWeq+rv8yGDYAc 8ebFmVxiHBfynwgVlUKPogrdugUl9wbGziwvigS7pBBODXfeX4weeoJoi1tRXU7D0Or3 XK0qLRc8c4Xh36Tfjs1kDynQjDXUHcYpeCZ5amnxf3Z8Hl50VEw6F/zKEby3Aop9rE1D xMyQ== X-Gm-Message-State: ALoCoQlOxbeb4d0lhhlO7Ii0rzrM5J2eBgiCMYeRwYyZwfslCBknxGmfqZvUkhyGssC8d3F1VGvl X-Received: by 10.43.172.5 with SMTP id nw5mr14888143icc.10.1408020191217; Thu, 14 Aug 2014 05:43:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.223.228 with HTTP; Thu, 14 Aug 2014 05:42:39 -0700 (PDT) In-Reply-To: References: From: Chamila De Alwis Date: Thu, 14 Aug 2014 18:12:39 +0530 Message-ID: Subject: Re: The role of puppet agent in the spawned instance To: dev@stratos.apache.org Content-Type: multipart/alternative; boundary=001a11c2e2b255e6590500963f20 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2e2b255e6590500963f20 Content-Type: text/plain; charset=UTF-8 Hi Dinesh, Thanks for the reply. As far as I understand puppet master will identify the node based on the cert name of the puppet agent. In the case of a generic base image, does puppet agent pass any additional parameters when communicating with the puppet master to request the node catalogue? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Aug 14, 2014 at 5:11 PM, Dinesh Bandara wrote: > Hi Chamila, > > Please find my comment inline. > > On Thu, Aug 14, 2014 at 4:40 PM, Chamila De Alwis > wrote: > >> Hi, >> >> When creating a cartridge we set up the base image by specifying the >> stratos service name and installing the packages needed for that service >> using puppet. For example if we specify "php" as the service name PHP >> packages and its dependencies will be installed. >> > If we used "default" as service name it will install cartridge agent, java > and basic dependencies. So base cartridge is not bound to any service type. > it is a generic one. > > >> When a new instance is created from a PHP cartridge init.sh is run at the >> start. This also triggers the puppet agent. >> > Yes. > > >> What is the purpose of triggering puppet agent at instance start up? Is >> it only to find any manifest updates? >> > If use a generic cartridge image as "imageId" when deploying, puppet agent > will install required packages and dependencies. If use a service bound > cartridge image (PHP, MySQL, etc.), it will not update any packages or > dependencies but update the manifest updates as you mentioned such as ips > and ports of message broker and cep > > >> Regards, >> Chamila de Alwis >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> > -- > *Dinesh Bandara* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > --001a11c2e2b255e6590500963f20 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Dinesh,

Thanks for the reply. <= br>
As far as I understand puppet master will identify the node ba= sed on the cert name of the puppet agent. In the case of a generic base ima= ge, does puppet agent pass any additional parameters when communicating wit= h the puppet master to request the node catalogue?


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: = code.chamilade= alwis.com




On Thu, Aug 14, 2014 at 5:11 PM, Dinesh = Bandara <dineshb@wso2.com> wrote:
Hi Chamila,

Please find my comment inlin= e.

<= div class=3D"">On Thu, Aug 14, 2014 at 4:40 PM, Chamila De Alwis <chamila= d@wso2.com> wrote:
Hi,

When creating a cartridge we set up the base image = by specifying the stratos service name and installing the packages needed f= or that service using puppet. For example if we specify "php" as = the service name PHP packages and its dependencies will be installed.
If we used "default" as= service name it will install cartridge agent, java and basic dependencies.= So base cartridge is not bound to any service type. it is a generic one.

When a new instance is created from a PHP cartridge init.sh is ru= n at the start. This also triggers the puppet agent.=C2=A0
=
Yes.
=C2=A0
What is the purpose of triggering puppet agent = at instance start up? Is it only to find any manifest updates?
If use a generic cartridge image as &quo= t;imageId" when deploying, puppet agent will install required packages= and dependencies. If use a service bound cartridge image (PHP, MySQL, etc.= ), it will not update any packages or dependencies but update the manifest = updates as you mentioned such as ips and ports of message broker and cep

Regards,
Chamila de Alwis
Software Engineer | WSO2= | +94772207163
Blog: = code.chamilade= alwis.com


--
Dinesh Band= ara
Softwar= e Engineer
WSO2 In= c.;=C2=A0http://wso2.com
l= ean.enterprise.middleware


--001a11c2e2b255e6590500963f20--