openstack server creatot is not working

Asked by Anzik

Hey,
Im new to OpenStack and I try to run a dual node Cluster with one controller and one compute node.

It works fine but when I try to run the following command:

openstack server create --flavor 9c8dc0c0-46e8-4f9b-a88f-3e538371a19f --image cb066ca1-4022-4759-aaa1-8b979439abdd example

I get the following error in my command line:

Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-c4885d7d-0c32-42eb-88bc-e0de93e1e085)

In the nova-api log I can see the following error

2023-08-11 06:52:48.171 1901 INFO nova.osapi_compute.wsgi.server [None req-348e96f7-6377-43f4-ac45-a4ab2dcd10e3 f230758299f04a758700bbf14bc89e9a 34fdea47574e43f2bc0a8456f387ed29 - - default default] 192.168.151.188 "GET /v2.1/flavors/9c8dc0c0-46e8-4f9b-a88f-3e538371a19f HTTP/1.1" status: 200 len: 856 time: 0.0090311
2023-08-11 06:52:48.186 1901 WARNING oslo_config.cfg [None req-c4885d7d-0c32-42eb-88bc-e0de93e1e085 f230758299f04a758700bbf14bc89e9a 34fdea47574e43f2bc0a8456f387ed29 - - default default] Deprecated: Option "api_servers" from group "glance" is deprecated for removal (
Support for image service configuration via standard keystoneauth1 Adapter
options was added in the 17.0.0 Queens release. The api_servers option was
retained temporarily to allow [url=https://checkbill.pk/sngpl-online-bill/]Onlline bill [/url] consumers time to cut over to a real load
balancing solution.
). Its value may be silently ignored in the future.
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi [None req-c4885d7d-0c32-42eb-88bc-e0de93e1e085 f230758299f04a758700bbf14bc89e9a 34fdea47574e43f2bc0a8456f387ed29 - - default default] Unexpected exception in API method: keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-10ae3343-f5c6-45c0-b6f7-984e353ae3e4)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/api/openstack/wsgi.py", line 658, in wrapped
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/api/validation/__init__.py", line 110, in wrapper
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/api/validation/__init__.py", line 110, in wrapper
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/api/validation/__init__.py", line 110, in wrapper
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi [Previous line repeated 11 more times]
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/api/openstack/compute/servers.py", line 785, in create
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi instances, resv_id = self.compute_api.create(
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/compute/api.py", line 2206, in create
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self._create_instance(
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/compute/api.py", line 1661, in _create_instance
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi image_id, boot_meta = self._get_image(context, image_href)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/compute/api.py", line 1009, in _get_image
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi image = self.image_api.get(context, image_href)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/image/glance.py", line 1205, in get
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return session.show(context, image_id,
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/image/glance.py", line 287, in show
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi _reraise_translated_image_exception(image_id)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/image/glance.py", line 1031, in _reraise_translated_image_exception
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi raise new_exc.with_traceback(exc_trace)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/image/glance.py", line 285, in show
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi image = self._client.call(context, 2, 'get', args=(image_id,))
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/nova/image/glance.py", line 191, in call
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi result = getattr(controller, method)(*args, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/glanceclient/v2/images.py", line 197, in get
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self._get(image_id)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/glanceclient/common/utils.py", line 649, in inner
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return RequestIdProxy(wrapped(*args, **kwargs))
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/glanceclient/v2/images.py", line 190, in _get
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi resp, body = self.http_client.get(url, headers=header)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 395, in get
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self.request(url, 'GET', **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/glanceclient/common/http.py", line 361, in request
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi resp = super(SessionClient,
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 257, in request
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self.session.request(url, method, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 790, in request
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi auth_headers = self.get_auth_headers(auth)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1201, in get_auth_headers
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return auth.get_headers(self, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/service_token.py", line 30, in get_headers
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi token = self.service_auth.get_token(session, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 88, in get_token
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self.get_access(session).auth_token
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 134, in get_access
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi self.auth_ref = self.get_auth_ref(session)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self._plugin.get_auth_ref(session, **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/identity/v3/base.py", line 188, in get_auth_ref
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi resp = session.post(token_url, json=body, headers=headers,
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1149, in post
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi return self.request(url, 'POST', **kwargs)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 986, in request
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi raise exceptions.from_response(resp, method, url)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-10ae3343-f5c6-45c0-b6f7-984e353ae3e4)
2023-08-11 06:52:48.467 1901 ERROR nova.api.openstack.wsgi
2023-08-11 06:52:48.470 1901 INFO nova.api.openstack.wsgi [None req-c4885d7d-0c32-42eb-88bc-e0de93e1e085 f230758299f04a758700bbf14bc89e9a 34fdea47574e43f2bc0a8456f387ed29 - - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'>
2023-08-11 06:52:48.471 1901 INFO nova.osapi_compute.wsgi.server [None req-c4885d7d-0c32-42eb-88bc-e0de93e1e085 f230758299f04a758700bbf14bc89e9a 34fdea47574e43f2bc0a8456f387ed29 - - default default] 192.168.151.188 "POST /v2.1/servers HTTP/1.1" status: 500 len: 649 time: 0.2950711

Thanks for helping me

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You are wrong here.

Please see your output:

"Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible."

That is a different web page.

Can you help with this problem?

Provide an answer of your own, or ask Anzik for more information if necessary.

To post a message you must log in.