monkey.patch_all(dns=False)
from .orchestra import monkey
monkey.patch_all()
+
+import logging
+logging.basicConfig(level=logging.INFO)
+log = logging.getLogger(__name__)
import MySQLdb
import yaml
+import teuthology
from teuthology.misc import read_config
log = logging.getLogger(__name__)
def main(args):
- loglevel = logging.INFO
if args.verbose:
- loglevel = logging.DEBUG
+ teuthology.log.setLevel(logging.DEBUG)
- logging.basicConfig(
- level=loglevel,
- )
log = logging.getLogger(__name__)
read_config(args)
import os
import time
+import teuthology
from .config import config
from . import lockstatus as ls
-from . import misc as teuthology
+from . import misc
log = logging.getLogger(__name__)
def lock_many(ctx, num, machinetype, user=None, description=None):
if user is None:
- user = teuthology.get_user()
+ user = misc.get_user()
success, content, status = ls.send_request(
'POST',
config.lock_server,
def lock_one(ctx, name, user=None, description=None):
if user is None:
- user = teuthology.get_user()
+ user = misc.get_user()
success, _, _ = ls.send_request(
'POST',
config.lock_server + '/' + name,
def unlock_one(ctx, name, user=None):
if user is None:
- user = teuthology.get_user()
+ user = misc.get_user()
success, _, _ = ls.send_request(
'DELETE',
config.lock_server + '/' + name + '?' +
def main(ctx):
- loglevel = logging.INFO
if ctx.verbose:
- loglevel = logging.DEBUG
-
- logging.basicConfig(
- level=loglevel,
- )
+ teuthology.log.setLevel(logging.DEBUG)
- teuthology.read_config(ctx)
+ misc.read_config(ctx)
ret = 0
user = ctx.owner
statuses = [status for status in statuses
if status['type'] == ctx.machine_type]
if not machines and ctx.owner is None and not ctx.all:
- ctx.owner = teuthology.get_user()
+ ctx.owner = misc.get_user()
if ctx.owner is not None:
statuses = [status for status in statuses
if status['locked_by'] == ctx.owner]
level=loglevel,
)
- teuthology.read_config(ctx)
+ misc.read_config(ctx)
machines = [canonicalize_hostname(m) for m in ctx.machines]
import time
import yaml
+import teuthology
from . import orchestra
from .orchestra import run
from .lock import list_locks
def main(ctx):
log = logging.getLogger(__name__)
- loglevel = logging.INFO
if ctx.verbose:
- loglevel = logging.DEBUG
-
- logging.basicConfig(
- level=loglevel,
- )
+ teuthology.log.setLevel(logging.DEBUG)
info = {}
if ctx.archive:
import urllib
import logging
+import teuthology
from teuthology.config import config
log = logging.getLogger(__name__)
-logging.basicConfig(level=logging.INFO)
def main(args):
if args.verbose:
- log.setLevel(logging.DEBUG)
+ teuthology.log.setLevel(logging.DEBUG)
archive_base = os.path.abspath(os.path.expanduser(args.archive))
reporter = ResultsReporter(archive_base, base_uri=args.server,
from textwrap import dedent
from textwrap import fill
+import teuthology
from teuthology import misc
from teuthology import suite
def main(args):
log = logging.getLogger(__name__)
- loglevel = logging.INFO
if args.verbose:
- loglevel = logging.DEBUG
-
- logging.basicConfig(
- level=loglevel,
- )
+ teuthology.log.setLevel(logging.DEBUG)
misc.read_config(args)
import logging
from traceback import format_tb
+import teuthology
from . import report
from .misc import get_distro
from .misc import get_user
def set_up_logging(ctx):
- loglevel = logging.INFO
if ctx.verbose:
- loglevel = logging.DEBUG
+ teuthology.log.setLevel(logging.DEBUG)
- logging.basicConfig(level=loglevel)
if ctx.archive is not None:
os.mkdir(ctx.archive)
import sys
import yaml
+import teuthology
from teuthology import lock as lock
log = logging.getLogger(__name__)
def main(args):
- loglevel = logging.INFO
if args.verbose:
- loglevel = logging.DEBUG
-
- logging.basicConfig(
- level=loglevel,
- )
+ teuthology.log.setLevel(logging.DEBUG)
base_arg = [
os.path.join(os.path.dirname(sys.argv[0]), 'teuthology-schedule'),