From 55e2e867e9a3f01b39f619251253470948e250d4 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Wed, 13 Jul 2016 01:54:49 +0800 Subject: Update README in fuel plugin Change-Id: Ice5e394ebdd734b10833b90e84427601fec173ad Signed-off-by: Guo Ruijing --- fuel-plugin/README.md | 20 ++++++++++---------- fuel-plugin/fuel_ping.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 fuel-plugin/fuel_ping.yaml (limited to 'fuel-plugin') diff --git a/fuel-plugin/README.md b/fuel-plugin/README.md index b5a954269..8c00d4b68 100644 --- a/fuel-plugin/README.md +++ b/fuel-plugin/README.md @@ -4,16 +4,13 @@ plugin-yardstick Plugin description Installs Yardstick on base-os node via a fuel plugin. - -To build: -1) install fuel plugin builder (fpb) - sudo apt-get install createrepo rpm dpkg-dev - easy_install pip - pip install fuel-plugin-builder - +1) install vagrant fuel plugin builder (fpb) + sudo apt-get install -y ruby-dev rubygems-integration python-pip rpm createrepo dpkg-dev + sudo gem install fpm + sudo pip install fuel-plugin-builder 2) build plugin - fpb --build - e.g.: fpb --build plugin-yardstick + fpb --build + e.g.: fpb --build yardstick/fuel-plugin 3) copy plugin rpm to fuel master e.g. scp plugin-yardstick-0.1-0.1.0-1.noarch.rpm @:~/ @@ -33,4 +30,7 @@ To build: 8) run Once deployed, SSH to deployed node. Find IP of yardstick node. SSH to yardstick node, Activate yardstick: - source yardstick_env/bin/activate + source /var/lib/yardstick.openrc + source /var/lib/yardstick/bin/activate + export EXTERNAL_NETWORK="admin_floating_net" + yardstick task start /opt/yardstick/fuel-plugin/fuel_ping.yaml diff --git a/fuel-plugin/fuel_ping.yaml b/fuel-plugin/fuel_ping.yaml new file mode 100644 index 000000000..e367e98d1 --- /dev/null +++ b/fuel-plugin/fuel_ping.yaml @@ -0,0 +1,43 @@ +--- +# Sample file copied from sampls/ping.yaml +# context part is modified according to fuel default env + +schema: "yardstick:task:0.1" + +scenarios: +- + type: Ping + options: + packetsize: 200 + host: athena.demo + target: ares.demo + + runner: + type: Duration + duration: 60 + interval: 1 + + sla: + max_rtt: 10 + action: monitor + +context: + name: demo + image: TestVM + flavor: m1.micro + user: cirros + + placement_groups: + pgrp1: + policy: "availability" + + servers: + athena: + floating_ip: true + placement: "pgrp1" + ares: + placement: "pgrp1" + + networks: + test: + cidr: '192.169.111.0/24' -- cgit 1.2.3-korg