horizon client denied

Bug #1947295 reported by Mathias Gonzalez
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

Hi, im recently deployed Xena / Yoga (Wallaby have the same issue) (after have other deploys work like ussuri, victoria, train, etc..)

And when try access to horizon i receive:
"Error403 Forbidden You don't have permission to access this resource."

The httpd report"
"AH01630: client denied by server configuration: /usr/share/openstack-dashboard/openstack_dashboard/wsgi"

I follow the official guide and nothing works..

Thanks!

PD: Build on RHEL8.5
httpd-2.4.37-39
openstack-dashboard-20.1.0-1.el8.noarch

EDIT:

i see that django.wsgi was deprecated and replaced with wsgi.py. so i need to reeplace some lines in :

- /etc/httpd/conf.d/openstack-dashboard.conf

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi

with

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py

and

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi

with

<Directory /usr/share/openstack-dashboard/openstack_dashboard/>

description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Radomir Dopieralski (deshipu) wrote :

The file being used is /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py

Revision history for this message
Akihiro Motoki (amotoki) wrote :

openstack_dashboard/wsgi/django.wsgi was deprecated in favor of openstack_dashboard/wsgi.py since Rocky release (commit 0ca736e5da47413db6749053e6083b82cbb24825) and was dropped in Wallaby (commit 7e682a2d528bcff992334d8792e33abbd57f5802).
This is the reason that you hit this issue when you tried Xena.

I believe it is not a horizon bug but a packaging bug of the RPM package you used.
I would suggest to report it to the horizon package you use.

Revision history for this message
jeremy zheng (jjfly111) wrote (last edit ):

it doesn't work
A 404 error has occurred
as the same time,
[Mon Dec 06 22:15:51.491697 2021] [wsgi:error] [pid 32763:tid 139821875975936] WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle.
[Mon Dec 06 22:15:52.358265 2021] [wsgi:error] [pid 32763:tid 139821875975936] /usr/lib64/python3.6/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()

Revision history for this message
Mathias Gonzalez (mathgonzlez) wrote :

You need to reeplace the route of django.wsgi with

/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py

description: updated
description: updated
Revision history for this message
Mathias Gonzalez (mathgonzlez) wrote :

this bug is still in zed release...

Revision history for this message
mushrow (hollowbeing) wrote :

i met the same issue when install openstack-horizon-victoria, and i finally solved it.

here is the steps:

1. in </etc/httpd/conf.d/openstack-dashboard.conf>
   change "WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
   to "WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py"
   because there is no django.wsgi, but wsgi.py on your server.

2. in </etc/httpd/conf.d/openstack-dashboard.conf>
   change "<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>"
   to "<Directory /usr/share/openstack-dashboard/openstack_dashboard>"
   because of the same reason to 1

3. in </etc/openstack-dashboard/local_settings>
   add "WEBROOT = '/dashboard/'"

4. in </etc/openstack-dashboard/local_settings>
   change "http://%s/identity/v3"
   to "http://%s:5000/identity/v3"

good luck

Revision history for this message
Lasse H. Pedersen (misterpedersen) wrote :

Same issue in Bobcat 2023.2

Solution from "mushrow" solved the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.