← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1669373] Re: Unable to establish connection to keystone on same machine

 

Sounds like an installation issue (something about the host's
networking). Horizon normally has no issues talking to a keystone on the
same host.

** Changed in: horizon
       Status: New => Invalid

** Changed in: horizon
   Importance: Undecided => Low

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

Title:
   Unable to establish connection to keystone on same machine

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  Both Horizon, for the front-end, and Keystone, for the back-end
  installed in the same machine .

  Keystone:
  I config in keystone/etc/keystone.conf:
  public_bind_host=10.30.176.40
  I wil check Keystone, it's work.

  In horizon/openstack_dashboard/local/local_setting.py, I config :
  OPENSTACK_HOST = "10.30.176.40"
  OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3"; % OPENSTACK_HOST

  And start Horizon by command :
  $sudo tools/with_venv.sh python manage.py runserver 10.30.176.40:8000

  But Horizon Unable to establish connection Keystone.

  Log error:

  System check identified no issues (0 silenced).
  March 02, 2017 - 11:42:47
  Django version 1.7, using settings 'openstack_dashboard.settings'
  Starting development server at http://10.30.176.40:8000/
  Quit the server with CONTROL-C.
  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://10.30.176.40:5000/v3.
  Recoverable error: Unable to establish connection to http://10.30.176.40: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 "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 64, in __call__
      return self.application(environ, start_response)
    File "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 168, in __call__
      self.load_middleware()
    File "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 46, in load_middleware
      mw_instance = mw_class()
    File "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/middleware/locale.py", line 23, in __init__
      for url_pattern in get_resolver(None).url_patterns:
    File "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 367, in url_patterns
      patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/home/smartcity/Desktop/idm/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", 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 "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/urls.py", line 36, in <module>
      from openstack_dashboard.dashboards.idm_admin.user_accounts \
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/views.py", line 28, in <module>
      from openstack_dashboard.dashboards.idm_admin.user_accounts \
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py", line 195, in <module>
      class UpdateAccountForm(forms.SelfHandlingForm, UserAccountsLogicMixin):
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py", line 202, in UpdateAccountForm
      choices=get_account_choices())
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/dashboards/idm_admin/user_accounts/forms.py", line 172, in get_account_choices
      use_idm_account=True),
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/fiware_api/keystone.py", line 1027, in get_basic_role
      request, basic, lambda req, n: internal_keystoneclient(req).roles.find(name=n), pickle_props=['name'])
    File "/home/smartcity/Desktop/idm/horizon/openstack_dashboard/fiware_api/keystone.py", line 1002, in _get_element_and_cache
      exceptions.handle(request)
    File "/home/smartcity/Desktop/idm/horizon/horizon/exceptions.py", line 324, in handle
      messages.error(request, message or log_entry)
    File "/home/smartcity/Desktop/idm/horizon/horizon/messages.py", line 83, in error
      fail_silently=fail_silently)
    File "/home/smartcity/Desktop/idm/horizon/horizon/messages.py", line 41, in add_message
      if not horizon_message_already_queued(request, message):
    File "/home/smartcity/Desktop/idm/horizon/horizon/messages.py", line 28, in horizon_message_already_queued
      if request.is_ajax():
  AttributeError: 'NoneType' object has no attribute 'is_ajax'

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