Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8073

[Fiware-tech-help] Getting Error with KeyRock

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hello,

      I am new to FIWARE and I am using KeyRock - Identity Management. I have only
      Keystone and Horizon installed. I have configured Keystone on a VM which I
      access through ssh. I can run commands on keystone such as create/delete
      groups, users etc. using 'curl'. Now, I am trying to do the same using the
      browser after installing Horizon. I run Horizon at 0.0.0.0:8000 and access
      the server via 'http://[public IP]:8000' in chrome. I get the following
      error in browser:

      A server error occurred. Please contact the administrator.

      In the Keystone ssh, I get the following:

      2017-01-02 22:45:25.597 4731 WARNING keystone.common.wsgi [-] Authorization
      failed. The request you have made requires authentication. from 127.0.0.1

      2017-01-02 22:45:25.603 4731 INFO eventlet.wsgi.server [-] 127.0.0.1 - -
      [02/Jan/2017 22:45:25] "POST /v3/auth/tokens HTTP/1.1" 401 331 0.061225

      In the Horizon ssh console, I get the following error:

      UserWarning: Module novaclient.v1_1 is deprecated (taken as a basis for
      novaclient.v2). The preferable way to get client class or object you can
      find in novaclient.client module.

      WARNING:py.warnings:UserWarning: Module novaclient.v1_1 is deprecated (taken
      as a basis for novaclient.v2). The preferable way to get client class or
      object you can find in novaclient.client module.

      RemovedInDjango18Warning: XViewMiddleware has been moved to
      django.contrib.admindocs.middleware.

      WARNING:py.warnings:RemovedInDjango18Warning: XViewMiddleware has been moved
      to django.contrib.admindocs.middleware.

      DEBUG:idm_logger:Creating a new internal keystoneclient connection to
      http://0.0.0.0:5000/v3.

      Recoverable error: Unable to establish connection to
      http://0.0.0.0:5000/v3/auth/tokens

      Traceback (most recent call last):

      File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run

      self.result = application(self.environ, self.start_response)

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/contrib/staticfiles
      /handlers.py", line 64, in _call_

      return self.application(environ, start_response)

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.
      py", line 168, in _call_

      self.load_middleware()

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.
      py", line 46, in load_middleware

      mw_instance = mw_class()

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/middleware/locale.p
      y", line 23, in _init_

      for url_pattern in get_resolver(None).url_patterns:

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.p
      y", line 367, in url_patterns

      patterns = getattr(self.urlconf_module, "urlpatterns",
      self.urlconf_module)

      File
      "/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.p
      y", line 361, in urlconf_module

      self._urlconf_module = import_module(self.urlconf_name)

      File "/usr/lib/python2.7/importlib/_init_.py", line 37, in import_module

      _import_(name)

      File "/horizon/openstack_dashboard/urls.py", line 36, in <module>

      from openstack_dashboard.dashboards.idm_admin.user_accounts \

      File
      "/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/views.py",
      line 28, in <module>

      from openstack_dashboard.dashboards.idm_admin.user_accounts \

      File
      "/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py",
      line 195, in <module>

      class UpdateAccountForm(forms.SelfHandlingForm, UserAccountsLogicMixin):

      File
      "/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py",
      line 202, in UpdateAccountForm

      choices=get_account_choices())

      File
      "/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py",
      line 172, in get_account_choices

      use_idm_account=True),

      File "/horizon/openstack_dashboard/fiware_api/keystone.py", line 1022, in
      get_basic_role

      request, basic, lambda req, n:
      internal_keystoneclient(req).roles.find(name=n), pickle_props=['name'])

      File "/horizon/openstack_dashboard/fiware_api/keystone.py", line 997, in
      _get_element_and_cache

      exceptions.handle(request)

      File "/horizon/horizon/exceptions.py", line 324, in handle

      messages.error(request, message or log_entry)

      File "/horizon/horizon/messages.py", line 83, in error

      fail_silently=fail_silently)

      File "/horizon/horizon/messages.py", line 41, in add_message

      if not horizon_message_already_queued(request, message):

      File "/horizon/horizon/messages.py", line 28, in
      horizon_message_already_queued

      if request.is_ajax():

      AttributeError: 'NoneType' object has no attribute 'is_ajax'

      [02/Jan/2017 21:53:04] "GET / HTTP/1.1" 500 59

      Please tell me what am I doing wrong. As I am new to this so my
      understanding about its functionality is quite limited.

      __________________________________________________________________________________________

      You can get more information about our cookies and privacy policies on the following links:

      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Chaudhary Umair Nadeem <umair.nadeem@rwth-aachen.de>]

        Activity

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: