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

Ammad Ali 1968858 at bugs.launchpad.net
Wed Apr 20 08:31:13 UTC 2022


Hi

I am trying test it and installing openstack-dashboard on fresh ubuntu
20.04 from UCA yoga. But its still failing because of dependencies.

# apt -y install openstack-dashboard python3-django-horizon python3-django-openstack-auth python3-django-pyscss
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-django-horizon : Depends: python3-django (>= 3.2) but it is not going to be installed
                          Depends: python3-django-compressor (>= 2.4) but it is not going to be installed
                          Depends: python3-django-debreach (>= 1.4.2) but it is not going to be installed
 python3-django-openstack-auth : Depends: python3-django (>= 3.2) but it is not going to be installed
                                 Depends: python3-django-compressor (>= 2.4) but it is not going to be installed
                                 Depends: python3-django-debreach (>= 1.4.2) but it is not going to be installed
 python3-django-pyscss : Depends: python3-django but it is not going to be installed
                         Depends: python3-django-compressor but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I already have required packages installed but apt is still failing dependencies. 

# dpkg -l | grep python3-django
ii  python3-django                        2:3.2.12-2ubuntu1~cloud0           all          High-level Python web development framework
ii  python3-django-appconf                1.0.3-1                            all          helper class handling configuration defaults of apps - Python 3.x
ii  python3-django-compressor             2.4-2ubuntu1~cloud0                all          Compresses linked, inline JS or CSS into single cached files - Python 3.x
ii  python3-django-debreach               2.0.1-0ubuntu1                     all          Protection against the BREACH attack in Django - Python 3

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