Embedding version information in Quantum

Registered by Brad Hall

We need the ability to tell what version of Quantum a given instance is. Two items would be useful:

1) A cli command flag (i.e. quantum-server --version)
2) A GET wsapi call (GET /ws.v1/version)

Both should return the same thing.

Ideally we would just set the version once in setup.py and it would end up embedded in the code during the build process.

Blueprint information

Status:
Complete
Approver:
dan wendlandt
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
dan wendlandt

Related branches

Sprints

Whiteboard

I created a bug to track better "--version" output: https://bugs.launchpad.net/quantum/+bug/1004966

I would argue that the API should only report what API versions are supported, not necessarily the back-end quantum version number. The API already reports supported API versions via a GET on "/"

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.