← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1535079] [NEW] ERROR nova.api.openstack.extensions BadRequest: Expecting to find username or userId in passwordCredentials

 

Public bug reported:

Environment:
centos7.1 Linux controller 3.10.0-327.4.4.el7.x86_64 

I am following the installation guide from;
http://docs.openstack.org/liberty/install-guide-rdo/environment.html

when i tried to initiate instance using following command:
 nova boot --flavor m1.tiny --image cirros --nic net-id=a0bde269-d320-4853-9045-e2e90ba14031   --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-c0467d40-2fff-42b4-915a-d5ff3f1a7ff0)


tail -f nova-api.log 
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     return self.request(url, 'POST', **kwargs)
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 401, in request
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     raise exceptions.from_response(resp, method, url)
2016-01-17 21:33:02.244 62036 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-64775b3f-189b-402d-81c1-c2a0ab142bbc)
2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions 
2016-01-17 21:33:02.245 62036 INFO nova.api.openstack.wsgi [req-c0467d40-2fff-42b4-915a-d5ff3f1a7ff0 8068f6d77937442fbf6cf5f38ef4e590 a57f6656f9b544fbb449996a6069bda2 - - -] 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'>

** Affects: nova
     Importance: Undecided
         Status: New

** Affects: centos
     Importance: Undecided
         Status: New

** Also affects: centos
   Importance: Undecided
       Status: New

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

Title:
  ERROR nova.api.openstack.extensions BadRequest: Expecting to find
  username or userId in passwordCredentials

Status in OpenStack Compute (nova):
  New
Status in CentOS:
  New

Bug description:
  Environment:
  centos7.1 Linux controller 3.10.0-327.4.4.el7.x86_64 

  I am following the installation guide from;
  http://docs.openstack.org/liberty/install-guide-rdo/environment.html

  when i tried to initiate instance using following command:
   nova boot --flavor m1.tiny --image cirros --nic net-id=a0bde269-d320-4853-9045-e2e90ba14031   --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-c0467d40-2fff-42b4-915a-d5ff3f1a7ff0)

  
  tail -f nova-api.log 
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     return self.request(url, 'POST', **kwargs)
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 401, in request
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions     raise exceptions.from_response(resp, method, url)
  2016-01-17 21:33:02.244 62036 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-64775b3f-189b-402d-81c1-c2a0ab142bbc)
  2016-01-17 21:33:02.244 62036 ERROR nova.api.openstack.extensions 
  2016-01-17 21:33:02.245 62036 INFO nova.api.openstack.wsgi [req-c0467d40-2fff-42b4-915a-d5ff3f1a7ff0 8068f6d77937442fbf6cf5f38ef4e590 a57f6656f9b544fbb449996a6069bda2 - - -] 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'>

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


Follow ups