← Back to team overview

maas-devel team mailing list archive

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

 

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

Follow ups