Support general configuration file 83/2383/2
authorQiLiang <liangqi1@huawei.com>
Tue, 29 Sep 2015 06:50:12 +0000 (14:50 +0800)
committerqi liang <liangqi1@huawei.com>
Thu, 15 Oct 2015 01:17:39 +0000 (01:17 +0000)
commitcd809cb6b8bd4bd5002538d107aea1fb8adb0584
tree65b5b96f3f51628f519415e82c6b103fadff700a
parenta1378b700a9234e7fcbf77c7890030b306bc65ea
Support general configuration file

Use openstack library oslo_config for parsing configuration options
from the command line and configuration files.
Refer http://docs.openstack.org/developer/oslo.config/ or rally
source code for more info on oslo_config library usage.

This patch is initially for test result dispatcher configuration,
but it is very general to use.

Usage:
  0) install yardstick
  1) mkdir /etc/yardstick
  2) cp <repo_root_dir>/etc/yardstick/yardstick.conf.sample \
        /etc/yardstick/yardstick.conf
  3) edit /etc/yardstick/yardstick.conf
  4) run `yardstick task start xxx` cmd

JIRA: YARDSTICK-61

Change-Id: I01677ef6e9ab7c1975aa193799195e850da73478
Signed-off-by: QiLiang <liangqi1@huawei.com>
etc/yardstick/yardstick.conf.sample [new file with mode: 0644]
yardstick/benchmark/runners/base.py
yardstick/cmd/cli.py
yardstick/dispatcher/__init__.py
yardstick/dispatcher/file.py
yardstick/dispatcher/http.py