Revert "blueprint <multi-process-api-service>"
This reverts commit e599636d09755f635604f64f17e9f56cac14575e The nova test runner is leaking processes after this change. Change-Id: Id74463d53f3b7cd749cba293619abef01499b90d
This commit is contained in:
committed by
James E. Blair
parent
5a8e6127b2
commit
4f59a5e7f1
@@ -63,7 +63,6 @@ LOG = logging.getLogger(__name__)
|
||||
ISO_TIME_FORMAT = "%Y-%m-%dT%H:%M:%S"
|
||||
PERFECT_TIME_FORMAT = "%Y-%m-%dT%H:%M:%S.%f"
|
||||
FLAGS = flags.FLAGS
|
||||
RESEED = True
|
||||
|
||||
FLAGS.register_opt(
|
||||
cfg.BoolOpt('disable_process_locking', default=False,
|
||||
@@ -291,13 +290,6 @@ def debug(arg):
|
||||
|
||||
|
||||
def generate_uid(topic, size=8):
|
||||
global RESEED
|
||||
if RESEED:
|
||||
random.seed("%d%s%s" % (os.getpid(),
|
||||
socket.gethostname(),
|
||||
time.time()))
|
||||
RESEED = False
|
||||
|
||||
characters = '01234567890abcdefghijklmnopqrstuvwxyz'
|
||||
choices = [random.choice(characters) for _x in xrange(size)]
|
||||
return '%s-%s' % (topic, ''.join(choices))
|
||||
|
||||
Reference in New Issue
Block a user