api versioning problems / autodetection

Kapil Thangavelu kapil.thangavelu at canonical.com
Fri Jan 23 14:39:36 UTC 2015


Hi Folks,

i've been updating jujuclient py libraries for the numerous facades added
in trunk. Most of the facade usage is auto-negotiated based on the login
results and facade versions. There's one issue though that has not resulted
in a facade version increment which is problematic, namely the use of url
namespacing by environment uuid ie /environment/:uuid/charms and friends
(tools, backups, etc). Its unclear what versions of juju need that
namespaced url (some facacdes require it) and the client facade version has
never been incremented.  The client needs to detect this somehow so it can
play nice with multi-tenant state servers. I think it would be appropriate
to return the agent version in login results or increment the client facade
so that this can be detected.

https://pad.lv/1414027

cheers,
Kapil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20150123/d29af2da/attachment.html>


More information about the Juju-dev mailing list