modify sc lab pod yaml as real configure 63/6963/3
authorkubi <jean.gaoliang@huawei.com>
Sat, 16 Jan 2016 10:31:42 +0000 (18:31 +0800)
committerkubi <jean.gaoliang@huawei.com>
Sat, 16 Jan 2016 13:06:58 +0000 (13:06 +0000)
Change-Id: I6587794b7206cb3d5f13b6c448670d1c97ecd596
Signed-off-by: kubi <jean.gaoliang@huawei.com>
etc/yardstick/nodes/compass_sclab_physical/pod.yaml
etc/yardstick/nodes/compass_sclab_virtual/pod.yaml [new file with mode: 0644]
samples/ping6.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc027.yaml
yardstick/benchmark/scenarios/networking/ping6.py
yardstick/benchmark/scenarios/networking/ping6_benchmark.bash
yardstick/benchmark/scenarios/networking/ping6_find_host.bash
yardstick/benchmark/scenarios/networking/ping6_setup.bash

index e062988..01881f7 100644 (file)
 # key_filename:the path of the private key file for login
 
 nodes:
--
-    name: node1
-    role: Controller
-    ip: 10.1.0.50
-    user: root
-    password: root
 -
     name: node2
     role: Controller
-    ip: 10.1.0.51
+    ip: 192.168.10.10
     user: root
     password: root
 -
     name: node3
     role: Controller
-    ip: 10.1.0.52
+    ip: 192.168.10.11
     user: root
     password: root
 -
     name: node4
     role: Compute
-    ip: 10.1.0.53
+    ip: 192.168.10.12
     user: root
     password: root
 -
     name: node5
     role: Compute
-    ip: 10.1.0.54
+    ip: 192.168.10.13
     user: root
     password: root
diff --git a/etc/yardstick/nodes/compass_sclab_virtual/pod.yaml b/etc/yardstick/nodes/compass_sclab_virtual/pod.yaml
new file mode 100644 (file)
index 0000000..b5f5ff7
--- /dev/null
@@ -0,0 +1,42 @@
+---
+# sample config file about the POD information, including the
+# name/IP/user/ssh key  and Controllers/Computes
+#
+# The options of this config file include:
+# name: the name of this node
+# role: node's role, support role: Master/Controller/Comupte/BareMetal
+# ip: the node's IP address
+# user: the username for login
+# key_filename:the path of the private key file for login
+
+nodes:
+-
+    name: node1
+    role: Controller
+    ip: 10.1.0.50
+    user: root
+    password: root
+-
+    name: node2
+    role: Controller
+    ip: 10.1.0.51
+    user: root
+    password: root
+-
+    name: node3
+    role: Controller
+    ip: 10.1.0.52
+    user: root
+    password: root
+-
+    name: node4
+    role: Compute
+    ip: 10.1.0.53
+    user: root
+    password: root
+-
+    name: node5
+    role: Compute
+    ip: 10.1.0.54
+    user: root
+    password: root
index 773d1be..6f2c93d 100644 (file)
@@ -28,6 +28,6 @@ scenarios:
 context:
   type: Node
   name: IPV6
-  file: /root/yardstick/etc/yardstick/nodes/compass_sclab_physical/pod.yaml
+  file: /root/yardstick/etc/yardstick/nodes/compass_sclab_virtual/pod.yaml
 
 
index badf260..e360b4b 100644 (file)
@@ -9,9 +9,8 @@ scenarios:
   type: Ping6
   options:
     packetsize: 200
-    host: host1,host2,host3,host4,host5
+    host: host2,host3,host4,host5
   nodes:
-    host1: node1.IPV6
     host2: node2.IPV6
     host3: node3.IPV6
     host4: node4.IPV6
index 067b889..5364cdf 100644 (file)
@@ -116,7 +116,13 @@ class Ping6(base.Scenario):  # pragma: no cover
         status, stdout, stderr = self.client.execute(cmd)
         host_name = stdout.strip()
         print host_name
+        self.client.run("cat ~/vRouterKey",
+                        stdout=open("/tmp/vRouterKey", "w"))
         self._ssh_host(host_name)
+
+        self.client.run("cat > ~/vRouterKey",
+                        stdin=open("/tmp/vRouterKey", "rb"))
+
         self.client.run("cat > ~/ping6.sh",
                         stdin=open(self.ping6_script, "rb"))
         cmd = "sudo bash ping6.sh"
index bd02be7..16cb0f0 100644 (file)
@@ -23,10 +23,10 @@ wait_vm_ok() {
         if [ $retry -ge 40 ];
         then
             echo "vm ssh  start timeout !!!"
-           exit 0
+            exit 0
         fi
     done
 }
 wait_vm_ok
-sleep 600
-sudo ip netns exec qdhcp-$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i vRouterKey fedora@20.0.0.4 "ping6 -c 1 2001:db8:0:1::1 | grep ttl | awk -F [=\ ] '{printf \$10}'"
+sleep 360
+sudo ip netns exec qdhcp-$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i vRouterKey fedora@20.0.0.4 "ping6 -c 1 2001:db8:0:1::1 | grep ttl | awk -F [=\ ] '{printf \$10}'"
\ No newline at end of file
index a1d50d4..85c4b38 100644 (file)
@@ -11,5 +11,4 @@
 
 source /opt/admin-openrc.sh
 host_num=$(neutron dhcp-agent-list-hosting-net ipv4-int-network1 | grep True | awk -F [=\ ] '{printf $4}') > /tmp/ipv6.log
-scp vRouterKey $host_num:~
 echo $host_num
\ No newline at end of file
index ddb6c1c..658e1d3 100644 (file)
@@ -12,7 +12,8 @@
 
 # download and create image
 source /opt/admin-openrc.sh
-wget https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2
+wget https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2 >/dev/null 2>&1
+
 glance image-create --name 'Fedora22' --disk-format qcow2 \
 --container-format bare --file ./Fedora-Cloud-Base-22-20150521.x86_64.qcow2