← Back to team overview

maas-devel team mailing list archive

Re: Allow API to use <system_id | hostname> for all operations that currently require the system_id

 

Do we need to modify the API?

Would it be okay to just modify the maas-cli to accept a hostname, then
that hostname could be used to look up the system_id. So the action is
transparent to the user, making the cli easier, without requiring a large
change to the API.

Thanks,
Blake


On Wed, May 28, 2014 at 2:27 PM, Newell Jensen
<newell.jensen@xxxxxxxxxxxxx>wrote:

> All,
>
> This email is to outline a discussion that took place on the
> irc.freenode.net #maas channel, for some proposed changes to all the API
> to use <system_id | hostname> for all operations that currently require the
> system_id.  In the discussion the main points were:
>
> * Currently, for every single node related operation (other than updating
> hostname), we need to obtain the system_id. This is affecting usability.
> * Every single operation that currently requires a node's system_id,
> should accept the hostname (other than when updating a node's hostname of
> course).
>
> Some concerns/questions are:
>
> * How would hostnames show up in URLs?  System IDs are "safe ASCII,"
> hostnames have their own restrictions (including hopefully unicode at some
> point!).  It's probably OK of course but might need checking.
> * Is there any chance of ambiguity?  Need to check whether a hostname can
> also be a well-formed system ID or vice versa.
> * It's currently possible for the same identifier to be one node's system
> ID and another node's hostname... that's probably something we could just
> forbid if we have to.  It's a UUID, so not a lot of risk (Unless somebody
> tries to rename nodes as a way of getting one to take over another's role
> or something).
>
>
> For the above points what is the estimated work effort and can/should it
> be fit into this cycle?
>
> Cheers,
>
> Newell
>
> --
> Mailing list: https://launchpad.net/~maas-devel
> Post to     : maas-devel@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~maas-devel
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References