Commit Graph

83 Commits

Author SHA1 Message Date
Frode Nordahl 7984d783fa Add undercloud_and_charm_setup configure step
The neutron ``basic_overcloud_network`` setup job performs both
undercloud and charm configuration prior to configuring the
overcloud network.  The undercloud and charm configuration steps
are useful outside the context of OpenStack Neutron.

Split undercloud and charm setup into a new configure step.
2022-04-26 11:48:33 +02: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
Frode Nordahl ad16b5a7fc Make project network and subnet configurable 2022-04-21 16:03:54 +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
Aurelien Lourot a0b4d15dc6 Remove deprecation warnings (#676)
Change-Id: I354d1a62c77aa1fa38f4be4615f264bc08f7795b
2021-11-29 09:27:06 +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
coreycb 6c834770ed Add neutron setup for VLAN provider network (#639)
This adds a new setup function that will setup a VLAN provider network.
It can be called by tests.yaml after basic_overcloud_network:
- zaza.openstack.charm_tests.neutron.setup.basic_overcloud_network
- zaza.openstack.charm_tests.neutron.setup.vlan_provider_overcloud_network
2021-10-08 16:05:36 +02:00
Aurelien Lourot 2fd494cce2 Merge pull request #611 from mkalcok/neutron_gateway_actions
Neutron gateway actions
2021-09-13 11:50:33 +02: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
Aurelien Lourot 25ec6f84db Add ceilometer-agent tests (#615)
https://launchpad.net/bugs/1927277
2021-08-10 11:29:19 +01: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 ec63732974 Support configuring networknig charms on MAAS
When on MAAS support doing charm based configuration of OVS by
retrieving MAC address of ports attached to external network
from MAAS.

Note that we should extend the MAAS support to also work with
deployments where MAAS does the OVS configuration for us.
2021-01-13 18:47:08 +01:00
Alex Kavanagh 17bad029a5 Fix network setup for mojo
A recent change introduced a configuration option in the
./tests/test.yaml file (default location) which allows juju wait to be
used rather than waiting on various workload messages.  This,
unfortunately, breaks mojo tests as they don't use a tests.yaml.  This
change refactors that code, and enables a 'use_juju_wait' to be passed
into the relevant functions, and a new command line option (default
true) to disable using juju wait.
2020-09-15 09:55:09 +01: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