]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove unused imports
authorZack Cerza <zack@cerza.org>
Thu, 26 Sep 2013 15:47:43 +0000 (10:47 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 26 Sep 2013 19:01:37 +0000 (14:01 -0500)
(cherry picked from commit 586817481119c4fc4a39f8804e7871a43491e01f)

teuthology/misc.py
teuthology/suite.py
teuthology/task/ceph_manager.py
teuthology/task/parallel.py
teuthology/task/radosgw-admin.py
teuthology/task/sequential.py
teuthology/task/sleep.py
teuthology/task/tasktest.py
teuthology/task/watch_notify_stress.py

index 6a75ae5ca9f4d9437ac3a63b067a54d10ee653d0..175720984e8ec1543134264a5be6fdd8f9c3a273 100644 (file)
@@ -14,7 +14,6 @@ import yaml
 import json
 
 from teuthology import safepath
-from teuthology import lockstatus
 from .orchestra import run
 from .config import config
 
index 17f8be3c83caad76d6ad003db56eb49632c8099a..3eb28d2c8efa5c52eb35b394676dc57879a292a3 100644 (file)
@@ -11,18 +11,16 @@ import os
 import re
 import subprocess
 import sys
-import tempfile
 from textwrap import dedent, fill
 import time
 import yaml
 
 from teuthology import misc
-from teuthology import safepath
 from teuthology import lock as lock
-from teuthology.config import config
 
 log = logging.getLogger(__name__)
 
+
 def main():
     parser = argparse.ArgumentParser(description="""
 Run a suite of ceph integration tests.
index fda9d8f3ca1716f7c9b8bc1762ae5e006e054f27..18f897641c0b53bdc3ad82341916d4e5157720b2 100644 (file)
@@ -1,7 +1,6 @@
 from cStringIO import StringIO
 import random
 import time
-import re
 import gevent
 import json
 import threading
index 6127e07c7832019d522ad123462d30ad4b6e9bce..e441e9e010da937b48b8057d0df6c8af47de001c 100644 (file)
@@ -1,13 +1,12 @@
 import sys
 import logging
-import contextlib
 
 from teuthology import run_tasks
 from teuthology import parallel
-from ..orchestra import run
 
 log = logging.getLogger(__name__)
 
+
 def task(ctx, config):
     """
     Run a group of tasks in parallel.
@@ -31,7 +30,7 @@ def task(ctx, config):
 
     Sequential task and Parallel tasks can be nested.
     """
-    
+
     log.info('starting parallel...')
     with parallel.parallel() as p:
         for entry in config:
index b1b6cdbf4e520e58f28be728c9ff4680c6a1e8cf..59aef938db8d15d47f39fdd98036d30c56fd1adb 100644 (file)
@@ -4,7 +4,6 @@
 #   grep '^ *# TESTCASE' | sed 's/^ *# TESTCASE //'
 #
 
-import contextlib
 import copy
 import json
 import logging
@@ -19,11 +18,11 @@ import boto.s3.acl
 import teuthology.task_util.rgw as rgw_utils
 
 from teuthology import misc as teuthology
-from teuthology import contextutil
 from teuthology.task_util.rgw import rgwadmin
 
 log = logging.getLogger(__name__)
 
+
 def successful_ops(out):
     summary = out['summary']
     if len(summary) == 0:
index 4f74359c6ffe7356a26d0d0b7f878f1fdd0032c9..73ab7fc7885d6111ec6284751f3faccb8a30acc1 100644 (file)
@@ -1,12 +1,11 @@
 import sys
 import logging
-import contextlib
 
 from teuthology import run_tasks
-from ..orchestra import run
 
 log = logging.getLogger(__name__)
 
+
 def task(ctx, config):
     """
     Sequentialize a group of tasks into one executable block
index 363634eaa0285c8e1d259a82ec968490b718c5e2..cb07a3f35d9075b71c0b9be1025b6d3bd76a972a 100644 (file)
@@ -1,11 +1,9 @@
 import logging
 import time
 
-from teuthology import misc as teuthology
-from ..orchestra import run
-
 log = logging.getLogger(__name__)
 
+
 def task(ctx, config):
     """
     Sleep for some number of seconds.
index abfb5415e2306adb43cbf32ae16e946abf1e77cb..4b4155832bcd453de9c0f32c53299fe4b3506591 100644 (file)
@@ -2,8 +2,6 @@ import logging
 import contextlib
 import time
 
-from ..orchestra import run
-
 log = logging.getLogger(__name__)
 
 @contextlib.contextmanager
@@ -14,7 +12,7 @@ def task(ctx, config):
     sequential task options.
 
     example:
-    
+
     tasks:
     - sequential:
         - tasktest:
@@ -30,7 +28,7 @@ def task(ctx, config):
     """
     try:
         delay = config.get('delay', 0)
-        id = config.get('id', 'UNKNOWN')    
+        id = config.get('id', 'UNKNOWN')
     except AttributeError:
         delay = 0
         id = 'UNKNOWN'
index 129ac1e555ff4bde9c19efabf4ec6a6153d0d61a..7aec56b284132f9fbac01bc8039ae56c3a62a375 100644 (file)
@@ -3,10 +3,10 @@ import logging
 import proc_thrasher
 
 from ..orchestra import run
-from teuthology import misc as teuthology
 
 log = logging.getLogger(__name__)
 
+
 @contextlib.contextmanager
 def task(ctx, config):
     """