403 error while trying to access custom horizon panel

asked 2019-04-29 01:44:10 -0500

Son gravatar image

Hello folks,

I am trying to create the plugin with python3 and testing it with devstack pike. Somehow, I am not able to access my panels through the horizon dashboard GUI. Panels are not visible there. I can see all panel files inside opensack enable folder. Still not able to get it on the dashboard.

When I try to access panels via url(direct accessing through url), I am getting 403 error and not 404. No issue of credentials. I am using the admin domain.

edit retag flag offensive close merge delete

Comments

Check the apache and horizon logs. Devstack keeps logs in journald, so I guess for Horizon it would be something like journalctl -u devstack@horizon or similar.

I suppose when you access the URL directly, you don’t provide credentials thus the 403.

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-29 03:49:40 -0500 )edit

By the way: Do you really mean admin domain? Not admin user or project? By default, there is only one domain, named Default (upper-case D).

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-29 03:52:32 -0500 )edit

yeah. its admin user.

Son gravatar imageSon ( 2019-04-29 03:55:11 -0500 )edit

one more weird thing I have observed. Somehow the panel files from local/enabled folder are not able to compile. Maybe that is the reason I am not able to see my panels? It has the user as 'root'. and another default file has user 'stack'.

Son gravatar imageSon ( 2019-04-29 03:57:25 -0500 )edit

You mean the Python files? Any error messages?

Admittedly, I don’t know much about adding pages to Horizon, but root ownership sounds wrong to me.

Do you follow https://docs.openstack.org/horizon/la... ?

Bernd Bausch gravatar imageBernd Bausch ( 2019-04-29 05:09:27 -0500 )edit