d1nuc0m | tkajinam, Hi, I have a doubt regarding yesterday's problem - as LOCAL_SETTINGS_DIR_PATH depends on ROOT_PATH = os.path.dirname(os.path.abspath(__file__)), do you know which is the value of ROOT_PATH in this case^ | 08:47 |
---|---|---|
d1nuc0m | *? | 08:48 |
rdopiera | d1nuc0m: __file | 10:21 |
rdopiera | d1nuc0m: __file__ is the path of the file being executed | 10:21 |
rdopiera | so it's the directory where the given file resides | 10:22 |
d1nuc0m | rdopiera, so it would be "/usr/share/openstack-dashboard/openstack_dashboard"? As that's were settings.py is located | 10:25 |
d1nuc0m | While the snippets are located in "/etc/openstack-dashboard/local_settings.d" | 10:26 |
rdopiera | d1nuc0m: yes | 10:27 |
rdopiera | d1nuc0m: I think we usually make a symlink to make that work | 10:27 |
rdopiera | horizon normally puts all its config files in /usr/share/openstack-dashboard/openstack_dashboard/local -- some distros elected to move some stuff to /etc using symlinks | 10:29 |
d1nuc0m | Ok, I guess this is an issue with puppet-horizon then, as it uses "/etc/openstack-dashboard/local_settings.d" internally (?) | 10:31 |
d1nuc0m | rdopiera, then I don't understand why is /etc/openstack-dashboard/local_settings loaded | 10:33 |
d1nuc0m | EDIT: my bad, /etc/openstack-dashboard/local_settings is a symlink to /etc/openstack-dashboard/local_settings | 10:34 |
d1nuc0m | RDO's RPM includes a local_settings symlink, but not for local_settings.d (https://mirror.stream.centos.org/SIGs/9-stream/cloud/x86_64/openstack-caracal/Packages/o/openstack-dashboard-24.0.0-1.el9s.noarch.rpm) | 10:36 |
d1nuc0m | tkajinam, do you think this should be discussed in #rdo ? | 10:36 |
rdopiera | d1nuc0m: iirc that symlink is conditional in the spec, and is only created when building for rhel | 11:03 |
rdopiera | no idea why | 11:03 |
d1nuc0m | rdopiera, I don't know either 😅 | 11:06 |
d1nuc0m | Just as a test, put the snippet I was using yesterday in /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d and it works... | 11:11 |
opendevreview | Francesco Di Nucci proposed openstack/horizon master: feat: add clouds.yaml download in menu https://review.opendev.org/c/openstack/horizon/+/922207 | 12:49 |
d1nuc0m | As I was already working on Horizon, made a proposal | 12:50 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!