yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #90085
[Bug 1994087] Re: Unexpected API Error.
>From the logs you provided:
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi raise exception.NeutronAdminCredentialConfigurationInvalid()
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi NeutronAdminCredentialConfigurationInvalid: Networking client is experiencing an unauthorized exception.
So you have to check the [neutron] section of the config file of the
nova-api service and verify that the credentials provided there are
valid and can be used to query neutron.
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1994087
Title:
Unexpected API Error.
Status in OpenStack Compute (nova):
Invalid
Bug description:
I got a nova-api ERROR when i create ainstance use the command in my
rocky clusetr.
[root@zlmanager40 ~]# openstack server create --image 6939705e-47fb-4406-9aed-e1f106a31739 --flavor c1.2c4g --availability-zone nova:zlstorage58 --network office_56 zl-os-checker02
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-c78a192b-4a8f-47d6-8570-2d9cf1dd66ff)
The nova-api log look like this , what's wrong with my cluster,the cluster version is rocky and use the kolla-ansible to deploy ?
2022-10-25 08:41:27.137 30 ERROR nova.network.neutronv2.api [req-c78a192b-4a8f-47d6-8570-2d9cf1dd66ff 22c0da6816464768a96ec9957df76af5 7c60a604a0df49469f5c689a577b6d99 - default default] Neutron client was not able to generate a valid admin token, please verify Neutron admin credential located in nova.conf: Unauthorized: 401-{u'error': {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Unauthorized'}}
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi [req-c78a192b-4a8f-47d6-8570-2d9cf1dd66ff 22c0da6816464768a96ec9957df76af5 7c60a604a0df49469f5c689a577b6d99 - default default] Unexpected exception in API method: NeutronAdminCredentialConfigurationInvalid: Networking client is experiencing an unauthorized exception.
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 801, in wrapped
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 576, in create
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi **create_kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi rv = f(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1714, in create
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi trusted_certs=trusted_certs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1161, in _create_instance
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi reservation_id, max_count)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 778, in _validate_and_build_base_options
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi requested_networks, max_count)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 414, in _check_requested_networks
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi max_count)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 2146, in validate_networks
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi context, neutron, requested_networks)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 2118, in _ports_needed_per_instance
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi neutron=neutron)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 451, in _get_available_networks
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi nets = neutron.list_networks(**search_opts).get('networks', [])
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 809, in list_networks
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi **_params)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 369, in list
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi for r in self._pagination(collection, path, **params):
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi res = self.get(path, params=params)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 354, in get
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi self._handle_fault_response(status_code, replybody, resp)
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 142, in wrapper
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi raise exception.NeutronAdminCredentialConfigurationInvalid()
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi NeutronAdminCredentialConfigurationInvalid: Networking client is experiencing an unauthorized exception.
2022-10-25 08:41:27.138 30 ERROR nova.api.openstack.wsgi
2022-10-25 08:41:27.271 30 INFO nova.api.openstack.wsgi [req-c78a192b-4a8f-47d6-8570-2d9cf1dd66ff 22c0da6816464768a96ec9957df76af5 7c60a604a0df49469f5c689a577b6d99 - 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.
2022-10-25 08:41:27.273 30 INFO nova.osapi_compute.wsgi.server [req-c78a192b-4a8f-47d6-8570-2d9cf1dd66ff 22c0da6816464768a96ec9957df76af5 7c60a604a0df49469f5c689a577b6d99 - default default] 172.18.218.40,172.18.218.33 "POST /v2.1/7c60a604a0df49469f5c689a577b6d99/servers HTTP/1.1" status: 500 len: 640 time: 1.5144041
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1994087/+subscriptions
References