yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #80046
[Bug 1844510] Re: openstackNova(Rocky)-launch instacne-NeutronAdminCredentialConfigurationInvalid
Double check the configuration for the [neutron] section in nova.conf
against this:
https://docs.openstack.org/neutron/rocky/install/controller-install-
ubuntu.html#configure-the-compute-service-to-use-the-networking-service
Note that the install guide is just a reference, the actual URLs have to
make sense for your deployment, e.g. I'm guessing the URL hostname for
auth isn't actually "controller". It also looks like you can drop the
/v3 suffix on the auth_url.
** Tags added: config 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/1844510
Title:
openstackNova(Rocky)-launch instacne-
NeutronAdminCredentialConfigurationInvalid
Status in OpenStack Compute (nova):
Invalid
Bug description:
I try to launch new instance (from horizon as 'admin').
From empty list of instance, click 'launch instance'.
[root@controller1 ~]# uname -a
Linux controller1 3.10.84-21.fc21.loongson.18.mips64el #1 SMP PREEMPT Tue Apr 16 18:41:34 CST 2019 mips64 mips64 mips64 GNU/Linux
[root@controller1 ~]# less /var/log/nova/nova-api.log
2019-09-18 16:42:27.566 2320 ERROR nova.network.neutronv2.api [req-4ff4645f-47be-4c66-bff1-2c8dbb4cca99 5af84d7c91ce4def8dad829fdd707e00 0c71a300399e4d759ef8b9dc6b00accf - 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'}}
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi [req-4ff4645f-47be-4c66-bff1-2c8dbb4cca99 5af84d7c91ce4def8dad829fdd707e00 0c71a300399e4d759ef8b9dc6b00accf - default default] Unexpected exception in API method: NeutronAdminCre
dentialConfigurationInvalid: Networking client is experiencing an unauthorized exception.
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 801, in wrapped
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 576, in create
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi **create_kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi rv = f(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1714, in create
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi trusted_certs=trusted_certs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1161, in _create_instance
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi reservation_id, max_count)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 772, in _validate_and_build_base_options
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi self._check_requested_secgroups(context, security_groups))
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 382, in _check_requested_secgroups
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi secgroup_dict = self.security_group_api.get(context, secgroup)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/security_group/neutron_driver.py", line 143, in get
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi neutron, 'security_group', name, context.project_id)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 61, in find_resourceid_by_name_or_id
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi parent_id, fields='id')['id']
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 53, in find_resource_by_name_or_id
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi cmd_resource, parent_id, fields)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 474, in find_resource
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi cmd_resource, parent_id, fields)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 430, in find_resource_by_id
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi data = obj_lister(**params)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 976, in list_security_groups
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi retrieve_all, **_params)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 369, in list
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi for r in self._pagination(collection, path, **params):
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi res = self.get(path, params=params)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 354, in get
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi headers=headers, params=params)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 126, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi ret = obj(*args, **kwargs)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi self._handle_fault_response(status_code, replybody, resp)
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 142, in wrapper
2019-09-18 16:42:27.568 2320 ERROR nova.api.openstack.wsgi raise exception.NeutronAdminCredentialConfigurationInvalid()
[root@controller1 ~]# vim /etc/nova/nova.conf
7646 [neutron]
7647 url = http://controller1:9696
7648 auth_url = http://controller1:5000/v3
7649 auth_type = password
7650 project_domain_name = default
7651 user_domain_name = default
7652 region_name = RegionOne
7653 project_name = service
7654 username = neutron
7655 password = loongson
7656 service_metadata_proxy = true
7657 metadata_proxy_shared_secret = loongson
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1844510/+subscriptions
References