Open xek opened 7 months ago
It already loads all files from /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d
:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/settings.py#L268-L280
Oh, I haven't seen that. Maybe the issue is that the local_settings.py, which is also placed in this directory, overwrites the contents of 9999_custom_settings.py? I guess it should be renamed to 0000_local_settings.py
I'll take a second look once I have it deployed again.
No, local_settings.py
is loaded before local_settings.d
, and renaming it will just result in it not being found at all.
The problem is that you are putting things in /etc/openstack-dashboard/local_settings.d
but the application doesn't know about it and checks its own directories at /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d
.
TripleO didn't like that and moved some (but not all) of the configuration files to /etc
, replacing them with symlinks.
The horizon-operator assumed those files should be in /etc
just like TripleO did, but doesn't create the symlinks (only the symlink for /etc/openstack-dashboard/local_settings
is created). So nothing works.
Be the way, we can (and should) just put the memcached config in the local_settings directly, that's how we did it originally with puppet-horizon.
Those symlinks are also required for the plugins and the downstream theme to work.
I tried to apply the following config:
The service still fails connecting to memcached, since I have TLS enabled. On furthter inspection, I see that the settings are not applied:
I think there needs to be an import in local_settings.py to import all of the files from the
/etc/openstack-dashboard/local_settings.d/
directory.