← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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.

** Affects: horizon
     Importance: Undecided
     Assignee: Maria Nita (maria-nita-dn)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => Maria Nita (maria-nita-dn)

-- 
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):
  New

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


Follow ups

References