Bug 1717992

Summary: symlink for local_settings.d is broken AGAIN
Product: Red Hat OpenStack Reporter: Radomir Dopieralski <rdopiera>
Component: python-django-horizonAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Beth White <beth.white>
Severity: urgent Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: athomas, augol, jrist, lhh, rdopiera
Target Milestone: betaKeywords: Regression, Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: blocker
Fixed In Version: python-django-horizon-15.1.1-0.20190612120427.c3ac75e.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:22:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1704440    

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