Activity log for bug #1216019

Date Who What changed Old value New value Message
2013-08-23 16:34:14 Ante Karamatić bug added bug
2013-08-23 16:34:24 Ante Karamatić nominated for series Ubuntu Saucy
2013-08-23 16:34:43 Ante Karamatić description /etc/openstack-dashboard/local_settings.py defines Horizon's SECRET_KEY as: SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) since LOCAL_PATH is '/usr/share/openstack-dashboard/openstack_dashboard/local', it tries to write a file in that directory. This results in an error when running Horizon: ... [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 92, in <module> [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/utils/secret_key.py", line 55, in generate_or_read_from_file [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/python2.7/dist-packages/lockfile.py", line 223, in __enter__ [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/python2.7/dist-packages/lockfile.py", line 239, in acquire [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/openstack-dashboard/openstack_dashboard/local/xyz.MainThread-13731 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_key.generate_or_read_from_file('/tmp/.secret_key_store') /etc/openstack-dashboard/local_settings.py defines Horizon's SECRET_KEY as: SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) since LOCAL_PATH is '/usr/share/openstack-dashboard/openstack_dashboard/local', it tries to write a file in that directory. This results in an error when running Horizon: ... [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 92,  in <module> [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) [Fri Aug 23 12:24:34 2013] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/utils/secret_key.py", line 55, in generate_or_read_from_file [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/python2.7/dist-packages/lockfile.py", line 223, in __enter__ [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/python2.7/dist-packages/lockfile.py", line 239, in acquire [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/openstack-dashboard/openstack_dashboard/local/xyz.MainThread-13731 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_key.generate_or_read_from_file('/tmp/.secret_key_store') This problem exists only in Saucy.
2013-08-28 15:12:33 Adam Gandelman bug task added horizon (Ubuntu Saucy)
2013-08-28 15:23:10 Adam Gandelman bug added subscriber Adam Gandelman
2013-08-28 15:53:49 Adam Gandelman horizon (Ubuntu Saucy): status New Confirmed
2013-09-03 16:10:17 James Page horizon (Ubuntu Saucy): importance Undecided High
2013-09-03 16:11:17 James Page horizon (Ubuntu Saucy): status Confirmed Triaged
2013-09-05 21:17:58 Launchpad Janitor branch linked lp:~gandelman-a/ubuntu/saucy/horizon/fixes
2013-09-06 17:53:18 Launchpad Janitor branch linked lp:ubuntu/saucy-proposed/horizon
2013-09-06 17:56:39 Launchpad Janitor horizon (Ubuntu Saucy): status Triaged Fix Released