With Linux, it is not difficult to find the version of your OS. All distributions create a file in the / etc directory that contains the name of the distribution used and its version. With the / etc / os-release file, you have access to the details of your Linux distribution.
Achieving this same feat with OpenStack is a challenge. This is even more complicated because it differs depending on the Linux OS on which it runs and the version of OpenStack used . So there is not one answer, but several answers.

The simplest method is to query the package manager of the Linux distribution. If, for example, OpenStack is installed on CentOS via the RDO distribution, the yum repolist command willdisplay the OpenStack repository . As all OpenStack packages come from the same repository, this will show the version of the platform you are using.
The result of this command on a CentOS installation of RDO should be similar to the lines below:
This method works if OpenStack is installed via the package manager. However, it does not work directly from Git repositories. To do this, try git branch -la to identify the good Git repositories used.
If none of the methods below deliver the correct information, then we can query Nova, one of the pillars of OpenStack. Use nova-manage --version to get the version number (like 13.1.0 for example). You must then go and locate this version on the Nova Project page. Then on this same page, you will see that this version 13.1.0 is part of Mitaka.