← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1553624] Re: Cannot create instance on a new Liberty openstack instalation

 

This is less of a bug report and more of a support request, there is a
problem with your auth / identity setup:

2016-03-05 18:29:55.974 6667 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-2bb50d11-0749-4613-a784-659afc8c2527)

Check your keystone auth setup and make sure nova.conf and neutron.conf
are configured properly for auth.

** 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/1553624

Title:
  Cannot create instance on a new Liberty openstack instalation

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  When trying to create the first instance on a new Openstack instalation.
  Using Liberty on Ubuntu 14.04 installed as  described in   http://docs.openstack.org/liberty/install-guide-ubuntu/
  Got the following error message: 
  ERROR (ClientException): 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-e340097a-3b2a-48aa-812b-455ee125c891)

  1) $ dpkg -l | grep nova
  ii  nova-api                            2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - API frontend
  ii  nova-cert                           2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - certificate management
  ii  nova-common                         2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - common files
  ii  nova-conductor                      2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - conductor service
  ii  nova-consoleauth                    2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - Console Authenticator
  ii  nova-novncproxy                     2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - NoVNC proxy
  ii  nova-scheduler                      2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute - virtual machine scheduler
  ii  python-nova                         2:12.0.1-0ubuntu1~cloud0              all          OpenStack Compute Python libraries
  ii  python-novaclient                   2:2.30.1-1~cloud0                     all          client library for OpenStack Compute API

  2) command executed:
  (all previous steps such as creating keys, network, subnet , etc, done exactly as described in the Liberty instalation guide for Ubuntu.)
  > nova boot --flavor m1.tiny --image cirros-0.3.4 --nic net-id=873dd9ea-a9b8-4167-ac9d-465757ec5a62 --security-group default --key-name team-shared test1

  3) nova-api.log:
  ... <previous lines deleted> ...

  2016-03-05 18:29:51.414 6667 INFO nova.osapi_compute.wsgi.server [req-868680a2-cb8d-4cd1-82c8-a374f11c8e00 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/os-availability-zone HTTP/1.1" status: 200 len: 293 time: 0.1492500
  2016-03-05 18:29:51.594 6667 INFO nova.osapi_compute.wsgi.server [req-bfba329f-b92a-45b7-8e13-a61c912685b1 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/flavors/detail HTTP/1.1" status: 200 len: 2297 time: 0.0833921
  2016-03-05 18:29:52.534 6667 INFO nova.osapi_compute.wsgi.server [req-9642edbf-8040-48eb-b72f-72e780361595 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/os-quota-sets/a493b0aefabf47e1936e3ca2e437a883 HTTP/1.1" status: 200 len: 568 time: 0.0522950
  2016-03-05 18:29:52.915 6667 INFO nova.osapi_compute.wsgi.server [req-1263f737-822f-44a0-883e-be7de68bc70f c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/servers/detail?project_id=a493b0aefabf47e1936e3ca2e437a883&tenant_id=a493b0aefabf47e1936e3ca2e437a883 HTTP/1.1" status: 200 len: 211 time: 0.2021880
  2016-03-05 18:29:53.884 6667 INFO nova.osapi_compute.wsgi.server [req-a89b0de8-105c-4acb-b94d-0af964823b04 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/os-keypairs HTTP/1.1" status: 200 len: 727 time: 0.0342262
  2016-03-05 18:29:54.624 6667 INFO nova.osapi_compute.wsgi.server [req-4fd365eb-89a6-4bdb-9481-8683f23c3b26 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/extensions HTTP/1.1" status: 200 len: 21880 time: 0.1426890
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions [req-6c0764cf-74f3-4092-818f-f5622f9be943 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] Unexpected exception in API method
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     **create_kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 955, in _validate_and_build_base_options
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1059, in create_pci_requests_for_sriov_ports
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 237, in get_client
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     auth_token = _ADMIN_AUTH.get_token(_SESSION)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 200, in get_token
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return self.get_access(session).auth_token
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     self.auth_ref = self.get_auth_ref(session)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     authenticated=False, log=False)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 501, in post
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return self.request(url, 'POST', **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions     raise exceptions.from_response(resp, method, url)
  2016-03-05 18:29:55.974 6667 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-2bb50d11-0749-4613-a784-659afc8c2527)
  2016-03-05 18:29:55.974 6667 ERROR nova.api.openstack.extensions 
  2016-03-05 18:29:55.997 6667 INFO nova.api.openstack.wsgi [req-6c0764cf-74f3-4092-818f-f5622f9be943 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'keystoneclient.exceptions.BadRequest'>
  2016-03-05 18:29:56.016 6667 INFO nova.osapi_compute.wsgi.server [req-6c0764cf-74f3-4092-818f-f5622f9be943 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "POST /v2/a493b0aefabf47e1936e3ca2e437a883/servers HTTP/1.1" status: 500 len: 441 time: 1.3534050
  2016-03-05 18:29:57.122 6667 INFO nova.osapi_compute.wsgi.server [req-5a402316-1c78-4aee-92a5-639a7a8b1a77 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/servers/detail?limit=21&project_id=a493b0aefabf47e1936e3ca2e437a883 HTTP/1.1" status: 200 len: 211 time: 0.2074881
  2016-03-05 18:29:57.853 6667 INFO nova.osapi_compute.wsgi.server [req-e1c18434-ab6c-4e7b-96de-4928ebf20a0e c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/extensions HTTP/1.1" status: 200 len: 21880 time: 0.1357760
  2016-03-05 18:29:58.056 6667 INFO nova.osapi_compute.wsgi.server [req-9bba8eb2-cb3e-47a8-8727-e7627b01c405 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/limits?reserved=1 HTTP/1.1" status: 200 len: 708 time: 0.0848751
  2016-03-05 18:29:58.184 6667 INFO nova.osapi_compute.wsgi.server [req-26dd80cd-1e72-463b-bbc7-056866688b41 c2b5c9e0d86442418ba70c158ccbd122 a493b0aefabf47e1936e3ca2e437a883 - - -] 127.0.0.1 "GET /v2/a493b0aefabf47e1936e3ca2e437a883/limits?reserved=1 HTTP/1.1" status: 200 len: 708 time: 0.0853851
  ubuntu@os-controller:/var/log/nova$

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1553624/+subscriptions


References