Fix configuration error in TC025 17/36217/1
authortjuyinkanglin <14_ykl@tongji.edu.cn>
Tue, 23 May 2017 06:05:14 +0000 (14:05 +0800)
committerJing Lu <lvjing5@huawei.com>
Tue, 20 Jun 2017 04:09:31 +0000 (04:09 +0000)
JIRA: YARDSTICK-647

Change-Id: Idc2a87d20a631c37f151cc945de155ef8855e9c3
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
(cherry picked from commit c076c8372f32a88059783fbc993ab2ebb8967e2e)

etc/yardstick/nodes/pod.yaml.ipmi.sample [new file with mode: 0644]
tests/opnfv/test_cases/opnfv_yardstick_tc025.yaml

diff --git a/etc/yardstick/nodes/pod.yaml.ipmi.sample b/etc/yardstick/nodes/pod.yaml.ipmi.sample
new file mode 100644 (file)
index 0000000..6253c79
--- /dev/null
@@ -0,0 +1,50 @@
+##############################################################################
+# Copyright (c) 2017 14_ykl@tongji.edu.cn and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+# sample config file about the POD information, including the
+# name/IP/user/ssh key of Bare Metal Controllers/Computes/Jumperserver
+# and the ipmi information of 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
+# password: the password for login
+# ipmi_ip: the node's IPMI IP address
+# ipmi_user: the username for ipmi control
+# ipmi_password: the password for ipmi control
+
+nodes:
+-
+    name: node0
+    role: Jumpserver
+    ip: 10.1.0.2
+    user: root
+    password: root
+
+-
+    name: node1
+    role: Controller
+    ip: 10.1.0.50
+    user: root
+    password: root
+    ipmi_ip: 192.168.10.10
+    ipmi_user: root
+    ipmi_password: root
+
+-
+    name: node2
+    role: Compute
+    ip: 10.1.0.51
+    user: root
+    password: root
+    ipmi_ip: 192.168.10.11
+    ipmi_user: root
+    ipmi_password: root
\ No newline at end of file
index 4433958..c4ee237 100644 (file)
 schema: "yardstick:task:0.1"
 description: >
     Sample test case for the HA of OpenStack Controll Node abnormally shutdown.
+    In order to power on the shutdown node after testing, the jumphost is
+    required to install ipmitool. Ipmi jumphost info and each nodes' ipmi ip,
+    username, password are needed in pod file (There is a sample pod file in
+    "etc/yardstick/nodes/pod.yaml.ipmi.sample").
 
 {% set file = file or 'etc/yardstick/nodes/fuel_virtual/pod.yaml' %}
+{% set jumphost = jumphost or 'node0' %}
 
 scenarios:
 -
   type: ServiceHA
   options:
     attackers:
-    - fault_type: "host-shutdown"
+    - fault_type: "bare-metal-down"
       host: node1
+      jump_host: {{jumphost}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -42,6 +48,7 @@ scenarios:
 
   nodes:
     node1: node1.LF
+    node0: node0.LF
 
   runner:
     type: Iteration