<div dir="ltr">There's probably some other work that would need to be done for cloudstack support, ie this is trial and error on the provisioning aspect and needs source modifications, Its not configuration. There's also the possibility of behavioral differences (errors, param divergence, etc) between cloudstack and ec2.<div>
<br></div><div>The aws region list is used in juju-core/providers/ec2 for both endpoint lookup and simplestreams (used to find juju binaries and images). You can bypass the tool lookup via --upload-tools on bootstrap. The image lookup (to find images in your cloud that correspond to os releases) you'll need to use the metadata plugins (docs <a href="http://pastebin.ubuntu.com/6726391/">http://pastebin.ubuntu.com/6726391/</a>)</div>
<div><br></div><div>The actual list of regions endpoints is hard-coded in </div><div><a href="http://launchpad.net/goamz">launchpad.net/goamz</a> in aws/aws.go</div><div><br></div><div>Ideally the ec2 provider would allow for ec2 and s3 api endpoint urls in provider config, and construct the region if specified.</div>
<div><br></div><div>cheers,</div><div>Kapil</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 11:36 AM, <span dir="ltr"><<a href="mailto:franck.dehay@orange.com" target="_blank">franck.dehay@orange.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi John,<br>
<br>
Thanks a lot for this little hack (the additional region) it may help us a lot.<br>
It kind of makes sense in a way if you need to scale-out your cloud, scale-in in this case!<br>
Not sure of the impacts on networking though.<br>
<br>
We just need to find where we can add a region in the provider configuration, may be you would know by chance?<br>
Been looking at the code and it is not that simple!<br>
<br>
<br>
Franck Dehay<br>
<a href="mailto:franck.dehay@orange.com">franck.dehay@orange.com</a><br>
<br>
-----Message d'origine-----<br>
De : John Meinel [mailto:<a href="mailto:john@arbash-meinel.com">john@arbash-meinel.com</a>]<br>
Envoyé : vendredi 21 mars 2014 10:08<br>
À : DEHAY Franck OF/DSIF<br>
Cc : <a href="mailto:juju@lists.ubuntu.com">juju@lists.ubuntu.com</a><br>
Objet : Re: Need Juju on cloudstack!<br>
<div class=""><div class="h5"><br>
One of the easiest ways to do it today would be to use manual provisioning. So you would spin up your instances using whatever cloudstack interface you have available (such as the dashboard), and then you would register those machines with juju (juju add-machine ssh:user@host), and then you could deploy to those machines.<br>
<br>
The logic inside the EC2 provider already has some support for changing what endpoint it uses based on region. So one semi-hacky way would be to create a new region that was your cloudstack endpoint. My personal concern is that without someone actually focused on supporting Cloudstack, it will mostly work, but when it fails it will be hard to diagnose and resolve. Right now, it isn't on our own roadmaps to implement Cloudstack support, but we would be willing to help someone who was interested in doing so.<br>
<br>
John<br>
=:-><br>
<br>
On Thu, Mar 20, 2014 at 5:27 PM, <<a href="mailto:franck.dehay@orange.com">franck.dehay@orange.com</a>> wrote:<br>
> Hello,<br>
><br>
><br>
><br>
> We have been following juju over the last few months @Orange with<br>
> intense interest and would like to be able to use it.<br>
><br>
> We just love the service approach that juju offers compared to other<br>
> tools (we use Chef right now)<br>
><br>
> Our problem is that we have a cloud based on CloudStack and we cannot<br>
> use juju…<br>
><br>
><br>
><br>
> What we would like is to be able to use the EC2 compatible API that<br>
> CloudStack provides.<br>
><br>
> Currently I don’t think juju can be tweaked to choose another endpoint<br>
> than AWS.<br>
><br>
> I did open a bug report last may on the matter: (3rd hit if you google<br>
> ”juju<br>
> cloudstack”)<br>
><br>
><br>
><br>
> Bug #1182508 – juju cannot connect to cloudstack (non-ec2 ec2 cloud)<br>
><br>
><br>
><br>
> Would it be possible to have an idea of when this bug/feature request<br>
> might be implemented?<br>
><br>
> I can understand that given the amount of work you have done this may<br>
> seem irrelevant.<br>
><br>
> Please excuse me if this is not the place to ask for this kind of question.<br>
><br>
><br>
><br>
> Best regards<br>
><br>
><br>
><br>
> Franck Dehay<br>
> <a href="mailto:franck.dehay@orange.com">franck.dehay@orange.com</a><br>
><br>
><br>
><br>
> ______________________________________________________________________<br>
> ___________________________________________________<br>
><br>
> Ce message et ses pieces jointes peuvent contenir des informations<br>
> confidentielles ou privilegiees et ne doivent donc pas etre diffuses,<br>
> exploites ou copies sans autorisation. Si vous avez recu ce message<br>
> par erreur, veuillez le signaler a l'expediteur et le detruire ainsi<br>
> que les pieces jointes. Les messages electroniques etant susceptibles<br>
> d'alteration, Orange decline toute responsabilite si ce message a ete<br>
> altere, deforme ou falsifie. Merci.<br>
><br>
> This message and its attachments may contain confidential or<br>
> privileged information that may be protected by law; they should not<br>
> be distributed, used or copied without authorisation.<br>
> If you have received this email in error, please notify the sender and<br>
> delete this message and its attachments.<br>
> As emails may be altered, Orange is not liable for messages that have<br>
> been modified, changed or falsified.<br>
> Thank you.<br>
><br>
><br>
> --<br>
> Juju mailing list<br>
> <a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
><br>
<br>
_________________________________________________________________________________________________________________________<br>
<br>
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc<br>
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler<br>
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,<br>
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.<br>
<br>
This message and its attachments may contain confidential or privileged information that may be protected by law;<br>
they should not be distributed, used or copied without authorisation.<br>
If you have received this email in error, please notify the sender and delete this message and its attachments.<br>
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.<br>
Thank you.<br>
<br>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">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>
</div></div></blockquote></div><br></div></div>