summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fuel-plugin/README.md20
-rw-r--r--fuel-plugin/fuel_ping.yaml43
2 files changed, 53 insertions, 10 deletions
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 <plugin-name>
- e.g.: fpb --build plugin-yardstick
+ fpb --build <plugin-dir>
+ 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 <user>@<server-name>:~/
@@ -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'