Apache2 needs access to /var/lib/openstack-dashboard/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
horizon (Ubuntu) |
Fix Released
|
High
|
James Page |
Bug Description
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/
[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/
[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/
/var/lib/
~# ls -la /var/lib/
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_
chmod 751 /var/lib/
openstack-
Installed: 3:18.2.
Changed in horizon (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → James Page (james-page) |
openstack- dashboard: 1~git2020041013 .754804667- 0ubuntu1
Installed: 3:18.2.
Situation got worse now. openstack- dashboard -type f -exec chmod 0640 "{}" + -o -type d -exec chmod 0750 "{}" +
Package does: find /var/lib/
which makes all directories under /var/lib/ openstack- dashboard/ static unreachable for apache and gives "Insecure permissions on key file /var/lib/ openstack- dashboard/ secret_ key, should be 0600".
(static files are served by apache directly, due to: openstack- dashboard/ static/ conf-available/ openstack- dashboard. conf)
Alias /horizon/static /var/lib/
in /etc/apache2/