<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>...</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=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><div></div></div></div><div>But where did the settings for scapestack get set up in the first place. You're missing some of the original "edit ~/.juju/environment.yaml" to insert the right information.</div><div><br></div></div></div></div></blockquote><div><br></div></span><div>The scenario is starting from an already configured cloud in both juju1 and juju2, and my use case is MAAS, not public clouds. Except in juju2 I have to specify the configuration file everytime. If starting from scratch, the juju2 way requires even more steps.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>If you are sharing information with someone else, being able to give them the file with all of the configuration becomes quite a bit easier, as you gave them the file, they saved it somewhere they know about, and then they pass that in to the bootstrap command. Rather than giving a snippet, that needs to be inserted into an existing file in the right place, and then it magically works if you named everything correctly.</div></div></div></div></blockquote><div><br></div></span><div>This configuration file you mention is far from complete. It's 1/3 of the details, as it does not have, for example, the cloud endpoint, nor the credentials. Just bootstrap-timeout, in my case.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>So while for people that have everything set up already, there is a bit more to write, for people coming to the system I think it is quite a bit more obvious for them.</div></div></div></div></blockquote><div><br></div></span>I think it's less obvious. At least it was less obvious to me, maybe because of my juju1 experience. And changing is fine: just wanted to share what my experience with this new process was.<br><br>It's my understanding that there are 3 elements that you have to configure in juju2, separately, when you start from scratch: cloud definition, credential information and remaining configuration. In juju1 all 3 are in the same environments.yaml section. All under the "environment" (now model) name.<br><br><div>You go from this one snippet (environments.yaml) to 3 files and 2 commands. In juju2 you have to create a cloud file for MAAS, then create a credentials file for that MAAS. Then import both (two commands), which links the credentials to the "maas cloud". Then create a config file for things that cannot be specified in the cloud definition file (like bootstrap-timeout, crucial for the MAAS provider), and specify that everytime you bootstrap.<br></div></div></div></div></blockquote><div><br></div><div>So the cloud definition is something that needs to be created, but isn't that shareable? I'm actually wondering if it is something that we could get MaaS itself to generate, such that you go to a link on your running MaaS and it gives you the cloud definition file. It does look like we could do registration differently than a cloud definition file, though. For known cloud types, I think Juju knows most of the items (auth-types, etc at least would have sane defaults), and the only bit we'd really need is the auth-url. Something like:</div><div><br></div><div>  juju add-cloud mymaas --type maas --endpoint <a href="https://10.0.0.1/blah">https://10.0.0.1/blah</a></div><div><br></div><div>I guess one bit of complexity is that you can have multiple regions for a given cloud, so there is potentially a few endpoints. It does feel like streamlining the Maas case is something that would be worth spending a fair bit of time on.</div><div><br></div><div>We do also have "juju add-credential cloud-name" that will start a "wizard" dialogue to prompt you for the user/password/auth-key bits that you need for the given cloud.</div><div><br></div><div>I do think there was an interesting goal to separate the bits that are generic (everyone finds out about the same cloud endpoints, etc) from the things that are user specific (what is your username and password). From what is the particular details of this controller. One can certainly argue that bootstrap timeout is a property of the cloud itself (how long do machines take, on average, is not dependent on the individual controller, but a property of the overall cloud).</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"><div></div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br>As noted, the number of times you have to bootstrap should be going down, and if you are bootstrapping different-but-similar, then you again have a single config that can be reused.</div></div></div></div></blockquote><div><br></div></span><div>I'd love to be able to share a controller node with my colleagues. I tried setting that up and creating a juju user, but in the end that user's MAAS nodes were all allocated to "me" in MAAS, which was a bit unexpected. The person running juju commands had his own MAAS credentials setup. Until that is not setup, I can't keep a MAAS node allocated to my user 24/7, it's an expensive resource. I need to play with this shared controller idea a bit more. </div><div> <br></div></div></div></div></blockquote><div><br></div><div>I wanted to split this bit into a different thread, because I do think there are aspects we want to make work well and polished here, separately from the "bootstrap" story.</div><div><br></div><div>John</div><div>=:-></div><div> </div></div><br></div></div>