Public bug reported: I am following the installation guide from;
http://docs.openstack.org/liberty/install-guide-ubuntu/launch-instance-public.html (all previous steps completed successfully without any error.) when i tried to initiate instance using following command; nova boot --flavor m1.tiny --image cirros --nic net- id=f2c94628-f774-43c7-9508-ee4cac175f1d --security-group default --key- name mykey public-instance it gives 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-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c) NOVA-API.log 2015-11-25 06:20:36.789 2435 INFO nova.osapi_compute.wsgi.server [req-91e9cac9-cf64-4676-ac93-d99b4f96e4cf b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.0234828 2015-11-25 06:20:36.994 2435 INFO nova.osapi_compute.wsgi.server [req-7309b02d-2540-4f9b-abcb-4e1120bc0004 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/images HTTP/1.1" status: 200 len: 692 time: 0.0904932 2015-11-25 06:20:37.075 2435 INFO nova.osapi_compute.wsgi.server [req-acba4860-488d-4f00-8561-582abfdc5bc4 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/images/f6f04643-19be-4cd3-a4ba-a97e4a6d620e HTTP/1.1" status: 200 len: 873 time: 0.0778031 2015-11-25 06:20:37.096 2435 INFO nova.api.openstack.wsgi [req-ef73d261-6578-4b86-a252-b32f726b5965 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] HTTP exception thrown: Flavor m1.tiny could not be found. 2015-11-25 06:20:37.097 2435 INFO nova.osapi_compute.wsgi.server [req-ef73d261-6578-4b86-a252-b32f726b5965 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors/m1.tiny HTTP/1.1" status: 404 len: 298 time: 0.0185530 2015-11-25 06:20:37.122 2435 INFO nova.osapi_compute.wsgi.server [req-5381c2b8-96de-4c0e-a7f5-57416a17871c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors?is_public=None HTTP/1.1" status: 200 len: 1407 time: 0.0216920 2015-11-25 06:20:37.141 2435 INFO nova.osapi_compute.wsgi.server [req-0c3f882c-784f-4880-8ef7-2cd91174b551 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.0155120 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] Unexpected exception in API method 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions **create_kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions auto_disk_config, reservation_id, max_count) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 955, in _validate_and_build_base_options 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions pci_request_info, requested_networks) 2015-11-25 06:20:37.515 2435 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 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions neutron = get_client(context, admin=True) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 237, in get_client 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions auth_token = _ADMIN_AUTH.get_token(_SESSION) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 200, in get_token 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return self.get_access(session).auth_token 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 240, in get_access 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions self.auth_ref = self.get_auth_ref(session) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions authenticated=False, log=False) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 501, in post 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return self.request(url, 'POST', **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions raise exceptions.from_response(resp, method, url) 2015-11-25 06:20:37.515 2435 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-12ad1f87-60d0-4bf4-b245-8d605e501c7e) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions 2015-11-25 06:20:37.517 2435 INFO nova.api.openstack.wsgi [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 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'> 2015-11-25 06:20:37.518 2435 INFO nova.osapi_compute.wsgi.server [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "POST /v2/c0977d29a6cf4dad9b3b908f3d9a6765/servers HTTP/1.1" status: 500 len: 441 time: 0.3747370 ** Affects: nova Importance: Undecided Status: New ** Summary changed: - keystoneclient.exceptions.BadRequest + Instance Launching ERROR keystoneclient.exceptions.BadRequest -- 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/1519641 Title: Instance Launching ERROR keystoneclient.exceptions.BadRequest Status in OpenStack Compute (nova): New Bug description: I am following the installation guide from; http://docs.openstack.org/liberty/install-guide-ubuntu/launch-instance-public.html (all previous steps completed successfully without any error.) when i tried to initiate instance using following command; nova boot --flavor m1.tiny --image cirros --nic net- id=f2c94628-f774-43c7-9508-ee4cac175f1d --security-group default --key-name mykey public-instance it gives 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-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c) NOVA-API.log 2015-11-25 06:20:36.789 2435 INFO nova.osapi_compute.wsgi.server [req-91e9cac9-cf64-4676-ac93-d99b4f96e4cf b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.0234828 2015-11-25 06:20:36.994 2435 INFO nova.osapi_compute.wsgi.server [req-7309b02d-2540-4f9b-abcb-4e1120bc0004 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/images HTTP/1.1" status: 200 len: 692 time: 0.0904932 2015-11-25 06:20:37.075 2435 INFO nova.osapi_compute.wsgi.server [req-acba4860-488d-4f00-8561-582abfdc5bc4 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/images/f6f04643-19be-4cd3-a4ba-a97e4a6d620e HTTP/1.1" status: 200 len: 873 time: 0.0778031 2015-11-25 06:20:37.096 2435 INFO nova.api.openstack.wsgi [req-ef73d261-6578-4b86-a252-b32f726b5965 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] HTTP exception thrown: Flavor m1.tiny could not be found. 2015-11-25 06:20:37.097 2435 INFO nova.osapi_compute.wsgi.server [req-ef73d261-6578-4b86-a252-b32f726b5965 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors/m1.tiny HTTP/1.1" status: 404 len: 298 time: 0.0185530 2015-11-25 06:20:37.122 2435 INFO nova.osapi_compute.wsgi.server [req-5381c2b8-96de-4c0e-a7f5-57416a17871c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors?is_public=None HTTP/1.1" status: 200 len: 1407 time: 0.0216920 2015-11-25 06:20:37.141 2435 INFO nova.osapi_compute.wsgi.server [req-0c3f882c-784f-4880-8ef7-2cd91174b551 b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "GET /v2/c0977d29a6cf4dad9b3b908f3d9a6765/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.0155120 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] Unexpected exception in API method 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 611, in create 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions **create_kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 149, in inner 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1581, in create 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1181, in _create_instance 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions auto_disk_config, reservation_id, max_count) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 955, in _validate_and_build_base_options 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions pci_request_info, requested_networks) 2015-11-25 06:20:37.515 2435 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 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions neutron = get_client(context, admin=True) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 237, in get_client 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions auth_token = _ADMIN_AUTH.get_token(_SESSION) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 200, in get_token 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return self.get_access(session).auth_token 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 240, in get_access 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions self.auth_ref = self.get_auth_ref(session) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions authenticated=False, log=False) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 501, in post 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return self.request(url, 'POST', **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions raise exceptions.from_response(resp, method, url) 2015-11-25 06:20:37.515 2435 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-12ad1f87-60d0-4bf4-b245-8d605e501c7e) 2015-11-25 06:20:37.515 2435 ERROR nova.api.openstack.extensions 2015-11-25 06:20:37.517 2435 INFO nova.api.openstack.wsgi [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 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'> 2015-11-25 06:20:37.518 2435 INFO nova.osapi_compute.wsgi.server [req-2982939b-53e9-45df-a5e7-b2ceb2cf1f0c b0483a79521f4d9198a0dd5ae4696576 c0977d29a6cf4dad9b3b908f3d9a6765 - - -] 192.168.3.2 "POST /v2/c0977d29a6cf4dad9b3b908f3d9a6765/servers HTTP/1.1" status: 500 len: 441 time: 0.3747370 To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1519641/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

