<div dir="ltr">FWIW, I think the byArch did a plain sort.Strings() which happens to pick amd64 because it is before all other in a typographical fashion. IIRC, it may have mutated a lot over time because the sorting was blocking bootstrap from working on ppc64 which was why it was removed. Also, on MaaS, MaaS doesn't seem to actually be giving us what arches are available, which is why every bootstrap gives a warning about "picking arbitrary tools", and we have an open bug that just "juju bootstrap" on an all-ppc64 MaaS doesn't work, you are required to specify the arch=ppc64 for it to work there.<div>
<br></div><div>John</div><div>=:-></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 12:33 PM, William Reade <span dir="ltr"><<a href="mailto:william.reade@canonical.com" target="_blank">william.reade@canonical.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">Strongly agree with gustavo/henning. In *all* cases, the possibilities are defined by the arches of the available tools, images, and instance types. When using --upload-tools, the arches of the available tools are further restricted, and may thus force i386, but that should have no impact whatsoever on our method for choosing amongst the available options.<div>
<br></div><div>I remember writing a byArch sort that prioritised amd64; it seems to have disappeared at some point in the last year, as the tools/instance-types/etc code evolved, but this was always intended behaviour; please reinstate it.</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 9:15 AM, Henning Eggers <span dir="ltr"><<a href="mailto:henning@keeeb.com" target="_blank">henning@keeeb.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Although I don't know about --upload-tools, I have to agree with Gustavo here<br>
that selecting the instance arch depending on the workstation arch is<br>
unintuitive from a user's perspective. I would not expect that at all.<br>
<br>
Yes, amd64 is a very sensible default. I would wish that it stayed that way.<br>
<br>
Henning<br>
<br>
Am 12.05.2014 19:58, schrieb Gustavo Niemeyer:<br>
<div>> Why isn't the default tweaked by --upload-tools itself then? We<br>
> should be optimizing these options for users, rather than for<br>
> developers, and it sounds sensible to assume that the vast majority of<br>
> users do want to deploy on amd64 rather than i386 or arm.<br>
><br>
> On Mon, May 12, 2014 at 2:53 PM, Nate Finch <<a href="mailto:nate.finch@canonical.com" target="_blank">nate.finch@canonical.com</a>> wrote:<br>
>> However, the fix is slightly different than just "always choose amd64".<br>
>> Instead, we always choose the same architecture as the client machine, that<br>
>> way if the user uses --upload-tools, the tools will actually work on the<br>
>> cloud machine.<br>
>><br>
>> This means that if you're running i386, you would still need --arch amd64 to<br>
>> get amd64 machines in the cloud.<br>
>><br>
<br>
<br>
</div><div><div>--<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>
</div></div></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div>