Counter A ERROR when nova creates instance

Bug #1752210 reported by wangthes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

[root@controller0 ~]# . demo-openrc
[root@controller0 ~]# openstack server create --flavor m1.tiny --image 2af953de-058a-49a9-825d-781d220cd6eb --nic net-id=69d9c6d9-7716-45f1-a8d8-8988b59440af --security-group default demo-instance
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-4de93f56-1506-401e-a602-9fa5aa162824)

[root@controller0 ~]# tail -n 50 /var/log/nova/nova-api.log |grep ERROR
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions [req-4de93f56-1506-401e-a602-9fa5aa162824 d3eedc4b1e0348f0865b6a8052f75bd1 1ec04ee805f24681a6a37cf0b6e52970 - - -] Unexpected exception in API method
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 611, in create
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions **create_kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1587, in create
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1187, in _create_instance
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions auto_disk_config, reservation_id, max_count)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 961, in _validate_and_build_base_options
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions pci_request_info, requested_networks)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1092, in create_pci_requests_for_sriov_ports
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions neutron = get_client(context, admin=True)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 237, in get_client
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions auth_token = _ADMIN_AUTH.get_token(_SESSION)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 200, in get_token
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return self.get_access(session).auth_token
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions self.auth_ref = self.get_auth_ref(session)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions authenticated=False, log=False)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 501, in post
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return self.request(url, 'POST', **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 401, in request
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions raise exceptions.from_response(resp, method, url)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions BadRequest: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-718bb31d-0101-4ed4-bdf9-aa3f2642f84e)
2018-02-27 20:50:57.551 1598 ERROR nova.api.openstack.extensions

Tags: keystone nova
wangthes (wangthes)
tags: added: nova
tags: added: keystone
Revision history for this message
wangthes (wangthes) wrote :

Could anyone help me?

wangthes (wangthes)
information type: Public → Public Security
Revision history for this message
Jeremy Stanley (fungi) wrote :

When setting the bug type to "security" please include some explanation for why you believe it may represent a security vulnerability.

information type: Public Security → Public
Revision history for this message
Matt Riedemann (mriedem) wrote :

Do you have the [neutron] section of nova.conf configured in your nova-api service? It's failing to get a token from keystone to talk to neutron, which likely means you have a misconfiguration.

Changed in nova:
status: New → Invalid
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.