Add Rally scenarios for testing floating IP 25/63325/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Tue, 2 Oct 2018 13:27:51 +0000 (16:27 +0300)
committerJuha Kosonen <juha.kosonen@nokia.com>
Tue, 9 Oct 2018 08:27:17 +0000 (08:27 +0000)
rally_sanity:
  NovaServers.boot_server_associate_and_dissociate_floating_ip

rally_full:
  NovaServers.boot_server_associate_and_dissociate_floating_ip
  NovaServers.boot_and_associate_floating_ip

Change-Id: I31b7693828920bae92ff4ac8e7b0fde86e958cb5
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit 6efcc4fe7456663445e9fbda54bba3239288ad73)

functest/opnfv_tests/openstack/rally/scenario/full/opnfv-nova.yaml
functest/opnfv_tests/openstack/rally/scenario/sanity/opnfv-nova.yaml

index 512448f..0e65ac1 100644 (file)
       sla:
         {{ no_failures_sla() }}
 
+  NovaServers.boot_server_associate_and_dissociate_floating_ip:
+    -
+      args:
+        {{ vm_params(image_name, flavor_name) }}
+        create_floating_ip_args:
+          ext_network: {{ floating_network }}
+        nics:
+          - net-id: {{ netid }}
+      context:
+        {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+        network: {}
+        {% endcall %}
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      sla:
+        {{ no_failures_sla() }}
+
+  NovaServers.boot_and_associate_floating_ip:
+    -
+      args:
+        {{ vm_params(image_name, flavor_name) }}
+        create_floating_ip_args:
+          ext_network: {{ floating_network }}
+        nics:
+          - net-id: {{ netid }}
+      context:
+        {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+        network: {}
+        {% endcall %}
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      sla:
+        {{ no_failures_sla() }}
+
   NovaServerGroups.create_and_delete_server_group:
     -
       args:
index 801938c..7dd252d 100644 (file)
       sla:
         {{ no_failures_sla() }}
 
+  NovaServers.boot_server_associate_and_dissociate_floating_ip:
+    -
+      args:
+        {{ vm_params(image_name, flavor_name) }}
+        create_floating_ip_args:
+          ext_network: {{ floating_network }}
+        nics:
+          - net-id: {{ netid }}
+      context:
+        {% call user_context(tenants_amount, users_amount, use_existing_users) %}
+        network: {}
+        {% endcall %}
+      runner:
+        {{ constant_runner(concurrency=concurrency, times=iterations, is_smoke=smoke) }}
+      sla:
+        {{ no_failures_sla() }}
+
   NovaServerGroups.create_and_delete_server_group:
     -
       args: