OSC can't create server in the environment without volume endpoint defined

Bug #2160039 reported by Slawek Kaplonski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

I usually use devstack environment without Cinder deployed at all as I don't need it. With current python-openstackclient from master branch (head is caec5c3f54aa5019a3a957e9fc3679b1584d4814) I can't create server:

$ openstack server create --image cirros-0.5.1-x86_64-disk --flavor m1.tiny --network private vm
public endpoint for block-storage service in RegionOne region not found

when I enable debug I got:

...
Compute client initialized using OpenStack SDK: <openstack.compute.v2._proxy.Proxy object at 0x77015195e9f0>
public endpoint for block-storage service in RegionOne region not found
Traceback (most recent call last):
  File "/opt/stack/data/venv/lib/python3.12/site-packages/cliff/app.py", line 455, in run_subcommand
    result = cmd.run(parsed_args)
             ^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/osc_lib/command/command.py", line 51, in run
    return super().run(parsed_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/cliff/display.py", line 160, in run
    column_names, data = self.take_action(parsed_args)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/openstackclient/compute/v2/server.py", line 1599, in take_action
    volume_client = self.app.client_manager.volume
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/osc_lib/clientmanager.py", line 53, in __get__
    self._handle = self.factory(instance)
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/openstackclient/volume/client.py", line 36, in make_client
    instance.sdk_connection.block_storage,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/openstack/service_description.py", line 116, in __get__
    proxy = self._make_proxy(instance)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/openstack/service_description.py", line 360, in _make_proxy
    found_version = temp_adapter.get_api_major_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/keystoneauth1/adapter.py", line 426, in get_api_major_version
    return self.session.get_api_major_version(auth or self.auth, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/keystoneauth1/session.py", line 1473, in get_api_major_version
    return auth.get_api_major_version(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/keystoneauth1/identity/base.py", line 573, in get_api_major_version
    data = get_endpoint_data(discover_versions=discover_versions)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/keystoneauth1/identity/base.py", line 300, in get_endpoint_data
    endpoint_data = service_catalog.endpoint_data_for(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/stack/data/venv/lib/python3.12/site-packages/keystoneauth1/access/service_catalog.py", line 540, in endpoint_data_for
    raise exceptions.EndpointNotFound(msg)
keystoneauth1.exceptions.catalog.EndpointNotFound: public endpoint for block-storage service in RegionOne region not found
clean_up CreateServer: public endpoint for block-storage service in RegionOne region not found
END return value: 1
...

It works fine for me with openstackclient 10.1.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.