Horizon default config assumes www-data has R/w on /usr/share... directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
horizon (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Saucy |
Fix Released
|
High
|
Unassigned |
Bug Description
/etc/openstack-
SECRET_KEY = secret_
since LOCAL_PATH is '/usr/share/
...
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/share/
in <module>
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] SECRET_KEY = secret_
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/lib/
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] with lock:
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/lib/
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] self.acquire()
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/lib/
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] raise LockFailed("failed to create %s" % self.unique_name)
[Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] LockFailed: failed to create /usr/share/
Workaround is to set fixed SECRET_KEY as:
SECRET_KEY = 'randomchars'
or to define it in a different directory (for example, *unsecure* /tmp):
SECRET_KEY = secret_
This problem exists only in Saucy.
Related branches
- Ubuntu Server Developers: Pending requested
-
Diff: 139 lines (+63/-10)5 files modifieddebian/changelog (+15/-0)
debian/openstack-dashboard.conf (+2/-1)
debian/openstack-dashboard.postinst (+15/-1)
debian/openstack-dashboard.postrm (+9/-0)
debian/patches/ubuntu_local_settings.patch (+22/-8)
description: | updated |
Changed in horizon (Ubuntu Saucy): | |
status: | New → Confirmed |
Changed in horizon (Ubuntu Saucy): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
This bug was fixed in the package horizon - 1:2013. 2~b2-0ubuntu6
--------------- 2~b2-0ubuntu6) saucy; urgency=low
horizon (1:2013.
* debian/ patches/ ubuntu_ local_settings. py: Set flexible openstack- dashboard. {postinst, postrm}: Add/remove horizon dashbard ownership. openstack- dashboard. conf: Run WSGIDaemonProcess as user patches/ ubuntu_ local_settings. py: Generate and load secret dashboard/ secret_ key.
default for ALLOWED_HOSTS that should be changed for production
deployments (LP: #1214982).
* Fix (LP: #1216019):
- debian/
user. Ensure /etc/openstack-
- debian/
horizon, set WSGIProcessGroup to horizon.
- debian/
key from /etc/openstack-
-- Adam Gandelman <email address hidden> Fri, 06 Sep 2013 10:33:18 -0700