libcloud
libcloud copied to clipboard
Error finding OpenStack endpoints as service name are not the expected one
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.
In fact, why do we need to use the name? As far as I know, the relevant field is the service_type.
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