This makes a run with --lock hang when connecting, for some
reason. E.g.,
$ teuthology -v a.yaml --lock
...
INFO:teuthology.task.internal:Opening connections...
DEBUG:teuthology.task.internal:connecting to ubuntu@plana06.front.sepia.ceph.com
<hangs>
No clue what is going on here, but this fixes it!
Signed-off-by: Sage Weil <sage@inktank.com>
import yaml
import StringIO
import contextlib
-import logging
import sys
from traceback import format_tb
def set_up_logging(ctx):
+ import logging
+
loglevel = logging.INFO
if ctx.verbose:
loglevel = logging.DEBUG
def install_except_hook():
def log_exception(exception_class, exception, traceback):
+ import logging
+
logging.critical(''.join(format_tb(traceback)))
if not exception.message:
logging.critical(exception_class.__name__)
monkey.patch_all(dns=False)
from .orchestra import monkey
monkey.patch_all()
+ import logging
ctx = parse_args()
set_up_logging(ctx)