Cinder API version

Srinivasan T tsrini.alr at gmail.com
Tue Jul 25 14:23:23 UTC 2023


Hi Team,

We are using openstack4j version 3.6.

The OpenStack supports both Cinder v2 and v3 endpoints.

# openstack endpoint list | grep cinder
| 0bff444d3bcf4179bea245d9c7af319c | RegionOne | cinder       | volume
    | True    | public    | http://x.x.x.x:8776/v1/%(tenant_id)s   |
| 14079c14970f4e21b37ba659e6054ecf | RegionOne | cinderv2     | volumev2
    | True    | admin     | http://x.x.x.x:8776/v2/%(tenant_id)s   |
| 1a2d43fde400446eaca463b6b408a513 | RegionOne | cinderv3     | volumev3
    | True    | internal  | http://10.250.9.1:8776/v3/%(project_id)s    |
| 57f956ddeb4e4f1c8e352ec284f6f587 | RegionOne | cinderv2     | volumev2
    | True    | public    | http://x.x.x.x:8776/v2/%(tenant_id)s   |
| 693f347bb31f4a739768c6b321bccd1c | RegionOne | cinder       | volume
    | True    | internal  | http://10.250.9.1:8776/v1/%(tenant_id)s     |
| b51e10e2948e4bd2aabb3cf95a6cc3c7 | RegionOne | cinder       | volume
    | True    | admin     | http://x.x.x.x:8776/v1/%(tenant_id)s   |
| bc8a7eb81a944972bd87b761c9557308 | RegionOne | cinderv2     | volumev2
    | True    | internal  | http://10.250.9.1:8776/v2/%(tenant_id)s     |
| ecf4a7fb8eec4f978038f7a20ae931e5 | RegionOne | cinderv3     | volumev3
    | True    | public    | http://x.x.x.x:8776/v3/%(project_id)s  |
| f680338073664c9398a8d4b573d516a1 | RegionOne | cinderv3     | volumev3
    | True    | admin     | http://x.x.x.x:8776/v3/%(project_id)s  |

>From openstack4j, we are using Identity API v3 for authentication and
trying to do cinder operations. All cinder operations are done via Cinder
API v2. Any idea on how to make openstack4j to use v3 for Cinder APIs? Is
this available in any latest openstack4j?

Setting the OS_VOLUME_API_VERSION=3 doesn't help.

Regards,
Srini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230725/f56f902f/attachment.htm>


More information about the openstack-discuss mailing list