← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1572411] [NEW] Keystone authetication error

 

Public bug reported:

 I have working devstack setup which services which is added like
keysone, nova, horizon ,cinder, cloudkitty, ceilometer etc.,

But now I am getting some error in horizon while logging in.

I am giving the correct username and password, But it is giving error
which is as follows:(Horizon)

    Unable to retrieve authorized projects.


Keystone is generating the error which is as follows:

    2016-04-19 03:53:46.762426 26667 DEBUG keystone.middleware.core [req-9629a303-718a-4caf-abe8-e34c2324906a - - - - -] There is either no auth token in the request or the certificate issuer is not trusted. No auth context will be set. process_request /opt/stack/keystone/keystone/middleware/core.py:310
    2016-04-19 03:53:46.765221 26667 INFO keystone.common.wsgi [req-9629a303-718a-4caf-abe8-e34c2324906a - - - - -] POST http://198.100.181.65:5000/v2.0/tokens
    2016-04-19 03:53:46.806062 26666 INFO keystone.common.wsgi [req-56b2c8ef-9104-4902-89b8-25ef06ee511e - - - - -] GET http://198.100.181.65:5000/
    2016-04-19 03:53:46.826444 26668 DEBUG keystone.common.authorization [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] RBAC: Proceeding without project or domain scope token_to_auth_context /opt/stack/keystone/keystone/common/authorization.py:74
    2016-04-19 03:53:46.826782 26668 DEBUG keystone.middleware.core [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] RBAC: auth_context: {'is_delegated_auth': False, 'user_id': u'4b8fcbd328de4ab190065c386480fda4', 'trustee_id': None, 'trustor_id': None, 'consumer_id': None, 'token': <KeystoneToken (audit_id=AKiKf6Q_TUm0fQVLMsvIZQ, audit_chain_id=AKiKf6Q_TUm0fQVLMsvIZQ) at 0x7f1b1ac74868>, 'access_token_id': None, 'trust_id': None} process_request /opt/stack/keystone/keystone/middleware/core.py:314
    2016-04-19 03:53:46.828707 26668 INFO keystone.common.wsgi [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] GET http://198.100.181.65:5000/v2.0/tenants
    2016-04-19 03:53:46.841585 26668 ERROR keystone.common.wsgi [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] Expecting ',' delimiter: line 1 column 20 (char 19)
    2016-04-19 03:53:46.841608 26668 TRACE keystone.common.wsgi Traceback (most recent call last):
    2016-04-19 03:53:46.841614 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/wsgi.py", line 248, in __call__
    2016-04-19 03:53:46.841617 26668 TRACE keystone.common.wsgi     result = method(context, **params)
    2016-04-19 03:53:46.841621 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/assignment/controllers.py", line 56, in get_projects_for_token
    2016-04-19 03:53:46.841626 26668 TRACE keystone.common.wsgi     self.assignment_api.list_projects_for_user(token_ref.user_id))
    2016-04-19 03:53:46.841630 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/assignment/core.py", line 290, in list_projects_for_user
    2016-04-19 03:53:46.841633 26668 TRACE keystone.common.wsgi     return self.resource_api.list_projects_from_ids(project_ids)
    2016-04-19 03:53:46.841637 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/resource/backends/sql.py", line 67, in list_projects_from_ids
    2016-04-19 03:53:46.841641 26668 TRACE keystone.common.wsgi     return [project_ref.to_dict() for project_ref in query.all()]
    2016-04-19 03:53:46.841644 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2584, in all
    2016-04-19 03:53:46.841648 26668 TRACE keystone.common.wsgi     return list(self)
    2016-04-19 03:53:46.841651 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 86, in instances
    2016-04-19 03:53:46.841681 26668 TRACE keystone.common.wsgi     util.raise_from_cause(err)
    2016-04-19 03:53:46.841686 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
    2016-04-19 03:53:46.841690 26668 TRACE keystone.common.wsgi     reraise(type(exception), exception, tb=exc_tb)
    2016-04-19 03:53:46.841693 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 71, in instances
    2016-04-19 03:53:46.841697 26668 TRACE keystone.common.wsgi     rows = [proc(row) for row in fetch]
    2016-04-19 03:53:46.841700 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 428, in _instance
    2016-04-19 03:53:46.841710 26668 TRACE keystone.common.wsgi     loaded_instance, populate_existing, populators)
    2016-04-19 03:53:46.841724 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 486, in _populate_full
    2016-04-19 03:53:46.841742 26668 TRACE keystone.common.wsgi     dict_[key] = getter(row)
    2016-04-19 03:53:46.841747 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/type_api.py", line 1030, in process
    2016-04-19 03:53:46.841751 26668 TRACE keystone.common.wsgi     return process_value(value, dialect)
    2016-04-19 03:53:46.841754 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/sql/core.py", line 118, in process_result_value
    2016-04-19 03:53:46.841761 26668 TRACE keystone.common.wsgi     return jsonutils.loads(value)
    2016-04-19 03:53:46.841765 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 251, in loads
    2016-04-19 03:53:46.841769 26668 TRACE keystone.common.wsgi     return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
    2016-04-19 03:53:46.841773 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    2016-04-19 03:53:46.841780 26668 TRACE keystone.common.wsgi     return _default_decoder.decode(s)
    2016-04-19 03:53:46.841785 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    2016-04-19 03:53:46.841789 26668 TRACE keystone.common.wsgi     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    2016-04-19 03:53:46.841793 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    2016-04-19 03:53:46.841799 26668 TRACE keystone.common.wsgi     obj, end = self.scan_once(s, idx)
    2016-04-19 03:53:46.841804 26668 TRACE keystone.common.wsgi ValueError: Expecting ',' delimiter: line 1 column 20 (char 19)

But I can be able to work with authentication using openrc of devstack.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1572411

Title:
  Keystone authetication error

Status in OpenStack Identity (keystone):
  New

Bug description:
   I have working devstack setup which services which is added like
  keysone, nova, horizon ,cinder, cloudkitty, ceilometer etc.,

  But now I am getting some error in horizon while logging in.

  I am giving the correct username and password, But it is giving error
  which is as follows:(Horizon)

      Unable to retrieve authorized projects.

  
  Keystone is generating the error which is as follows:

      2016-04-19 03:53:46.762426 26667 DEBUG keystone.middleware.core [req-9629a303-718a-4caf-abe8-e34c2324906a - - - - -] There is either no auth token in the request or the certificate issuer is not trusted. No auth context will be set. process_request /opt/stack/keystone/keystone/middleware/core.py:310
      2016-04-19 03:53:46.765221 26667 INFO keystone.common.wsgi [req-9629a303-718a-4caf-abe8-e34c2324906a - - - - -] POST http://198.100.181.65:5000/v2.0/tokens
      2016-04-19 03:53:46.806062 26666 INFO keystone.common.wsgi [req-56b2c8ef-9104-4902-89b8-25ef06ee511e - - - - -] GET http://198.100.181.65:5000/
      2016-04-19 03:53:46.826444 26668 DEBUG keystone.common.authorization [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] RBAC: Proceeding without project or domain scope token_to_auth_context /opt/stack/keystone/keystone/common/authorization.py:74
      2016-04-19 03:53:46.826782 26668 DEBUG keystone.middleware.core [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] RBAC: auth_context: {'is_delegated_auth': False, 'user_id': u'4b8fcbd328de4ab190065c386480fda4', 'trustee_id': None, 'trustor_id': None, 'consumer_id': None, 'token': <KeystoneToken (audit_id=AKiKf6Q_TUm0fQVLMsvIZQ, audit_chain_id=AKiKf6Q_TUm0fQVLMsvIZQ) at 0x7f1b1ac74868>, 'access_token_id': None, 'trust_id': None} process_request /opt/stack/keystone/keystone/middleware/core.py:314
      2016-04-19 03:53:46.828707 26668 INFO keystone.common.wsgi [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] GET http://198.100.181.65:5000/v2.0/tenants
      2016-04-19 03:53:46.841585 26668 ERROR keystone.common.wsgi [req-212b39d3-b64d-48af-b4a2-da2bcd33c334 - - - - -] Expecting ',' delimiter: line 1 column 20 (char 19)
      2016-04-19 03:53:46.841608 26668 TRACE keystone.common.wsgi Traceback (most recent call last):
      2016-04-19 03:53:46.841614 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/wsgi.py", line 248, in __call__
      2016-04-19 03:53:46.841617 26668 TRACE keystone.common.wsgi     result = method(context, **params)
      2016-04-19 03:53:46.841621 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/assignment/controllers.py", line 56, in get_projects_for_token
      2016-04-19 03:53:46.841626 26668 TRACE keystone.common.wsgi     self.assignment_api.list_projects_for_user(token_ref.user_id))
      2016-04-19 03:53:46.841630 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/assignment/core.py", line 290, in list_projects_for_user
      2016-04-19 03:53:46.841633 26668 TRACE keystone.common.wsgi     return self.resource_api.list_projects_from_ids(project_ids)
      2016-04-19 03:53:46.841637 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/resource/backends/sql.py", line 67, in list_projects_from_ids
      2016-04-19 03:53:46.841641 26668 TRACE keystone.common.wsgi     return [project_ref.to_dict() for project_ref in query.all()]
      2016-04-19 03:53:46.841644 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2584, in all
      2016-04-19 03:53:46.841648 26668 TRACE keystone.common.wsgi     return list(self)
      2016-04-19 03:53:46.841651 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 86, in instances
      2016-04-19 03:53:46.841681 26668 TRACE keystone.common.wsgi     util.raise_from_cause(err)
      2016-04-19 03:53:46.841686 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
      2016-04-19 03:53:46.841690 26668 TRACE keystone.common.wsgi     reraise(type(exception), exception, tb=exc_tb)
      2016-04-19 03:53:46.841693 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 71, in instances
      2016-04-19 03:53:46.841697 26668 TRACE keystone.common.wsgi     rows = [proc(row) for row in fetch]
      2016-04-19 03:53:46.841700 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 428, in _instance
      2016-04-19 03:53:46.841710 26668 TRACE keystone.common.wsgi     loaded_instance, populate_existing, populators)
      2016-04-19 03:53:46.841724 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 486, in _populate_full
      2016-04-19 03:53:46.841742 26668 TRACE keystone.common.wsgi     dict_[key] = getter(row)
      2016-04-19 03:53:46.841747 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/type_api.py", line 1030, in process
      2016-04-19 03:53:46.841751 26668 TRACE keystone.common.wsgi     return process_value(value, dialect)
      2016-04-19 03:53:46.841754 26668 TRACE keystone.common.wsgi   File "/opt/stack/keystone/keystone/common/sql/core.py", line 118, in process_result_value
      2016-04-19 03:53:46.841761 26668 TRACE keystone.common.wsgi     return jsonutils.loads(value)
      2016-04-19 03:53:46.841765 26668 TRACE keystone.common.wsgi   File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 251, in loads
      2016-04-19 03:53:46.841769 26668 TRACE keystone.common.wsgi     return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
      2016-04-19 03:53:46.841773 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
      2016-04-19 03:53:46.841780 26668 TRACE keystone.common.wsgi     return _default_decoder.decode(s)
      2016-04-19 03:53:46.841785 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
      2016-04-19 03:53:46.841789 26668 TRACE keystone.common.wsgi     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      2016-04-19 03:53:46.841793 26668 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
      2016-04-19 03:53:46.841799 26668 TRACE keystone.common.wsgi     obj, end = self.scan_once(s, idx)
      2016-04-19 03:53:46.841804 26668 TRACE keystone.common.wsgi ValueError: Expecting ',' delimiter: line 1 column 20 (char 19)

  But I can be able to work with authentication using openrc of
  devstack.

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


Follow ups