Update README in fuel plugin 07/16807/1
authorGuo Ruijing <ruijing.guo@intel.com>
Tue, 12 Jul 2016 17:54:49 +0000 (01:54 +0800)
committerGuo Ruijing <ruijing.guo@intel.com>
Tue, 12 Jul 2016 19:46:00 +0000 (03:46 +0800)
Change-Id: Ice5e394ebdd734b10833b90e84427601fec173ad
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
fuel-plugin/README.md
fuel-plugin/fuel_ping.yaml [new file with mode: 0644]

index b5a9542..8c00d4b 100644 (file)
@@ -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 (file)
index 0000000..e367e98
--- /dev/null
@@ -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'