]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
A create_if_vm call was made more than once when a lock-many style lock
authorWarren Usui <warren.usui@inktank.com>
Thu, 5 Dec 2013 01:49:21 +0000 (17:49 -0800)
committerWarren Usui <warren.usui@inktank.com>
Thu, 5 Dec 2013 01:49:21 +0000 (17:49 -0800)
was performed.  This caused downburst to run twice, and the second
downburst fails as a result of the first downburst running.

Fixes: 6933
teuthology/task/internal.py

index f13f2012379bfb2f0892d41caea7982a9cc2cfa5..230971a2eb35b9becb2f9fa8622b4b15363b401d 100644 (file)
@@ -91,7 +91,7 @@ def lock_machines(ctx, config):
         if len(newly_locked) == how_many:
             vmlist = []
             for lmach in newly_locked:
-                if lock.create_if_vm(ctx, lmach):
+                if teuthology.is_vm(lmach):
                     vmlist.append(lmach)
             if vmlist:
                 log.info('Waiting for virtual machines to come up')