diff options
author | Leo wang <grakiss.wanglei@huawei.com> | 2017-09-28 07:36:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-28 07:36:57 +0000 |
commit | 465f738554c1c401707036a055577b35f7c06dca (patch) | |
tree | 4aa49e53170649fefc6bdaf39cfbf7847057a138 /dovetail/run.py | |
parent | 63c2e2aa4b8d86349a767f611123ceafc19fa6d6 (diff) | |
parent | 98ff39a0bb75e2ae07b4af77ddb127ffaeb4ce5b (diff) |
Merge "Make Yardstick log level can be set by CLI"
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-x | dovetail/run.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dovetail/run.py b/dovetail/run.py index 1133b864..c7496475 100755 --- a/dovetail/run.py +++ b/dovetail/run.py @@ -239,6 +239,14 @@ def env_init(logger): dt_utils.source_env(openrc) +def check_hosts_file(logger): + hosts_file = os.path.join(dt_cfg.dovetail_config['config_dir'], + 'hosts.yaml') + if not os.path.isfile(hosts_file): + logger.warn("There is no hosts file {}, may be some issues with " + "domain name resolution.".format(hosts_file)) + + def main(*args, **kwargs): """Dovetail compliance test entry!""" build_tag = "daily-master-%s" % str(uuid.uuid1()) @@ -259,6 +267,7 @@ def main(*args, **kwargs): copy_patch_files(logger) dt_utils.check_docker_version(logger) validate_input(kwargs, dt_cfg.dovetail_config['validate_input'], logger) + check_hosts_file(logger) configs = filter_config(kwargs, logger) if configs is not None: |