<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 26, 2015 at 1:48 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, May 25, 2015 at 9:23 PM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, May 26, 2015 at 12:18 PM, Richard Harding <span dir="ltr"><<a href="mailto:rick.harding@canonical.com" target="_blank">rick.harding@canonical.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"><div><div>On Tue, 26 May 2015, Andrew Wilkins wrote:<br>
<br>
> On Tue, May 26, 2015 at 4:05 AM, Mark Shuttleworth <<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>> wrote:<br>
><br>
> > On 25/05/15 18:57, Kapil Thangavelu wrote:<br>
> > > That's super awesome, and very helpful for real world usage. A few<br>
> > > suggestions, For users with multiple environments, seeing a bunch<br>
> > > machine-0 in the ui, is rather confusing, i'd suggest prefixing with<br>
> > > the env name. Potentially even more useful is actually naming the<br>
> > > machines not for their pet names, but their cattle names (workload<br>
> > > name), ie. name with the primary unit that caused the machine to<br>
> > > exist, or was the first unit assigned to the machine (minus state<br>
> > > servers).<br>
> ><br>
> > Agreed; for full chargeback we need environment uuid, for social<br>
> > debugging we need some sort of environment name, unit names and charm(s)<br>
> > deployed, including in containers on the machine. For EBS it would be<br>
> > the store name, uuid, and unit identity.<br>
> ><br>
><br>
> Kapil, Mark, thanks for the suggestions. Sounds good, I'll look at doing<br>
> that.<br>
><br>
> A concern I have is that these resources can be reassigned (units added,<br>
> volume<br>
> assigned to different store) so those tags would then be misleading. That's<br>
> the main<br>
> reason why I avoided including information about the workload/store in the<br>
> name. I<br>
> suppose the benefit outweighs, and we could look at updating tags later on.<br>
><br>
> Cheers,<br>
> Andrew<br>
<br>
</div></div>One suggestion is being careful about what tags might already exist on a<br>
machine that a user might have set through their own control UI. If Juju is<br>
tracking tags it sets we should make sure it never messed with ones it did<br>
not set.<br></blockquote><div><br></div></div></div><div>When we come to updating existing machines, we won't touch existing tags.<br></div><div>The tags we do add, apart from Name, will be prefixed with Juju so they're</div><div>obviously under the management of Juju. Change them at your own peril.</div><div><br></div><div>This does highlight a problem of how we identify whether or not Juju can update</div><div>the resource's Name tag though. We would either never update it, and live with</div><div>possibly-wrong machine names, or alternatively we'd have a sufficiently unique</div><div>name format that Juju will replace only if it matches.</div></div></div></div></blockquote><div><br></div></div></div><div>one option is to leave the machine id static at allocation (ie what it is now) and then do workloads dynamically in an additional tag under the juju namespace. At least with aws, this does degrade console usability as the user will be looking at a flat list of machines and will have to poke into details to learn workload on an individual. There's some mitigation in that the aws console added a nice feature earlier this year for browsing resource groups via query by tag albeit with additional end user setup. Compound values (all services on a machine) can be searched via contains. ie. i could find all machines running units of service xyz in a given env with juju-env=uuid and juju-units=contains xyz. There's some usability/discoverability issues with env uuid vs name. aws limits to 10 tags and 255 length utf8 values, most orgs reserve some set of tags for their own use. </div></div></div></div></blockquote><div><br></div><div>I think going with a static name and adding the additional information in tags is the best way forward.</div><div>It does mean that you have to click an extra level down, but that's going to be true of everything other</div><div>than AWS anyway. This way we can reserve certain tags (say, everything starting with "Juju") and</div><div>periodically reconcile them with Juju's state; and we don't have to worry about overwriting changes</div><div>made by users to machine names. We'll set the machine name once on creation, then users can</div><div>update them if desired.</div><div> <br></div><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>the alternative for dynamic values means storing both the name tag as desired vs last known state and reconciling with extant value to avoid the overwrite or via verification of value format convention as you said.</div><div><br></div><div>In addition to env tag it would be very good to allow the user to specify static tags to be associated with all env resources so that juju can interop with existing org classification and chargeback schemes. </div></div></div></div></blockquote><div><br></div><div>Agreed. I've got a diff in the works that:</div><div> - adds a new "resource-tags" config attribute, which providers will use if they can to add user-specified</div><div> tags to resources created in the environment. We will not manage changes to tags (i.e. if you change</div><div> resource-tags, that will only affect resources created after the change).</div><div> - updates both AWS and OpenStack providers to use above.<br></div><div> - updates the AWS provider to name machines like in the OpenStack provider: juju-<envname>-machine-<ID>.</div><div><br></div><div>Threading the other information through to tags will be done separately.</div><div><br></div><div>Thanks for the feedback.</div><div><br></div><div>Cheers,</div><div>Andrew</div><div><br></div><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Fwiw Gce has more traditional tag impl of just tag value and instance names are static. Gce provides for a chargeback mechanism ootb at the gce project level in addition to account.</div><div><br></div><div>cheers,</div><div><br></div><div>Kapil</div><div><br></div><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Cheers,</div><div>Andrew</div></div></div></div><span class="">
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br></span><span class="">
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div>