bugfix: remove pod_name in host and unify host parameter 61/44961/2
authorrexlee8776 <limingjiang@huawei.com>
Fri, 13 Oct 2017 02:25:04 +0000 (02:25 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Fri, 13 Oct 2017 02:38:46 +0000 (02:38 +0000)
for none-ha test case, use host to be parameter
for ha test case, use attack_host as parameter

Change-Id: I053df00adab17814dd54584a1ae081548163dc68
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
16 files changed:
tests/opnfv/test_cases/opnfv_yardstick_tc019.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc043.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc045.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc046.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc047.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc048.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc049.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc050.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc051.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc052.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc053.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc055.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc063.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc073.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc075.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml

index 046d517..852424d 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Sample test case for the HA of controller node Openstack service.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "nova-api"
-      host: node1
+      host: {{attack_host}}
 
     wait_time: 10
     monitors:
@@ -33,14 +34,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "nova-api"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Iteration
index b14fc45..ea4fc3b 100644 (file)
@@ -13,16 +13,16 @@ description: >
     Yardstick TC043 config file;
     Measure latency between NFVI nodes using ping.
 
-{% set host = host or "node1.LF" %}
-{% set target = target or "node2.LF" %}
+{% set host = host or "node1" %}
+{% set target = target or "node2" %}
 {% set file = file or '/etc/yardstick/pod.yaml' %}
 scenarios:
 -
   type: Ping
   options:
     packetsize: 100
-  host: {{host}}
-  target: {{target}}
+  host: {{host}}.LF
+  target: {{target}}.LF
 
   runner:
     type: Duration
index dfe44ed..f9d9dde 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Test case for TC045 :Control node Openstack service down - neutron server.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "neutron-server"
-      host: node1
+      host: {{attack_host}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -32,14 +33,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "neutron-server"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Duration
index 1d55326..1294899 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Test case for TC046 :Control node Openstack service down - keystone.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "keystone"
-      host: node1
+      host: {{attack_host}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -32,14 +33,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "keystone"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Duration
index 33bc5cd..4a0b65b 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Test case for TC047 :Control node Openstack service down - glance api.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "glance-api"
-      host: node1
+      host: {{attack_host}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -32,14 +33,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "glance-api"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Duration
index a13afe3..a1629c6 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Test case for TC048 :Control node Openstack service down - cinder api.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "cinder-api"
-      host: node1
+      host: {{attack_host}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -32,14 +33,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "cinder-api"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Duration
index 394b987..7b8383e 100644 (file)
@@ -13,6 +13,7 @@ description: >
     Test case for TC049 :Control node Openstack service down - swift proxy.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
 -
@@ -21,7 +22,7 @@ scenarios:
     attackers:
     - fault_type: "kill-process"
       process_name: "swift-proxy"
-      host: node1
+      host: {{attack_host}}
 
     monitors:
     - monitor_type: "openstack-cmd"
@@ -32,14 +33,14 @@ scenarios:
         max_outage_time: 5
     - monitor_type: "process"
       process_name: "swift-proxy"
-      host: node1
+      host: {{attack_host}}
       monitor_time: 30
       monitor_number: 3
       sla:
         max_recover_time: 30
 
   nodes:
-    node1: node1.LF
+    {{attack_host}}: {{attack_host}}.LF
 
   runner:
     type: Duration
index 303dd42..b765feb 100644 (file)
@@ -14,6 +14,7 @@ description: >
     This test case is written by new scenario-based HA testing framework.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 {% set external_net = external_net or 'br-ex' %}
 {% set management_net = management_net or 'br-mgmt' %}
 {% set storage_net = storage_net or 'br-storage' %}
@@ -26,7 +27,7 @@ scenarios:
       attackers:
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "close-br-public"
           attack_key: "close-interface"
           action_parameter:
@@ -36,7 +37,7 @@ scenarios:
 
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "close-br-mgmt"
           attack_key: "close-interface"
           action_parameter:
@@ -46,7 +47,7 @@ scenarios:
 
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "close-br-storage"
           attack_key: "close-interface"
           action_parameter:
@@ -56,7 +57,7 @@ scenarios:
 
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "close-br-private"
           attack_key: "close-interface"
           action_parameter:
@@ -145,7 +146,7 @@ scenarios:
 
 
     nodes:
-      node1: node1.LF
+      {{attack_host}}: {{attack_host}}.LF
     runner:
       type: Duration
       duration: 1
index 98a08b7..aade1ae 100644 (file)
@@ -14,6 +14,7 @@ description: >
     This test case is written by new scenario-based HA testing framework.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
   -
@@ -22,7 +23,7 @@ scenarios:
       attackers:
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "stress-cpu"
           attack_key: "stress-cpu"
 
@@ -92,7 +93,7 @@ scenarios:
 
 
     nodes:
-      node1: node1.LF
+      {{attack_host}}: {{attack_host}}.LF
     runner:
       type: Duration
       duration: 1
index 75835eb..62cabd1 100644 (file)
@@ -14,6 +14,7 @@ description: >
     This test case is written by new scenario-based HA testing framework.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
   -
@@ -22,7 +23,7 @@ scenarios:
       attackers:
         -
           fault_type: "general-attacker"
-          host: node1
+          host: {{attack_host}}
           key: "block-io"
           attack_key: "block-io"
 
@@ -76,7 +77,7 @@ scenarios:
           index: 4
 
     nodes:
-      node1: node1.LF
+      {{attack_host}}: {{attack_host}}.LF
     runner:
       type: Duration
       duration: 1
index f987e2b..64c67c0 100644 (file)
@@ -14,6 +14,7 @@ description: >
     This test case is written by new scenario-based HA testing framework.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
 
 scenarios:
   -
@@ -22,7 +23,7 @@ scenarios:
       attackers:
         -
           fault_type: "kill-process"
-          host: node1
+          host: {{attack_host}}
           key: "kill-process"
           process_name: "haproxy"
 
@@ -31,7 +32,7 @@ scenarios:
           monitor_type: "process"
           key: "service-status"
           process_name: "haproxy"
-          host: node1
+          host: {{attack_host}}
           monitor_time: 30
           monitor_number: 3
           sla:
@@ -61,7 +62,7 @@ scenarios:
           index: 3
 
     nodes:
-      node1: node1.LF
+      {{attack_host}}: {{attack_host}}.LF
     runner:
       type: Duration
       duration: 1
index 10a7a71..8905b9c 100644 (file)
@@ -19,14 +19,14 @@ description: >
     cache size per CPU, total cache size;
     HT (Hyper-Thread) support status, 1 for open, 0 for close.
 
-{% set host = host or "node5.yardstick-TC055" %}
 {% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set host = host or "node5" %}
 scenarios:
 -
   type: ComputeCapacity
 
   nodes:
-    host: {{host}}
+    host: {{host}}.yardstick-TC055
 
   runner:
     type: Iteration
index 254c214..50d0c40 100644 (file)
@@ -14,7 +14,7 @@ description: >
     Measure disk size, block size and disk utilization using fdisk and iostat.
 
 {% set file = file or '/etc/yardstick/pod.yaml' %}
-{% set node = node or "node5" %}
+{% set host = host or "node5" %}
 
 scenarios:
 -
@@ -22,7 +22,7 @@ scenarios:
   options:
     test_type: "disk_size"
 
-  host: {{node}}.yardstick-TC063
+  host: {{host}}.yardstick-TC063
 
   runner:
     type: Iteration
index fb40257..54282cb 100755 (executable)
@@ -18,8 +18,8 @@ description: >
     In req/rsp test, TCP_RR TCP_CRR UDP_RR can be used;
     req_rsp_size is option of req/rsp test;
 
-{% set host = host or "node1.LF" %}
-{% set target = target or "node2.LF" %}
+{% set host = host or "node1" %}
+{% set target = target or "node2" %}
 {% set file = file or '/etc/yardstick/pod.yaml' %}
 scenarios:
 -
@@ -29,8 +29,8 @@ scenarios:
     send_msg_size: 1024
     duration: 20
 
-  host: {{host}}
-  target: {{target}}
+  host: {{host}}.LF
+  target: {{target}}.LF
 
   runner:
     type: Iteration
index d19b3c4..4954249 100644 (file)
@@ -14,13 +14,13 @@ description: >
     Measure network capacity and scale.
     Measure number of connections, number of frames received;
 
-{% set host = host or "node1.LF" %}
+{% set host = host or "node1" %}
 {% set file = file or '/etc/yardstick/pod.yaml' %}
 
 scenarios:
 -
   type: NetworkCapacity
-  host: {{host}}
+  host: {{host}}.LF
 
   runner:
     type: Iteration
index 9425612..d20045b 100644 (file)
@@ -14,6 +14,7 @@ description: >
     Measure CPU performance using SPEC CPU2006;
 
 {% set file = file or "/etc/yardstick/pod.yaml" %}
+{% set host = host or 'node1' %}
 
 scenarios:
 -
@@ -26,7 +27,7 @@ scenarios:
       runspec_size: ref
       runspec_rate: 1
 
-  host: node1.yardstick-TC078
+  host: {{host}}.yardstick-TC078
 
   runner:
     type: Iteration