libcloud icon indicating copy to clipboard operation
libcloud copied to clipboard

Error finding OpenStack endpoints as service name are not the expected one

Open micafer opened this issue 6 months ago • 2 comments

Summary

In some cases the service name set in the Keystone is not the expected by the OpenStack driver.

Detailed Information

In some sites CinderV3 volume uses the name "cinder" and not "cinderv3" as the site does support any older cinder versions.

micafer avatar Jun 27 '25 08:06 micafer

In fact, why do we need to use the name? As far as I know, the relevant field is the service_type.

micafer avatar Jun 27 '25 08:06 micafer

One posiible solution is not to set the "service_name" in the OpenStackBaseConnection child classes.

https://github.com/apache/libcloud/blob/c899034cf3a8f719eb27a0a8027b5ffe191135ef/libcloud/compute/drivers/openstack.py#L113

micafer avatar Jun 27 '25 09:06 micafer