Commit Graph

23 Commits

Author SHA1 Message Date
Frode Nordahl 4cbf70dd5e octavia: Configure SSH key to allow debugging of Amphorae (#495) 2021-02-04 08:56:22 +01:00
Liam Young c4691ef1c7 Skip OVN provider octavia test on Victoria
The OVN provider octavia test on Victoria is currently broken due
to Bug #1896603. Until it is fixed skip the test.
2021-01-29 13:51:25 +00:00
Frode Nordahl 440ee4b274 octavia: Disable check for member operational status
Temporarily disable this check until we figure out why
operational_status sometimes does not become 'ONLINE'
while the member does indeed work and the subsequent
retrieval of payload through loadbalancer is successful
ref LP: #1896729.
2020-10-19 09:50:53 +02:00
Frode Nordahl be59370476 Forcefully remove amphorae when Octavia is unable to remove 2020-09-22 14:50:09 +02:00
Frode Nordahl 430704ef80 Retry retrofit action
The retrofit process involves downloading packages from
the internet and is as such susceptible to random failures due to
internet gremlins.
2020-09-21 08:18:05 +02:00
Frode Nordahl e9215f1d73 Retry load balancer resource creation
Creating a load balancer consist of many independent API calls.
If any one of them fail today the whole job will be killed.

On failure to create a lb resoruce, clean up and retry.
2020-09-21 08:18:00 +02:00
Chris MacNaughton dd2802057f Ensure that octavia sets up application_name
When running in a deployment that is focused on bundles rather
than a specific charm, the Octavia setup can fail because there
is no configured charm_name in the tests.yaml. This change
ensures that the Octavia setup can continue.
2020-08-28 13:55:42 +02:00
Frode Nordahl 849e08528b octavia: fix pause/resume test and temporarily disable it
Re-enable when LP: #1886202 is fixed.
2020-07-03 16:33:50 +02:00
Frode Nordahl b4f155d5e3 octavia: Consume common helpers for test instance lifecycle 2020-07-03 08:56:04 +02:00
Alex Kavanagh c04e632ae0 The octavia tests require multiple LTS images
This patch ensures that bionic and focal images are available for
the LTS octavia tests.
2020-05-06 14:59:32 +01:00
Frode Nordahl 91c120a650 octavia: only run tearDown on success 2020-04-08 07:35:14 +02:00
Frode Nordahl 116da9ca6c octavia: tear down resources created during LBaasV2 test
Fixes #221
2020-04-07 17:56:37 +02:00
Frode Nordahl 998a61a6a5 octavia: Support testing multiple providers 2020-02-03 10:41:40 +01:00
Frode Nordahl c2e585ae4c octavia: Move LB creation API calls to helper 2020-02-03 10:35:49 +01:00
Frode Nordahl 3b6a2de1ca octavia: Conditionally use DVR specific flags
The current test code for octavia requires DVR extensions to be
present on the Neutron API server.

We need to conditionally enable this based on enabled extensions to
allow the test to operate on multiple deployment configurations.
2020-01-17 16:07:00 +01:00
Frode Nordahl bf23d80a1b octavia: Add setup and test code for DVR 2019-07-19 13:19:23 +02:00
Frode Nordahl cbcbb90922 octavia: Fix gathering of payload ips
The existing code lead to intermittent failures as there are a few
Neutron ports tagged with ``device:owner`` ``compute:nova`` that
has nothing to do with our payload instances.

Get IP information by asking Nova to list instances instead.
2019-07-16 11:57:34 +02:00
Frode Nordahl 7140e4e064 Add payload test
Create listener, pool, healthmonitor and members.

Check that we can get payload through the load balancer.
2019-06-21 14:41:40 +02:00
Frode Nordahl e395d1baf2 Add setup function for payload test instance
The instance will listen on TCP port 80 and serve up a Apache
welcome page.  This can be put behind a load balancer to validate
operation.
2019-06-21 14:41:27 +02:00
Frode Nordahl a73cede82a Fix erroneous use of generator return 2019-06-20 12:35:06 +02:00
Frode Nordahl cb68bdb490 Add missing docstring, use new raise_on_failure param
The Zaza run_action functions ought to have a raise exception
option, openstack-charmers/zaza#251
2019-06-20 07:59:17 +02:00
Frode Nordahl 9104c82b91 octavia/diskimage-retrofit: Add charm setup and tests
Setup can be used standalone by other charms consuming the
``octavia-diskimage-retrofit`` charm for their testing purposes.

Tests the charms actions.

Full end to end test will be done by consuming this charm in the
``octavia`` charm tests.
2019-06-19 15:28:32 +02:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00