← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Thank you for reporting this.

python-django 2:3.2.12-2ubuntu1~cloud0 has been backported to the yoga
cloud archive and will publish in the next few hours. Please let us know
if there are any more issues.

** Changed in: cloud-archive
       Status: New => Fix Released

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



References