Comment 5 for bug 1393952

Revision history for this message
Mike McCracken (mikemc) wrote : Re: [Bug 1393952] Re: feature req: api call to get current running version of maas

Our specific motivation for this feature request was that the
openstack-installer requires maas 1.7+, because it now uses the 1.7 version
of the boot-images import API calls that changed between 1.5 & 1.7.

However, those changes seem more like a rework of an existing 'capability',
the capability to trigger an import…
Is the plan to capture any such externally visible change as a new
'capability'?

I note that the capabilities currently listed on e.g. [1] are much
higher-level than that.

[1]: http://maas.ubuntu.com/docs1.7/capabilities.html

On Tue, Nov 18, 2014 at 6:00 PM, Gavin Panella <email address hidden>
wrote:

> > That doesn't answer the question of versions though, which may change
> > when capabilities do not. There may be some other semantic change
> > which is implicit in a version bump.
>
> Explicitly signalling semantic changes is what that view is meant for.
> It was designed so that people would not use version numbers and not
> come to depend on implicit behaviour changes.
>
> Capabilities can be turned on and off. Version numbers can only move
> forwards. There's no way to signal via a version number that something
> that once was available is no longer available. Instead, all clients
> must be updated.
>
> > We can add the version/revision info in the capabilities structre
> > easily enough.
>
> Please see if you can avoid doing that.
>
> --
> You received this bug notification because you are a member of Solutions
> Engineering, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/1393952
>
> Title:
> feature req: api call to get current running version of maas
>
> Status in MAAS:
> Triaged
>
> Bug description:
> In our unmanaged installer we'd like to only perform a deployment if
> existing MAAS version meets our requirements. We could easily pull
> this from MAAS if our installer is running on the same machine. In the
> cases where the unmanaged installer is on a separate machine we'd like
> to have a way to access the api to return a version string, or a hash
> map of various system/software specs related to MAAS.
>
> Something as simple as
>
> GET /api/maas_version
>
> { 'version' : '1.7.xxx' }
>
> Thanks!
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1393952/+subscriptions
>