[nova] Train: how to use newer API microversion

Radosław Piliszek radoslaw.piliszek at gmail.com
Thu Mar 18 15:01:51 UTC 2021


On Thu, Mar 18, 2021 at 3:50 PM Eugen Block <eblock at nde.ag> wrote:
> I also found that already, but it doesn't describe how I can move from
> v2 to v2.1 in order to use only the newer API. Do you have any
> information about that?

If you (or your end users) rely on the legacy APIs, you can have both
like this (192.0.2.40 is the example IP address of the API host; the
/compute could be :some_port if you prefer that):

+----------------------------------+-----------+--------------+----------------+---------+-----------+------------------------------------------------+
| ID  | Region    | Service Name | Service Type   | Enabled |
Interface | URL                                            |
+----------------------------------+-----------+--------------+----------------+---------+-----------+------------------------------------------------+
| xxx | RegionOne | nova         | compute        | True    | public
 | http://192.0.2.40/compute/v2.1                 |
| xxx | RegionOne | nova_legacy  | compute_legacy | True    | public
 | http://192.0.2.40/compute/v2/$(project_id)s    |
+----------------------------------+-----------+--------------+----------------+---------+-----------+------------------------------------------------+

If you don't need the legacy APIs, you can delete their endpoints.

-yoctozepto



More information about the openstack-discuss mailing list