Bug 904154

Summary: RFE: Make Horizon configuration values available from /etc.
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: python-django-openstack-authAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: breeler, jpichon, mrunge
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-25 20:23:09 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:

Description Stephen Gordon 2013-01-25 15:38:12 UTC
Description of problem:

Horizon keeps a number of configuration values in this location under /usr/share:

/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py

It is expected that any changes made to this configuration will be lost on package update. Ideally Horizon should be configurable from a location under /etc.

I'm raising this as a result of Bug # 890510 because the advice we're forced to put in the documentation at this point in time is that you must create a role called "Member" because that is what Horizon expects by default.

The obvious user response to that is "what if I want to change the default" and the answer is that they can't, at least in a supportable fashion.

Comment 1 Julie Pichon 2013-01-25 15:52:59 UTC
The information I provided in that other bug may have been inaccurate - it looks like we also have a settings file for Horizon in /etc:

/etc/openstack-dashboard/local_settings

I'm guessing this one is the one where user settings should live, without the risk of being overwritten. Matthias, is this something you can confirm?

Comment 2 Matthias Runge 2013-01-25 20:48:32 UTC
Yepp, Julie is right. We have a set of presets defined in /usr/share/openstack-dashboard/openstack_dashboard/settings.py, which includes at the end
/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
which is a symbolic link to 
/etc/openstack-dashboard/local_settings 

The latter is marked as a config file and thus, won't be overwritten.