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 8D6C911F0C for ; Mon, 21 Apr 2014 06:14:05 +0000 (UTC) Received: (qmail 44413 invoked by uid 500); 21 Apr 2014 06:14:04 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 44255 invoked by uid 500); 21 Apr 2014 06:14:03 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 44248 invoked by uid 99); 21 Apr 2014 06:14:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 06:14:03 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chsnow123@gmail.com designates 209.85.128.178 as permitted sender) Received: from [209.85.128.178] (HELO mail-ve0-f178.google.com) (209.85.128.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 06:13:58 +0000 Received: by mail-ve0-f178.google.com with SMTP id jw12so7082956veb.23 for ; Sun, 20 Apr 2014 23:13:36 -0700 (PDT) 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=dxYtQq3OxUWoTDy7uKYENtp3O8tFw3mjQZSVvRqCYUY=; b=DIhZDVZbBLxPyLwflCbfmwiT4Im3EoSHOgsRQLDGy1tl7hpqFU8zXMu3BySuXs1us2 sLd+NHdr7wma2NxMqsqEEZYMaBpg31C86OL8dP5O++vakCTIO79ShcFggwrMKyWPtc/5 kiTstWpilfOtPie/9vCavdnktviOR7UWkbPE9wn3Inbif6uaU4SWM9sSny/M5FES17BJ vzzpSBwLtoQX9ME53gvKRiZNzDk5gmE0LVpVMbJ3dV//jqGXZoxSwYFvpuapIY2jF9Ii ujHZcDmqT3bltfpaTLHwlpLcIFhkIAhYzdYMrCH17dR+EJecN5RTpAKgOHAkgC7WJ4q/ mFjw== MIME-Version: 1.0 X-Received: by 10.52.123.39 with SMTP id lx7mr24138458vdb.22.1398060816316; Sun, 20 Apr 2014 23:13:36 -0700 (PDT) Received: by 10.58.237.164 with HTTP; Sun, 20 Apr 2014 23:13:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Apr 2014 07:13:36 +0100 Message-ID: Subject: Re: cartridge reusability From: chris snow To: dev Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Perfect. Thanks Dinesh! On Mon, Apr 21, 2014 at 4:06 AM, Dinesh Bandara wrote: > Hi Chris, > > > On Sun, Apr 20, 2014 at 10:47 PM, chris snow wrote: >> >> Hi Udara, >> >> At the moment, everyone who wants to run stratos has to also create >> cartridges that point to their specific puppet master instance. >> >> Wouldn't it be better if a cartridge could be created just once and >> that cartridge image shared for other Stratos users? >> >> >> E.g. just like you can download a generic Ubuntu EC cloud image [1] >> which is ready to use on OpenStack, it may be convenient for users if >> cartridge images could too be shared? > > > Yes. you can share the cartridge image for other stratos user. Let me > explain this in detail. > when creating cartridge by running config script, simply you have to provide > puppetmaster ip, hostname and service type. Those data are used only for > cartridge configuration (initialization) and those data are erased once > configuration process completed. Then you can create a image form that > configured instance and it is just like a generic cloud image[1] with > specific service type (Genaric, PHP, MySQL, etc). It is not bound to any > puppet master. This image can be shared among other stratos users. > >> >> Many thanks, >> >> Chris >> >> --- >> [1] >> http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img >> >> On Sun, Apr 20, 2014 at 3:38 PM, Udara Liyanage wrote: >> > Hi Chris, >> > >> > If you can explain more about what you want to achieve it is better. As >> > Lakmal mentioned we have a single cartridge which is is reused for every >> > service type PHP, MySQL etc. Do you want to use the same cartridge for >> > multiple Stratos environment? >> > >> > >> > >> > Touched, not typed. Erroneous words are a feature, not a typo. >> > >> > On Apr 20, 2014 7:58 PM, "Lakmal Warusawithana" wrote: >> >> >> >> >> >> On Sun, Apr 20, 2014 at 1:04 PM, chris snow >> >> wrote: >> >>> >> >>> When we create a cartridge, we provide it with the puppet master IP >> >>> address. >> >>> >> >>> Does the cartridge periodically sync with the puppet master to >> >>> retrieve updated definitions? Or, does it just sync up at cartidge >> >>> creation time? >> >> >> >> >> >> Currently we are use (generic case) puppet master at cartridge creation >> >> time well as cartridge start time to retrieve updates. ( we can use >> >> periodic >> >> updates, but it depend on the use case) >> >> >> >>> >> >>> >> >>> After a cartridge has been created, is it possible to point the >> >>> cartridge to a different puppet master? If not, cartridges are tied >> >>> to the puppet master they were originally configured with and aren't >> >>> reusable. >> >>> >> >> >> >> I did not get what you mean by re-useable? And why we need to point any >> >> other puppet master >> >> >> >>> >> >>> Should we think about providing the puppet master hostname and ip (and >> >>> maybe even the service type) as user data information, thus making our >> >>> cartridges reusable? >> >> >> >> >> >> Actually we are binding puppet master hostname with provided IP address >> >> (adding host entry) to communicate with puppet master. >> >> >> >>> >> >>> >> >>> Many thanks, >> >>> >> >>> Chris >> >> >> >> >> >> >> >> >> >> -- >> >> Lakmal Warusawithana >> >> Director - Cloud Architecture; WSO2 Inc. >> >> Mobile : +94714289692 >> >> Blog : http://lakmalsview.blogspot.com/ >> >> >> > >> >> >> >> -- >> Check out my professional profile and connect with me on LinkedIn. >> http://lnkd.in/cw5k69 > > > > > -- > Dinesh Bandara > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > -- Check out my professional profile and connect with me on LinkedIn. http://lnkd.in/cw5k69