Public bug reported:

After a fresh install of an openstack cluster in focal, dd 8 April,
horizon does not show details on images and network topology and does
not allow to launch a new instance.

>From cli, using openstack-client, everything works fine.

Apache error log shows many errors, like:
[Wed Apr 08 12:52:48.448760 2020] [core:error] [pid 28261:tid 140243827123968] 
(13)Permission denied: [client 10.64.255.1:52426] AH00035: access to 
/horizon/static/dashboard/js/acfe932256c2.js denied (filesystem path 
'/var/lib/openstack-dashboard/static') because search permissions are missing 
on a component of the path, referer: 
http://10.64.255.172/horizon/project/network_topology/

[Wed Apr 08 12:53:00.234704 2020] [core:error] [pid 28261:tid
140243801945856] (13)Permission denied: [client 10.64.255.1:52434]
AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied
(filesystem path '/var/lib/openstack-dashboard/static') because search
permissions are missing on a component of the path, referer:
http://10.64.255.172/horizon/admin/floating_ips/

[Wed Apr 08 12:53:32.028277 2020] [core:error] [pid 28260:tid
140244018087680] (13)Permission denied: [client 10.64.255.1:52494]
AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied
(filesystem path '/var/lib/openstack-dashboard/static') because search
permissions are missing on a component of the path, referer:
http://10.64.255.172/horizon/project/images/

/var/lib/openstack-dashboard/ does not have execute rights for others:

~# ls -la /var/lib/openstack-dashboard/
total 24
drwxr-x---  5 horizon horizon 4096 Apr  8 12:07 .
drwxr-xr-x 35 root    root    4096 Apr  8 12:05 ..
drwxr-xr-x  3 horizon horizon 4096 Apr  8 12:07 .novaclient
drwxr-xr-x  2 horizon horizon 4096 Mar 27 13:29 secret-key
-rw-------  1 horizon horizon   64 Apr  8 12:05 secret_key
drwxr-xr-x 10 horizon horizon 4096 Apr  8 12:05 static
-rw-r--r--  1 horizon horizon    0 Apr  8 12:05 
_var_lib_openstack-dashboard_secret_key.lock

chmod 751 /var/lib/openstack-dashboard/ and restarting apache2 solves
this issue.

openstack-dashboard:
  Installed: 3:18.2.1~git2020032709.2c4470272-0ubuntu1

** Affects: horizon (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871640

Title:
  Apache2 needs access to /var/lib/openstack-dashboard/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1871640/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to