python client ignores region_name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Manila python clients (manilaclient.
Python code to set up a manila client (assuming the openstack environment variables are set for an admin account):
import openstack
from manilaclient.
# get an SDK connection
sdkconnection = openstack.connect()
# create a Manila client using sdkconnection's session
client = Client(
If the client is created this way it may actually use a different region than "region1", as one could check by looking at client.
For example in a setup with two regions "region1" and "region2" and host names in API endpoints like "api.<region>
>>> import openstack
>>> from manilaclient.
>>> c = openstack.connect()
>>> c.session.
'https:/
>>> c.session.
'https:/
>>> client = Client(
>>> client.
'https:/
The problem is most likely the code in the initialization of the Client class, if session is set but service_catalog_url is not.
if session and not service_
where get_endpoint is missing the region_name parameter.
Versions tested with:
openstacksdk==3.0.0
python-
keystoneauth1=
tags: | added: low-hanging-fruit |
Changed in python-manilaclient: | |
status: | New → Triaged |