<div dir="ltr">Hi Kapil,<div>                Thanks for your reply.  Here's my detailed query...</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 28, 2015 at 8:10 PM, Kapil Thangavelu <span dir="ltr"><<a href="mailto:kapilt@gmail.com" target="_blank">kapilt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Feb 26, 2015 at 7:48 PM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Kapil,<div>           Thanks for your clear description about my queries.</div><div><br></div><div>I have installed and configured juju and set cloud provider as LXC. </div><div><br></div><div>As you mentioned,</div><div><span style="font-size:12.8000001907349px"><i>(i) the juju environment will automatically do that for you, else you can checkout one out via vcs and deploy it as a local charm. (see docs)</i></span></div><div><span style="font-size:12.8000001907349px"><i><br></i></span></div><div><span style="font-size:12.8000001907349px"><i><br></i></span></div><div><span style="font-size:12.8000001907349px">Whether i need to deploy in LXC?</span></div></div></blockquote></span></div></div></div></blockquote><div><br></div><div><b><br></b></div><div><b>For Eg: ( Turnkey Linux, User can download the appliances and can deploy on their environment,</b></div><div><b>it could be any hypervisor like xen, kvm,etc...). It has also option to deploy on cloud environment directly.</b></div><div><b>User download the image format w.r.t to the hypervisor and get use of it...</b></div><div><b><br></b></div><div><b><br></b></div><div><b>Is there any provision to do that in charm store ( as i could related charm store ...that of the appliance repository...)?</b></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><div><br></div></span><div>i'm not sure what your asking. To deploy something</div><div><br></div><div>you can either </div><div><br></div><div>$  juju deploy mysql</div><div><br></div><div>or if you want to edit the charm you can</div><div><br></div><div>$ export JUJU_REPOSITORY=$PWD</div><div>$ mkdir trusty</div><div>$ cd trusty</div><div>$ bzr branch lp:charms/trusty/mysql</div><div>$ juju deploy local:trusty/mysql</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">Is there any references/tutorials available for deploying on specific hypervisor?.</span></div></div></blockquote><div><br></div></span><div>there are docs for various providers at <a href="http://juju.ubuntu.com/docs" target="_blank">http://juju.ubuntu.com/docs</a> </div><div><br></div><div>lxc is not technically a hypervisor, local provider supports either kvm or lxc.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-k</div></font></span><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px"><br></span></div><div><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">thanks and regards</span></div><div><span style="font-size:12.8000001907349px">Raj</span></div><div><span style="font-size:12.8000001907349px"><i><br></i></span></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><img src="http://cdn.ymaservices.com/editorial_service/media/images/000/015/634/original/tumblr_inline_mh7qqoO4mR1rdsotm.gif.gif?1404127856" width="96" height="57"></div></div></div><div><div>
<br><div class="gmail_quote">On Thu, Feb 26, 2015 at 9:33 AM, Kapil Thangavelu <span dir="ltr"><<a href="mailto:kapilt@gmail.com" target="_blank">kapilt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Feb 25, 2015 at 8:05 PM, Rajendar K <span dir="ltr"><<a href="mailto:k.rajendar@gmail.com" target="_blank">k.rajendar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mark,<div>                Thanks for your kind reply.</div><div>It makes me to understand better about juju..</div><div><br></div><div>Here are my few queires..</div><div><br></div><div><i><span style="font-size:12.8000001907349px">(i) Each charm starts with a "blank" machine, like "centos6" or "trusty" or</span><span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">"windows8", and then does what it needs to do to add the service it</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">describes to that machine. So for each cloud you just need to know what</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">the "blank" machine image is for the OS versions your charms will use.</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">IN future we might support creating snapshots which can be reused for</span><br style="font-size:12.8000001907349px"></span><span style="font-size:12.8000001907349px">faster startup of additional machines. [Mark]</span></i><br></div><div><i><span style="font-size:12.8000001907349px"><br></span></i></div><div><span style="font-size:12.8000001907349px">- I very much impressed with the way of the drag and drop of the VM deployment.</span></div><div><span style="font-size:12.8000001907349px">My question is about, how the deployment of VMs made from the charm store. [ the way i drag </span></div><div><span style="font-size:12.8000001907349px">and drop from charm store]. It means the image format handled at charm store is neutral or </span></div><div><span style="font-size:12.8000001907349px">how it is being handled to cater across the clouds.?</span></div></div></blockquote><div><br></div></span><div>The charms specify a symbolic identifier for an os name & version aka the series which is resolved in each cloud using simple stream tools which maps those symbolic names to actual images in each cloud. For all the major public clouds simple streams are published for users. For private clouds or smaller public clouds, the user has to manage that process themselves. Specifically the case of smaller public clouds typically entails either re-using the manual provider (ie client side api automation with ssh or userdata initialization) or writing a cloud provider for juju.  There are several client side plugins using manual provider extant (digitalocean, softlayer, etc).</div><div><br></div><div>The source tree for juju (<a href="https://github.com/juju/juju" target="_blank">https://github.com/juju/juju</a>) contains the various provider implementations extant.</div><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">(ii) Reg configuration management ( building relations)</span></div><div><span style="font-size:12.8000001907349px">      How the configuration management is handled? [ not for creation of new charms].</span></div><div><span style="font-size:12.8000001907349px">Existing charms how the configuration is being made ( by drawing the relation between the VMs]?</span></div><div><span style="font-size:12.8000001907349px">For eg : Wordpress with Mysql</span></div><div><span style="font-size:12.8000001907349px">IS the relation already pre-defined on each charm.[how the IP and hostname being exchanged across</span></div><div><span style="font-size:12.8000001907349px">the VMs].</span></div></div></blockquote><div><br></div></span><div>relations form a bi-directional communcation channel across which this information is carried and actions taken out. ie. mysql upon receiving a new client relation will create a new logical db, user, password and pass along with its address along the relation to its client.</div><div><br></div><div>the charms themselves declare in metadata their relations by interface. ie. mysql declares it provides the mysql interface, wordpress declares it requires the mysql interface, alternate implementations of those interfaces are readily interchagable. ie. using amazon aurora/rds for mysql.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">(iii) How to download and use charms from charmstore?</span></div></div></blockquote><div><br></div></span><div>atm the charm store contains charm artifacts pulled from vcs in launchpad. there are a few mirrors or dual published charms to github as well.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">        I need to download charm from charmstore and boot on KVM/hypervisor.</span></div></div></blockquote><div><br></div></span><div>the juju environment will automatically do that for you, else you can checkout one out via vcs and deploy it as a local charm. (see docs).</div><span><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">Also it would be useful, if you could let details the format (image format) managed at charm store.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div></blockquote><div><br></div></span><div>there are no images being managed by the charm store, just the symbolic identifier as described above embedded in the charm typically at publishing time.</div><div> </div><div><br></div><div><br></div><div>cheers,</div><div><br></div><div>Kapil</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><span style="font-size:12.8000001907349px"></span></div><div><br></div><div><br></div><div><span style="font-size:12.8000001907349px">with thanks and regards,</span></div><div><span style="font-size:12.8000001907349px">Raj</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><img src="http://cdn.ymaservices.com/editorial_service/media/images/000/015/634/original/tumblr_inline_mh7qqoO4mR1rdsotm.gif.gif?1404127856" width="96" height="57"></div></div></div><div><div>
<br><div class="gmail_quote">On Wed, Feb 25, 2015 at 10:19 PM, Mark Shuttleworth <span dir="ltr"><<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 25/02/15 11:30, Rajendar K wrote:<br>
>           Quite new to this forum.<br>
<br>
</span>Welcome!<br>
<span><br>
> I would like to know the details about the juju-API for communication to<br>
> public clouds (Amazon, etc).(where i can download<br>
> and start using)<br>
<br>
</span>There is code built into Juju that knows about each cloud; we call that<br>
a "provider", it's like a driver for the cloud, and it maps what Juju<br>
needs to the API of that particular cloud. Those are usually written in<br>
Go and built into Juju core itself; the libraries can typically be<br>
reused in your own Go project easily enough and we would take patches if<br>
they were helpful for others too.<br>
<br>
If you have a cloud that speaks an entirely new API, there is a<br>
short-cut to getting up and running, which is called a plug-in. The<br>
plug-in runs on the client, not the server, and basically allows you to<br>
use shell scripts that talk to your cloud, and have Juju call those when<br>
it needs to do things like start a new machine. The machines are started<br>
by your shell script, then Juju remotely logs in to the machine and<br>
"manually" configures it. There are a few sets of plug-ins for popular<br>
clouds that don't yet have full providers built-in to Juju.<br>
<span><br>
> I have my own cloud infrastructure, is it possible to call those APIs for<br>
> managing VMs across Cloud platforms?<br>
<br>
</span>Yes, if your cloud talks a common API like AWS or OpenStack, then you<br>
can probably use the native API support built in to Juju, otherwise I<br>
would suggest you start with a plug-in and then write a Go provider when<br>
you think it's time to do so.<br>
<span><br>
> Also i would like to know about juju charms, especially the image<br>
> management how it is being handled.?<br>
<br>
</span>Each charm starts with a "blank" machine, like "centos6" or "trusty" or<br>
"windows8", and then does what it needs to do to add the service it<br>
describes to that machine. So for each cloud you just need to know what<br>
the "blank" machine image is for the OS versions your charms will use.<br>
IN future we might support creating snapshots which can be reused for<br>
faster startup of additional machines.<br>
<br>
Does that answer your question?<br>
<span><font color="#888888"><br>
Mark<br>
<br>
</font></span></blockquote></div><br></div></div></div>
<br></div></div><span><font color="#888888">--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></font></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br></div></div>