Commit Graph

73 Commits

Author SHA1 Message Date
Liam Young fe62f913fd Add tempest k8s scale test for remaining services 2023-03-08 13:52:01 +00:00
Bas de Bruijne feb667206b make provider-router name variable 2023-01-11 15:39:15 +00:00
Frode Nordahl 899f2b7cd2 Move hugepages/vfio helpers to common test utils
Update CPU topology flavor advice.

The example currently listed would create a two socket CPU with
only one NUMA node, which is a invalid configuration which leads
to undefined results.

Instead list two examples one with a single socket for simpler
end to end tests and a two socket two numa node example for more
advanced low level tests.
2022-04-26 11:48:28 +02:00
Frode Nordahl f38448fee7 neutron: Add connectivity test with DPDK
The test will prepare hypervisor units in virtual machines by
enabling hugepages configuration and rebooting them and
subsequent required runtime changes.  If the hypervisor units
are physical machines the test assumes they already have
received the appropriate configuration from the bare metal
provisioning system.

Launch nested instance using flavor that enables hugepages and
attach it directly to the external network and perform
connectivity tests.

After a successful test the hypervisor units are brought back
to their original state to not influence subsequent tests.
2022-04-21 17:27:37 +02:00
Frode Nordahl ba0dc0232d Support connectivity check without FIPs 2022-04-21 17:22:47 +02:00
Billy Olsen 8c1722502f Remove lowercase of qos_enabled
Its a boolean, it doesn't have a lowercase method.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-12 06:29:57 -07:00
Billy Olsen 7975258453 Fix the qos tests for neutron
Only run the test_401_enable_qos tests when qos is not enabled prior to
test execution.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-11 19:46:57 -07:00
coreycb 04d388ca70 Use full binary paths for neutron test_901_pause_resume (#686)
When pgrep_full=True is used, the resulting pgrep can match
more binaries than expected if the search pattern isn't specific
enough. This change makes the search patterns more specific
in order to only match the expected binaries.

Closes-Bug: #1933338
2022-01-13 18:26:33 +00:00
Felipe Reyes 29b569df13 Use yaml.safe_load()
Pyyaml>=6.0 requires to pass the Loader arg to yaml.load(), switching to
yaml.safe_load() recovers the old and expected behavior.

https://github.com/yaml/pyyaml/pull/561

Closes-Bug: #1951650
2021-11-22 10:37:06 -03:00
Martin Kalcok 728c9fc294 Rename actions from "get-status-*" to "show-*" 2021-09-10 16:30:24 +02:00
Martin Kalcok 00742d547f remove unused import 2021-08-20 14:28:24 +02:00
Martin Kalcok b6f6db365b Fix after change of get-status-* actions output 2021-08-20 14:23:37 +02:00
Martin Kalcok 15ed2ab6db Flip test logic for better readability & remove unnecessary except block 2021-08-02 17:50:38 +02:00
Martin Kalcok a5e5d9ec0f add more info to output of juju action fails 2021-08-02 09:27:54 +02:00
Martin Kalcok 12afecced1 move loadbalancer cleanup logic to specific test. 2021-07-30 14:43:55 +02:00
Martin Kalcok 837bfad395 Skip LBaas tests on releases below mitaka.
The last mitaka test bundle (xenial-mitaka) does not have loadbalancer
services enabled.
2021-07-29 17:54:29 +02:00
Martin Kalcok cbc9c84194 Move common functionality into helper method 2021-07-29 12:55:29 +02:00
Martin Kalcok 74959dee3a fix linting errors 2021-07-29 09:07:39 +02:00
Martin Kalcok 5f0c43da2e Skip loadbalancer cleanup on releases that don't support them 2021-07-28 15:59:12 +02:00
Martin Kalcok 988efd6b25 Tests for new "status" actions in neutron-gateway 2021-07-28 14:52:04 +02:00
Liam Young d89a1651d2 Fix Neutron Gateway deferred restart test
Do not run the deferred hooks action for neutron gateway as it is
not needed and will end in an action error.

Tested locally here: https://paste.ubuntu.com/p/cSmgxmrTr4/

This closes issue #553
2021-04-12 09:28:31 +00:00
Liam Young 01544d22ed Deferred restart test fixes (#540)
* Add ovn-chassis test
* Yet another refactor to reduce the amount that implementations need to override.
* Add ovn dedicated chassis support
* Fix race with checking wlm
2021-04-09 10:48:52 +01:00
David Ames 0936b18322 Merge pull request #508 from gnuoy/deferred-restart-tests
Add test for deferred restarts
2021-03-30 11:51:35 -07:00
Przemysław Lal e3fab555cc Add tests for neutron-openvswitch and neutron-gateway charms (#523)
* Add support for running NeutronOvsVsctlTest against any charm and not
only charm-neutron-gateway.
* Add new test case for charm-neutron-gateway and charm-neutron-openvswitch to
verify correct handling of conflicting ext-port and data-port configurations.

Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
2021-03-17 17:52:10 +00:00
Liam Young 2054b7c477 Add test for deferred restarts 2021-02-25 09:16:34 +00:00
Frode Nordahl 4ae1b39ed2 neutron: Check for non-frag connectivity at MTU size 2020-09-07 10:35:18 +02:00
Frode Nordahl f33d166c5e neutron: Allow to run networking test multiple times
Adjust NeutronNetworkingTest to optionally run tearDown and
re-use existing instances on subsequent runs.

tearDown is controlled through a key under the `tests_options`
dictionary in tests.yaml.

Useful for morphing a deployment and then validating connectivity
for existing instances afterwards.
2020-09-07 10:35:18 +02:00
Aurelien Lourot fe82bc76f5 Fix setUpClass' signature 2020-08-26 16:34:28 +02:00
Aurelien Lourot 52dc1354ff Fix setUpClass' signature 2020-08-26 14:19:00 +02:00
Aurelien Lourot cac63150d9 Moved test to its own new class 2020-08-26 12:59:40 +02:00
Aurelien Lourot 754e0e081b Merge branch 'master' into ovs-mark-managed-ports 2020-08-26 10:24:12 +02:00
Aurelien Lourot e530533345 Make NeutronCreateNetworkTest more robust 2020-07-30 12:27:21 +02:00
Liam Young ce6cfe68b3 Add defaut app name for vrrp tests
Set a default application_name for vrrp tests so they can be
called by charms other than the neutron-api gate tests.
2020-07-15 20:07:17 +00:00
Aurelien Lourot 16cee0193f Make linter happy 2020-07-03 15:43:00 +02:00
Aurelien Lourot b66fd1a546 Merge branch 'master' into ovs-mark-managed-ports 2020-07-03 15:22:49 +02:00
Frode Nordahl 29356f6419 Move cleanup of launched instances to common class
Use the nomenclature for resource cleanup as defined in the
`BaseCharmTest`.
2020-07-03 08:56:01 +02:00
Frode Nordahl 0f3d9bf7c4 Move useful helpers from Neutron tests to OpenStackBaseTest
The dual-instance launch and retrieve is a common pattern in tests.

Let's share them.
2020-07-02 17:59:31 +02:00
Aurelien Lourot 13b590ea12 Refactor overriding mechanism 2020-06-23 13:03:04 +02:00
Aurelien Lourot f0ceb33f3a Add functional tests for neutron-arista 2020-06-22 16:15:03 +02:00
Liam Young 9d9b47a275 Add test for networking when gateways are stopped
Add test for networking when gateways are stopped. This includes
refactoring the existing network test so I can reuse some of the
code.
2020-06-09 15:06:01 +00:00
Aurelien Lourot 9ae0d464b3 Fix "'NeutronGatewayTest' object has no attribute 'neutron_client'"
in test_401_enable_qos
2020-05-11 16:52:39 +02:00
Aurelien Lourot 59ec82f542 Make ssh_test() more robust 2020-05-07 14:25:47 +02:00
Aurelien Lourot c35b4e0fcf Disable test_101_neutron_sriov_config on Trusty
https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1876888
2020-05-05 16:22:52 +02:00
Aurelien Lourot 135e2dd806 Re-enable neutron/test_800_ovs_bridges_are_managed_by_us 2020-05-04 16:43:00 +02:00
Dmitrii Shcherbakov 731de58b6a Merge pull request #237 from openstack-charmers/fix-neutron-openvswitch-tests
Fix neutron openvswitch tests
2020-04-24 11:44:51 +03:00
Frode Nordahl 9203865408 n-ovs: Do not use model.set_application_config directly
There are two problems with doing so as part of individual
functional tests:

1) If the application already have the value set the test will
   time out waiting for a change that will never be made.

2) python-libjuju ``set_config`` call requires values to be
   ``str`` regardless of their actual type.  Pairing this fact
   with the requirement to use the actual type when comparing
   values before attempting to set them makes this very confusing
   and error prone.

   juju/python-libjuju#388
   openstack-charmers/zaza#348

Use the ``config_change`` helper instead.
2020-04-20 10:11:31 +02:00
Frode Nordahl 169dff2d8e n-ovs: Do not treat `bool config as str`
When applying configuration to a model the helpers will compare
settings already set to what is being attempted set to be able to
accurately predict model behaviour.

When passing ``bool`` values as ``str`` this does not work and it
may lead to unwanted behaviour depending on the model state at the
time the test runs.
2020-04-20 08:31:58 +02:00
Frode Nordahl e3fb0fde92 n-ovs: Await start of execution before awaiting idle
At present we may start interrogating the model for a result of
a change made by the functional test before all units of the
application have started executing.
2020-04-19 17:34:23 +02:00
Frode Nordahl 845f728b4d n-ovs: Remove redundant unit references 2020-04-19 16:10:41 +02:00
Frode Nordahl 82928825fd Move NGW QoS test back to the NGW test class
Commit 55fc718f98 moved a QoS data
plane test from Neutron Gateway tests to the Neutron API tests.
This was probably done because the Neutron API charm gate was
doing end to end tests for all deployment topologies.

On the back of splitting out the data plane tests from Neutron API
gate to the respective data plane charms we need to move this
test back where it belongs.

Apparantly the Neutron Open vSwitch test class have its own
variant of this test already that will be executed by the
neutron-openvswitch charm gate.
2020-04-17 15:02:19 +02:00