Add iptables-based active/standby scenario test
This patch adds a tempest scenario test for active/standby topology.
This scenario takes a similar approach to scenario proposed in Change-Id
Ibcd5552a67cea650edc72bfaa986357267ca2407 with the difference that it
does not rely on amphora stats API. Instead, it uses iptables to log VIP
traffic and make assertions based on logging.
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: I24a6fc3387166ec6cdbd57a5ca9f63743748ec68
diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml
index 8c8ac73..7548504 100644
--- a/zuul.d/jobs.yaml
+++ b/zuul.d/jobs.yaml
@@ -393,3 +393,66 @@
- job:
name: octavia-v2-dsvm-scenario-centos-7
parent: octavia-v2-dsvm-py2-scenario-centos-7
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-scenario
+ parent: octavia-dsvm-live-base
+ pre-run: playbooks/act_stby_iptables/pre.yaml
+ vars:
+ devstack_localrc:
+ OCTAVIA_USE_PREGENERATED_SSH_KEY: True
+ OCTAVIA_PREGENERATED_SSH_KEY_PATH: /tmp/octavia_ssh_key
+ devstack_local_conf:
+ post-config:
+ $OCTAVIA_CONF:
+ api_settings:
+ api_v1_enabled: False
+ controller_worker:
+ loadbalancer_topology: ACTIVE_STANDBY
+ task_flow:
+ engine: parallel
+ devstack_local_conf:
+ test-config:
+ "$TEMPEST_CONFIG":
+ load_balancer:
+ check_timeout: 180
+ tempest_test_regex: ^octavia_tempest_plugin.tests.act_stdby_scenario.v2.test_active_standby_iptables
+ tox_envlist: all
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-py2-scenario
+ parent: octavia-v2-act-stdby-dsvm-scenario
+ vars:
+ devstack_localrc:
+ USE_PYTHON3: False
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-py2-scenario-centos-7
+ parent: octavia-v2-act-stdby-dsvm-py2-scenario
+ nodeset: devstack-single-node-centos-7
+ vars:
+ devstack_localrc:
+ USE_PYTHON3: False
+ OCTAVIA_AMP_BASE_OS: centos
+ OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID: 7
+ OCTAVIA_AMP_IMAGE_SIZE: 3
+ devstack_local_conf:
+ test-config:
+ "$TEMPEST_CONFIG":
+ load_balancer:
+ amphora_ssh_user: centos
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-scenario-stable-stein
+ parent: octavia-v2-act-stdby-dsvm-scenario
+ override-checkout: stable/stein
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-py2-scenario-stable-rocky
+ parent: octavia-v2-act-stdby-dsvm-py2-scenario
+ override-checkout: stable/rocky
+
+- job:
+ name: octavia-v2-act-stdby-dsvm-py2-scenario-stable-queens
+ parent: octavia-v2-act-stdby-dsvm-py2-scenario
+ override-checkout: stable/queens