6 Commits

Author SHA1 Message Date
Roman Safronov
048c752ca3 Fix east_west capture for vlan tenant
With vlan tenant we have mac-mapping configured in ovs db
for compute nodes. These MAC values should be used when
filtering relevant traffic for east_west communication.

Also, introduced separate tunnel_interface config parameter
to define an appropriate value when capturing traffic on
a normal node and on ovs_pod.

Change-Id: Ibef4498604bd9fff7ab537ed276ce59e8a052cd6
2024-08-06 16:53:55 +03:00
Roman Safronov
d95aa56920 Use neutron conf path as a constant
Path to neutron config usually is the same for a certain type of
environment. This patch makes the path to be a constant value
selected automatically according to environment type and thus
it's no longer required from user to specify/override it.

Change-Id: If85f38d40f29a2dfd1a72eacd97e9dd5fcbdc004
2024-05-22 01:55:27 +03:00
Roman Safronov
0222b13376 Use max port per router as a constant
The patch [1] set value of ovn_max_controller_gw_ports_per_router
to 1 which is not alighed with default ovn config.
This caused AZ tests behave not correctly.
We can use the value as a constant set to 5 which is alighed
with default ovn setting.

[1] https://review.opendev.org/c/x/whitebox-neutron-tempest-plugin/+/912348

Change-Id: I51a9a7bf1bc9ad56fa80b735401fbe210fff879a
2024-05-06 17:24:58 +03:00
Roman Safronov
43b59d0e0b Fix DVR tests that recreate fip and live migrate vm
This patch adds necessary adjustments to DVR tests that recreate
floating ip and the ones that test OVN DVR after VM live migration
in order to allow them to run properly on a podified
environment.
Fixed tests list:
test_validate_floatingip_compute_ingress_delete_fip_restart_instance
test_dvr_create_delete_fip_restart_instance
test_validate_dvr_connectivity_live_migration_basic
test_validate_dvr_connectivity_live_migration_different_networks

Change-Id: I5f75784ca879161f486d778b4a39c4d0410aad44
2024-04-22 16:37:57 +03:00
Maor Blaustein
6832c4dd4b Migrate metadata rate limiting tests
Main changes from original tests:
- Made alternative 'is_service_on_node' base method instead
  of helper plugin 'get_nodes_info_by_name' use.
- Configuration restored in between tests using permissive values due
  to 'oc patch' inability to remove configuration in podified.
- Feature disabled using configuration when all tests finished
  for same reason of inability to remove configuration.
- Podman inspect health/healthcheck json output inconsistent
  in podified/tripleo envs, also not supported in devstack,
  systemctl is-active used instead.
- Many methods made to use on '_set_rate_limiting_config',
  difference between podified/devstack handled by method calls there.
- Metadata configuration file according to OSP type (devstack/other).
- Adjust migrated imports and configuration.
- Replaced test UUIDs with unique ones.

Change-Id: Ia17be6044eb88b00568f469c8ff5ebb98dba6559
2024-04-09 23:29:22 +03:00
Roman Safronov
fa2d7457a8 Add extra dhcp options tests
Tests moved from downstream plugin with minimal adjustments.
These tests require nmcli inside the server so advanced image
changed to rocky-9 cloud image. Other alternative, e.g. centos-9
does not have a default user and requires additional customization
for setting the user.
Additionally, moved utils.py and constants.py.
From config.py and base.py only relevant subset of code moved.

Change-Id: I6b538c13a15e94d072091b3218b2cd48ff20a70c
2023-12-21 16:21:32 +02:00