Hi,
To get the installed Openstack version is not easy as all the components (Nova, Neutron, Glance, Keystone ....etc) has different version.
One way can be to check the Nova microversion:
In my env I fetched a token from keystone, and fetched the microversions from Nova API:
$ export TOKEN="$( openstack token issue -f value -c id )"
....
"version" : "2.96"
}
You can check the above page for the version of your environment.
Best wishes
Lajos Katona (lajoskatona)