← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1671373] Re: 'Invalid credentials with the provider'

 

I believe it could be credentials indeed or configuration problem, not nova.
Please, see example: http://ix.io/oRj

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

Title:
  'Invalid credentials with the provider'

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Hi,

  I have some issues with libcloud library when trying to retrieve the
  openstack instance details. Please let me know if you have any idea on
  the below error. This error is not seen in kilo setup.

  --
  >>> driver.list_nodes()
  Traceback (most recent call last):
  File "/home/s.viswanathan/GV/lib/cloudlib.py", line 94, in show_instances
  ERROR 2017-03-07 04:04:20     nodes = sess.list_nodes()
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/openstack.py", line 177, in list_nodes
  ERROR 2017-03-07 04:04:20     self.connection.request('/servers/detail', params=params).object)
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", line 227, in request
  ERROR 2017-03-07 04:04:20     raw=raw)
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 757, in request
  ERROR 2017-03-07 04:04:20     action = self.morph_action_hook(action)
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", line 294, in morph_action_hook
  ERROR 2017-03-07 04:04:20     self._populate_hosts_and_request_paths()
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", line 327, in _populate_hosts_and_request_paths
  ERROR 2017-03-07 04:04:20     osa = osa.authenticate(**kwargs)  # may throw InvalidCreds
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", line 855, in authenticate
  ERROR 2017-03-07 04:04:20     return self._authenticate_2_0_with_password()
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", line 880, in _authenticate_2_0_with_password
  ERROR 2017-03-07 04:04:20     return self._authenticate_2_0_with_body(reqbody)
  ERROR 2017-03-07 04:04:20   File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", line 888, in _authenticate_2_0_with_body
  ERROR 2017-03-07 04:04:20     raise InvalidCredsError()
  ERROR 2017-03-07 04:04:20 InvalidCredsError: 'Invalid credentials with the provider' 
  --

  
  I have tried from python interpreter manually also, seen same problem.

  from libcloud.compute.types import Provider
  from libcloud.compute.providers import get_driver
  import libcloud.security
  OpenStack = get_driver(Provider.OPENSTACK)
  driver = OpenStack('sathya', 'sathya',ex_force_auth_url='http://x.x.x.x:5000',ex_force_auth_version='2.0_password')
  driver.list_nodes()

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


References