← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1291041] Re: Add timeout when generating a secret key from file

 

[Expired for OpenStack Dashboard (Horizon) because there has been no
activity for 60 days.]

** Changed in: horizon
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1291041

Title:
  Add timeout when generating a secret key from file

Status in OpenStack Dashboard (Horizon):
  Expired

Bug description:
  In horizon/utils/secret_key.py file we generate a secret key for Django settings,
  from a file or randomly. But for some systems the method just hangs.

  For example this affects users who want to run tests. The tests just hang at some point,
  because we call the method inside the TestCase SecretKeyTests - test_generate_or_read_key_from_file

  We can add a timeout like in this example http://pythonhosted.org//lockfile/lockfile.html#filelock-objects
  and generate a random key if we can't read/interact from/with the file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1291041/+subscriptions


References