[Bug 1968858] Re: [Horizon] Unable to switch Project

Dr. Clemens Hardewig 1968858 at bugs.launchpad.net
Wed Apr 20 19:12:16 UTC 2022


With the recent UCA update with working packages for python-django (3.2)
and python-django-pyscss (2.0.2-10~)the bug is fixed for me. Change of
projects now works. The workaround from above is now obsolete.

As a side effect the openstack-dashboard feels much more agile and
faster ...

Thanks to Corey for the fast reaction and fix

@Akihiro: I think, there is no need to continue with django 2.2 support
resp rollback any preparation work for django 4.x prep work. As for
Ubuntu jammy django 3.2 will be standard anyway, ...

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1968858

Title:
  [Horizon] Unable to switch Project

Status in Ubuntu Cloud Archive:
  Fix Released
Status in OpenStack Dashboard (Horizon):
  Incomplete

Bug description:
  Hi,

  I am using horizon 22.1.0 on ubuntu 20.04 installed from UCA repo. I
  am unable to switch project from horizon. Getting below error in logs.

  [Wed Apr 13 14:02:43.833149 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405] INFO openstack_auth.views Project switch successful for user "admin".
  [Wed Apr 13 14:02:43.834356 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405] ERROR django.request Internal Server Error: /horizon/auth/switch/98687873a146418eaeeb54a01693669f/
  [Wed Apr 13 14:02:43.834371 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405] Traceback (most recent call last):
  [Wed Apr 13 14:02:43.834374 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]   File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner
  [Wed Apr 13 14:02:43.834377 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]     response = get_response(request)
  [Wed Apr 13 14:02:43.834379 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]   File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response
  [Wed Apr 13 14:02:43.834382 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]     response = self.process_exception_by_middleware(e, request)
  [Wed Apr 13 14:02:43.834384 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]   File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response
  [Wed Apr 13 14:02:43.834387 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  [Wed Apr 13 14:02:43.834405 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]   File "/usr/lib/python3/dist-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
  [Wed Apr 13 14:02:43.834408 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]     return view_func(request, *args, **kwargs)
  [Wed Apr 13 14:02:43.834410 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]   File "/usr/lib/python3/dist-packages/openstack_auth/views.py", line 295, in switch
  [Wed Apr 13 14:02:43.834412 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405]     if (not http.url_has_allowed_host_and_scheme(
  [Wed Apr 13 14:02:43.834414 2022] [wsgi:error] [pid 1126664:tid 140258759444224] [remote 172.16.40.100:61405] AttributeError: module 'django.utils.http' has no attribute 'url_has_allowed_host_and_scheme'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1968858/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list