Tuesday, 2024-06-18

d1nuc0mtkajinam, 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
rdopierad1nuc0m: __file 10:21
rdopierad1nuc0m: __file__ is the path of the file being executed10:21
rdopieraso it's the directory where the given file resides10:22
d1nuc0mrdopiera, so it would be "/usr/share/openstack-dashboard/openstack_dashboard"? As that's were settings.py is located10:25
d1nuc0mWhile the snippets are located in "/etc/openstack-dashboard/local_settings.d"10:26
rdopierad1nuc0m: yes10:27
rdopierad1nuc0m: I think we usually make a symlink to make that work10:27
rdopierahorizon normally puts all its config files in /usr/share/openstack-dashboard/openstack_dashboard/local -- some distros elected to move some stuff to /etc using symlinks10:29
d1nuc0mOk, I guess this is an issue with puppet-horizon then, as it uses "/etc/openstack-dashboard/local_settings.d" internally (?)10:31
d1nuc0mrdopiera, then I don't understand why is /etc/openstack-dashboard/local_settings loaded10:33
d1nuc0mEDIT: my bad, /etc/openstack-dashboard/local_settings is a symlink to /etc/openstack-dashboard/local_settings10:34
d1nuc0mRDO'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
d1nuc0mtkajinam, do you think this should be discussed in #rdo ?10:36
rdopierad1nuc0m: iirc that symlink is conditional in the spec, and is only created when building for rhel11:03
rdopierano idea why 11:03
d1nuc0mrdopiera, I don't know either 😅11:06
d1nuc0mJust 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
opendevreviewFrancesco Di Nucci proposed openstack/horizon master: feat: add clouds.yaml download in menu  https://review.opendev.org/c/openstack/horizon/+/92220712:49
d1nuc0mAs I was already working on Horizon, made a proposal12:50

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!