[openstack-dev] [Neutron] Getting project version from API

Ihar Hrachyshka ihrachys at redhat.com
Mon Jun 6 16:18:38 UTC 2016


> On 06 Jun 2016, at 16:44, Sean M. Collins <sean at coreitpro.com> wrote:
> 
> I agree, it would be convenient to have something similar to what Nova
> has:
> 
> https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/versions.py#L59-L60
> 
> We should put some resources behind implementing micro versioning and we
> could end up with something similar.
> 
> It would also be nice to have the agents report their version, so it
> bubbles up into the agent-list REST API calls.

Agents already report a list of object versions known to them:

https://github.com/openstack/neutron/blob/master/neutron/db/agents_db.py#L258

In theory, we can deduce the version from there. The versions are reported through state reports. Not sure if it’s exposed in API.

Ihar


More information about the OpenStack-dev mailing list