Support NodeContext type 81/2781/4
authorQiLiang <liangqi1@huawei.com>
Sun, 25 Oct 2015 14:47:37 +0000 (14:47 +0000)
committerQiLiang <liangqi1@huawei.com>
Sun, 1 Nov 2015 12:12:31 +0000 (12:12 +0000)
commitb1eb58006197c7a41aa5f1e2c2db465bb2f0dbc3
tree8b62695e6c2323990c74a803d0ae9b2a2b2e08e1
parent05d5ac8d6d5e9bd1e6b69afbd764000aeb4a030e
Support NodeContext type

Initial NodeContext implementation to support BareMetal,
Controller, Compute scenarios.

Usage:

0) install yardstick
1) mkdir -p /etc/yardstick/nodes
2) cp <yardstick_repo>/etc/yardstick/nodes/pod.yaml.sample \
       /etc/yardstick/nodes/pod.yaml
3) edit /etc/yardstick/nodes/pod.yaml (make show ip, username,
       ssh key are configured correctly)
4) yardstick -d task start \
       <yardstick_repo>/samples/ping-node-context.yaml
5) cat /tmp/yardstick.out

Design etherpad link:
    https://etherpad.opnfv.org/p/yardstick_framework

JIRA: YARDSTICK-169

Change-Id: I3f6ade8243e68d88326f23ed213edb32c638ed32
Signed-off-by: QiLiang <liangqi1@huawei.com>
etc/yardstick/nodes/pod.yaml.sample [new file with mode: 0644]
samples/ping-node-context.yaml [new file with mode: 0644]
tests/unit/benchmark/contexts/nodes_duplicate_sample.yaml [new file with mode: 0644]
tests/unit/benchmark/contexts/nodes_sample.yaml [new file with mode: 0644]
tests/unit/benchmark/contexts/test_node.py [new file with mode: 0644]
yardstick/benchmark/contexts/node.py [new file with mode: 0644]