← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1534163] Re: nova boot Unexpected API Error

 

*** This bug is a duplicate of bug 1534273 ***
    https://bugs.launchpad.net/bugs/1534273

** This bug has been marked a duplicate of bug 1534273
   Keystone configuration options missing from Redhat/CentOS install guide

-- 
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/1534163

Title:
  nova boot Unexpected API Error

Status in OpenStack Compute (nova):
  New

Bug description:
  I'm following the Installation guide on a CentOS 7 box.

  When i try to launch an instance with nova using:

  nova boot --flavor m1.tiny --image cirros --nic net-id=2a3bd890-1afd-
  4d22-9cfb-e9e9415f1a03 --security-group default --key-name oliva
  public-instance

  I get the following error:

  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-fa00f28f-ab95-441d-91cb-68f9353ae16f)

  Output of nova flavor-list, nova image-list, nova secgroup-list,
  neutron net-list follows:

  [root@controller ~]# nova flavor-list
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
  | 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
  | 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+

  [root@controller ~]# nova image-list
  +--------------------------------------+--------+--------+--------+
  | ID                                   | Name   | Status | Server |
  +--------------------------------------+--------+--------+--------+
  | 704c03bc-19af-4546-b995-da8751016642 | cirros | ACTIVE |        |
  +--------------------------------------+--------+--------+--------+

  root@controller ~]# neutron net-list
  +--------------------------------------+---------+-----------------------------------------------------+
  | id                                   | name    | subnets                                             |
  +--------------------------------------+---------+-----------------------------------------------------+
  | 2a3bd890-1afd-4d22-9cfb-e9e9415f1a03 | public  | fe905412-865c-48aa-b1b6-992496ff8c3b 192.168.8.0/24 |
  | 07fab7de-6e98-48d5-a132-3494c2bf55a0 | private | 37bdd457-17dc-4f24-b928-d13d278ba9f3 172.16.1.0/24  |
  +--------------------------------------+---------+-----------------------------------------------------+

  [root@controller ~]# nova secgroup-list
  +--------------------------------------+---------+------------------------+
  | Id                                   | Name    | Description            |
  +--------------------------------------+---------+------------------------+
  | 893815d5-5d8e-42aa-9681-b98681c72e13 | default | Default security group |
  +--------------------------------------+---------+------------------------+

  This is the list of openstack packages installed on controller:

  openstack-swift-proxy-2.5.0-1.el7.noarch
  openstack-neutron-7.0.0-2.el7.noarch
  openstack-selinux-0.6.41-1.el7.noarch
  openstack-dashboard-8.0.0-1.el7.noarch
  openstack-swift-2.5.0-1.el7.noarch
  openstack-heat-engine-5.0.0-1.el7.noarch
  openstack-nova-scheduler-12.0.0-3.94d6b69git.el7.noarch
  openstack-keystone-8.0.1-1.el7.noarch
  python2-django-openstack-auth-2.0.1-1.el7.noarch
  openstack-swift-plugin-swift3-1.7-4.el7.noarch
  openstack-heat-common-5.0.0-1.el7.noarch
  openstack-utils-2014.2-1.el7.noarch
  openstack-nova-common-12.0.0-3.94d6b69git.el7.noarch
  openstack-neutron-ml2-7.0.0-2.el7.noarch
  openstack-nova-novncproxy-12.0.0-3.94d6b69git.el7.noarch
  openstack-nova-api-12.0.0-3.94d6b69git.el7.noarch
  openstack-swift-container-2.5.0-1.el7.noarch
  openstack-heat-api-5.0.0-1.el7.noarch
  python-openstackclient-1.7.1-1.el7.noarch
  openstack-neutron-linuxbridge-7.0.0-2.el7.noarch
  openstack-nova-console-12.0.0-3.94d6b69git.el7.noarch
  openstack-cinder-7.0.1-1.el7.noarch
  openstack-glance-11.0.1-1.el7.noarch
  openstack-heat-api-cfn-5.0.0-1.el7.noarch
  centos-release-openstack-liberty-1-4.el7.noarch
  openstack-nova-cert-12.0.0-3.94d6b69git.el7.noarch
  openstack-neutron-common-7.0.0-2.el7.noarch
  openstack-nova-conductor-12.0.0-3.94d6b69git.el7.noarch

  nova-api.log follows:

  2016-01-14 14:32:18.158 3136 INFO nova.osapi_compute.wsgi.server [req-674ec488-9823-455b-9b0e-9c8e3ef57933 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.0707300
  2016-01-14 14:32:18.704 3136 INFO nova.osapi_compute.wsgi.server [req-c95e2855-be73-490a-b83b-dea9e015b676 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/images HTTP/1.1" status: 200 len: 692 time: 0.2755518
  2016-01-14 14:32:18.894 3136 INFO nova.osapi_compute.wsgi.server [req-1f8c9407-9417-46e7-a40a-26100aa7067c 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/images/704c03bc-19af-4546-b995-da8751016642 HTTP/1.1" status: 200 len: 873 time: 0.1859140
  2016-01-14 14:32:18.931 3136 INFO nova.api.openstack.wsgi [req-e594007b-417d-40cd-9638-f2c25ca9a9a7 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] HTTP exception thrown: Flavor m1.tiny could not be found.
  2016-01-14 14:32:18.932 3136 INFO nova.osapi_compute.wsgi.server [req-e594007b-417d-40cd-9638-f2c25ca9a9a7 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/flavors/m1.tiny HTTP/1.1" status: 404 len: 298 time: 0.0349269
  2016-01-14 14:32:18.966 3136 INFO nova.osapi_compute.wsgi.server [req-23e1f37b-2376-481e-8961-ea329f08b1dd 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/flavors?is_public=None HTTP/1.1" status: 200 len: 1407 time: 0.0301290
  2016-01-14 14:32:18.995 3136 INFO nova.osapi_compute.wsgi.server [req-85050ca8-66d8-47d6-ba14-739c0862ce33 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "GET /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.0258470
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions [req-111949ef-23ca-4c82-9cc2-95986ed90259 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] Unexpected exception in API method
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 611, in create
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     **create_kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1581, in create
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1181, in _create_instance
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 955, in _validate_and_build_base_options
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1059, in create_pci_requests_for_sriov_ports
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 237, in get_client
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     auth_token = _ADMIN_AUTH.get_token(_SESSION)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 200, in get_token
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return self.get_access(session).auth_token
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     self.auth_ref = self.get_auth_ref(session)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     authenticated=False, log=False)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 501, in post
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return self.request(url, 'POST', **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 401, in request
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions     raise exceptions.from_response(resp, method, url)
  2016-01-14 14:32:20.989 3136 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-04c7bdb1-2f6b-4619-969d-dc8f24fa04b1)
  2016-01-14 14:32:20.989 3136 ERROR nova.api.openstack.extensions 
  2016-01-14 14:32:20.995 3136 INFO nova.api.openstack.wsgi [req-111949ef-23ca-4c82-9cc2-95986ed90259 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 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-01-14 14:32:20.997 3136 INFO nova.osapi_compute.wsgi.server [req-111949ef-23ca-4c82-9cc2-95986ed90259 07be303336004eafb9751f8bf0e10f1f afb0d6294ea6426b8d5bdb109c4c4d1e - - -] 192.168.8.114 "POST /v2/afb0d6294ea6426b8d5bdb109c4c4d1e/servers HTTP/1.1" status: 500 len: 441 time: 1.9979300

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


References