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

Akihiro Motoki 1968858 at bugs.launchpad.net
Thu Apr 14 03:45:37 UTC 2022


I added "Ubuntu Cloud Archive" as an affected project.
python3-django in Ubuntu 20.04 (focal) is Django 2.2 series and it is not compatible with horizon yoga (which requires Django>=3.2,<3.3).
We need to discuss what is a better workaround.

-- 
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:
  New
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