Fix rights to local_settings.d for dockerized Horizon
authorRadomir Dopieralski <rdopiera@redhat.com>
Tue, 7 Nov 2017 19:20:38 +0000 (20:20 +0100)
committerMartin André <m.andre@redhat.com>
Thu, 9 Nov 2017 07:31:30 +0000 (07:31 +0000)
For some reasonf that directory doesn't have r/x rights, so when
compress is ran as root, it can access config files in it, but when
horizon is run by apache, it can't, and expects different theme files,
thus failing with OfflineGenerationError. Giving apache access to that
directory fixes the problem and makes the custom theme work.

Closes-bug: #1730911
Change-Id: I53f6db23b036bc9b5a689bbac958550f384194c6
(cherry picked from commit 2827fa428c757180019dd7c1aacafcca554845ab)

docker/services/horizon.yaml

index 94fd9ee..44a76d3 100644 (file)
@@ -105,6 +105,10 @@ outputs:
             - path: /usr/share/openstack-dashboard/openstack_dashboard/local/
               owner: apache:apache
               recurse: false
+            # FIXME Our theme settings are there
+            - path: /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/
+              owner: apache:apache
+              recurse: false
       docker_config:
         step_2:
           horizon_fix_perms: