Bug 904154 - RFE: Make Horizon configuration values available from /etc.
Summary: RFE: Make Horizon configuration values available from /etc.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-openstack-auth
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 15:38 UTC by Stephen Gordon
Modified: 2013-01-25 20:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-25 20:23:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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