← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1803189] [NEW] Error during login 'bool' object is not callable

 

Public bug reported:

I have installed Openstack horizon rocky using ubuntu apt package
manager. But as soon as i give my login credentials, i am hitting at
this error.

Environment:


Request Method: GET
Request URL: http://10.10.20.10:10443/auth/login/?next=/

Django Version: 1.11.15
Python Version: 2.7.15
Installed Applications:
['openstack_dashboard.dashboards.project',
 'heat_dashboard',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.identity',
 'openstack_dashboard.dashboards.settings',
 'openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django_pyscss',
 'openstack_dashboard.django_pyscss_fix',
 'compressor',
 'horizon',
 'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'horizon.middleware.OperationLogMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'horizon.themes.ThemeMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerClientMiddleware',
 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerMiddleware')


Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
  244.             response = middleware_method(request)

File "/usr/share/openstack-dashboard/horizon/middleware/base.py" in process_request
  52.         if not hasattr(request, "user") or not request.user.is_authenticated():

Exception Type: TypeError at /auth/login/
Exception Value: 'bool' object is not callable


Any idea about the error ?

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  Error during login 'bool' object is not callable

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I have installed Openstack horizon rocky using ubuntu apt package
  manager. But as soon as i give my login credentials, i am hitting at
  this error.

  Environment:

  
  Request Method: GET
  Request URL: http://10.10.20.10:10443/auth/login/?next=/

  Django Version: 1.11.15
  Python Version: 2.7.15
  Installed Applications:
  ['openstack_dashboard.dashboards.project',
   'heat_dashboard',
   'openstack_dashboard.dashboards.admin',
   'openstack_dashboard.dashboards.identity',
   'openstack_dashboard.dashboards.settings',
   'openstack_dashboard',
   'django.contrib.contenttypes',
   'django.contrib.auth',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.humanize',
   'django_pyscss',
   'openstack_dashboard.django_pyscss_fix',
   'compressor',
   'horizon',
   'openstack_auth']
  Installed Middleware:
  ('django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'horizon.middleware.OperationLogMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
   'horizon.middleware.HorizonMiddleware',
   'horizon.themes.ThemeMiddleware',
   'django.middleware.locale.LocaleMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware',
   'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerClientMiddleware',
   'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerMiddleware')


  Traceback:

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
    41.             response = get_response(request)

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
    244.             response = middleware_method(request)

  File "/usr/share/openstack-dashboard/horizon/middleware/base.py" in process_request
    52.         if not hasattr(request, "user") or not request.user.is_authenticated():

  Exception Type: TypeError at /auth/login/
  Exception Value: 'bool' object is not callable


  Any idea about the error ?

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


Follow ups