Bug 1717992 - symlink for local_settings.d is broken AGAIN
Summary: symlink for local_settings.d is broken AGAIN
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: beta
: 15.0 (Stein)
Assignee: Lon Hohberger
QA Contact: Beth White
URL:
Whiteboard: blocker
Depends On:
Blocks: 1704440
TreeView+ depends on / blocked
 
Reported: 2019-06-06 15:32 UTC by Radomir Dopieralski
Modified: 2021-02-08 20:18 UTC (History)
5 users (show)

Fixed In Version: python-django-horizon-15.1.1-0.20190612120427.c3ac75e.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:22:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 21047 0 None None None 2019-06-06 17:15:52 UTC
RDO 21048 0 None None None 2019-06-06 17:29:50 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:23:10 UTC

Description Radomir Dopieralski 2019-06-06 15:32:48 UTC
Description of problem:
As in every single release since OSP10, the symlink between /etc/openstack-dashboard/local_settings.d and /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d doesn't get created properly. This is due to the fix for this being reverted every time a new version of the spec files is created.

Version-Release number of selected component (if applicable):
openstack-dashboard-15.1.1-0.20190605120413.a3ba780.el8ost.noarch


How reproducible:
every single time

Steps to Reproduce:
1. install it
2. observe that /etc/openstack-dashboard/local_settings.d is a separate directory from /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d

Actual results:
configuration files in /etc/openstack-dashboard/local_settings.d are being ignored by horizon


Expected results:
configuration files in /etc/openstack-dashboard/local_settings.d should be respected

Additional info:

Comment 1 Lon Hohberger 2019-06-06 16:22:23 UTC
So, the lines that seem to disappear are:


mkdir -p %{buildroot}%{_sysconfdir}/openstack-dashboard/local_settings.d
mv %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d/* %{buildroot}%{_sysconfdir}/openstack-dashboard/local_settings.d
rmdir %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d
ln -s ../../../../..%{_sysconfdir}/openstack-dashboard/local_settings.d %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/local/local_settings.d

... is that right?

Comment 2 Lon Hohberger 2019-06-06 17:09:00 UTC
https://review.rdoproject.org/r/21047 (master)
https://review.rdoproject.org/r/21048 (stein-rdo)

Comment 3 Radomir Dopieralski 2019-06-07 07:27:52 UTC
Thank you Lon, yes, those are the lines that got lost. Thank you for adding them!

Comment 4 Radomir Dopieralski 2019-06-07 07:28:50 UTC
I'm not sure if there won't be a similar problem with the 'enabled' directory as well.

Comment 5 Lon Hohberger 2019-06-13 14:09:30 UTC
https://review.rdoproject.org/r/#/c/20028/

is also required to prevent breakage in openstack-manila-ui when creating the openstack-horizon-container image

Comment 12 errata-xmlrpc 2019-09-21 11:22:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2811


Note You need to log in before you can comment on or make changes to this bug.