Commit Graph

2385 Commits

Author SHA1 Message Date
Luciano Lo Giudice
cbf5cefb96 Fix mapping for Ceph Reef 2023-09-04 12:11:27 -03:00
Luciano Lo Giudice
27aca8a913 Add the mapping for Ceph's Reef release 2023-07-26 14:19:57 -03:00
Liam Young
734c43deab Merge pull request #1086 from gboutry/feat/barbican-k8s-tests
Add tempest tests for Barbican k8s
2023-07-24 13:55:28 +01:00
Guillaume Boutry
fb95915c3e Add tempest tests for Barbican k8s 2023-07-24 14:49:03 +02:00
Guillaume Boutry
6a809e4a71 Merge pull request #1085 from hemanthnakkina/heat-k8s-tempest-tests
Add tempest tests for Heat k8s
2023-07-21 11:33:05 +02:00
Hemanth Nakkina
a00c828f26 Add tempest tests for Heat k8s
Add tempest tests for Heat k8s
2023-07-21 10:36:17 +05:30
Alex Kavanagh
df6dd60e11 Merge pull request #1080 from gnuoy/add-rabbit-k8s-tests
Add tests for rabbit on k8s
2023-07-07 14:30:59 +01:00
Liam Young
6ee5fff038 Add tests for rabbit on k8s 2023-07-07 12:42:17 +00:00
Peter Sabaini
9e5f2e829d Merge pull request #1066 from sabaini/bug/1968369
Add a new TestClass that verifies test permissions change on charm up…
2023-06-30 14:56:09 +02:00
Peter Sabaini
5b3ffd92a6 Merge pull request #1077 from sabaini/fix/remove-old-check
Fix dashboard test
2023-06-26 15:58:00 +02:00
Peter Sabaini
a0c8576bfa Fix dashboard test
Remove old and broken guard in ceph-dashboard testing
2023-06-26 13:51:41 +02:00
Frode Nordahl
b05161a226 Merge pull request #1076 from dshcherb/2023-06-ndr
Add relevant infrastructure for performing NDR-related data plane tests and actual testing
2023-06-21 07:36:00 +03:00
Dmitrii Shcherbakov
3e289d2f00 Use the name attribute of a unit
get_units returns a unit objects the name of which needs to be accessed
by using the .name attribute.
2023-06-21 03:09:00 +04:00
Dmitrii Shcherbakov
4b80d0db76 Add a workaround for LP: #2024481
Due to the race condition described in LP: #2024481, before adding
networks to the speaker we need to wait until it gets scheduled,
otherwise it may not advertise some routes that are attempted to be
advertised before the speaker is scheduled to a dragent service causing
a non-fatal service error.
2023-06-20 22:16:04 +04:00
Dmitrii Shcherbakov
35c5fca0c7 Fix an incomplete comment about the Nova client 2023-06-17 15:07:33 +04:00
Dmitrii Shcherbakov
e6d215119e Be specific about a FIP to be checked in CP tests
The configure step for the DRAgent tests configures a name for a
floating IP to be checked for at the peer side. Since the data plane
tests add one as well for an instance, make sure the control plane-only
tests rely on the FIP that has a specific name. This can be useful if
the tests are run in a different order.
2023-06-17 14:59:03 +04:00
Peter Sabaini
edd7717dc2 Merge pull request #1074 from sabaini/retry-failed-rbd-status
Fix: retry rbd pool status command
2023-06-15 11:00:55 +02:00
Dmitrii Shcherbakov
8fae640826 Add L3 data plane testing NDR tests
In order to actually test L3 for advertised routes, a simple ping test
is necessary to perform from a unit that receives dynamic routes.
2023-06-15 06:51:09 +04:00
Dmitrii Shcherbakov
77aeb7300f Allow skipping instance connectivity checks
For the NDR data plane testing case those checks cannot be performed
from the node that runs Zaza and instead need to be performed from a
unit that receives dynamic routes from the BGP speaker.

In order to allow for that case an additional argument is introduced.
2023-06-15 06:50:53 +04:00
Peter Sabaini
b9ef2a30ec Fix: retry rbd pool status command
The rbd mirror status command has spurious faults on occasion. Retry
after some waiting.
2023-06-14 12:59:30 +02:00
Dmitrii Shcherbakov
110242796c Allow an optional FIP service subnet to be set up
A separate service subnet for FIPs is useful in making sure that
connectivity based on the advertised routes really works as opposed to
relying on directly connected routes to FIPs in the undercloud network
subnet used as an external network.
2023-06-12 21:35:57 +04:00
Dmitrii Shcherbakov
0bb84af4a4 Reuse the existing net setup code
As a prerequisite to testing the data plane connectivity with routes
advertised by NDR, this change makes the configuration step reuse the
existing network config code that is able to do things like plugging an
extra interface to be used in bridge-interface-mappings.
2023-06-07 23:41:29 +03:00
Peter Sabaini
17cb89a76b Merge pull request #1063 from sabaini/ceph-rbd-mirror-fix
Fix: upstream tooling output change
2023-06-02 16:48:48 +02:00
Alex Kavanagh
0b8103d2ef Merge pull request #1067 from dosaboy/add-retry-octavia-get-lb-providers
Retry octavia get_lb_providers
2023-05-30 15:34:23 +01:00
Edward Hope-Morley
5b1991bbc2 Retry octavia get_lb_providers
The octavia tests can sometimes fail when calling
get_lb_providers if they have not been setup yet.
This adds a retry if keystoneauth1.exceptions.http.NotFound
is raised.
2023-05-30 15:16:16 +01:00
Chris MacNaughton
7edf82503e Add a new TestClass that verifies test permissions change on charm upgrade 2023-05-30 11:18:34 +02:00
coreycb
c10d1ceaa8 Merge pull request #1065 from freyes/resource_removed-logging-master
Improve logging of _resource_removed()
2023-05-26 15:58:52 -04:00
Felipe Reyes
b453a85013 Improve logging of _resource_removed()
On failures there is no information of the state of the objects that
couldn't be removed, maybe there are on their way to be removed and this
is a failure visible on slow clouds and not an actual issue, this will
help with troubleshooting.
2023-05-26 15:41:27 -04:00
Peter Sabaini
6f7b8794e8 Fix: upstream tooling output change
Ceph rbd mirroring fixes:

- Upstream ceph mirror tooling modernized its output, need to update
test to reflect that.

- Avoid spamming run-action in a loop

- Don't consider system pools for failover

- Remove obsolete workaround for LP: #1820976
2023-05-26 16:39:03 +02:00
Frode Nordahl
4b56ec170e Merge pull request #1060 from openstack-charmers/2023-05-quagga-to-frr
Switch from Quagga to FRR
2023-05-25 07:52:03 +02:00
Peter Sabaini
0f26ac6266 Merge pull request #1047 from jneo8/bug/2007976
feat(zaza/ceph): Check persistent config is working
2023-05-25 07:40:26 +02:00
Dmitrii Shcherbakov
c48c939859 Make net and subnet name customization optional
ad16b5a7fc

ad16b5a7fc introduced an option to
customize network and subnet names, however, not all modules were
updated to pass it into the setup_sdn method. Specificatlly, the
dragent now breaks with a KeyError during the configure step.

(Pdb) network_config["project_net_name"]
*** KeyError: 'project_net_name'

fdaf43f52c/zaza/openstack/charm_tests/dragent/configure.py (L35-L46)
2023-05-24 17:03:36 +03:00
coreycb
fdaf43f52c Merge pull request #1059 from sabaini/ceph-user-del-changed
Update ceph user creation test
2023-05-24 07:51:28 -04:00
Dmitrii Shcherbakov
842637477c Switch from Quagga to FRR
A charm that uses FRR instead of Quagga is now published under:
https://charmhub.io/osci-frr

For our purposes FRR is a drop-in replacement of Quagga but the point
of a change is to remove Quagga references for clarity.
2023-05-23 21:31:44 +03:00
Peter Sabaini
54da3aa331 Update ceph user creation test
Upstream cli changed output, see https://tracker.ceph.com/issues/61362
2023-05-23 19:03:09 +02:00
Felipe Reyes
0fe449b06c Merge pull request #1027 from ajkavanagh/feature/test-rotate-mysql-service-user-password
Add test to rotate mysql service user password
2023-05-23 12:34:20 -04:00
Alex Kavanagh
f0a6e802cc Make username list on log look normal 2023-05-19 12:36:28 +01:00
Alex Kavanagh
f2a3ec9d1c Merge pull request #1029 from ajkavanagh/feature/test-rotate-rabbitmq-service-user-password
Add test to rotate rabbitmq-server service user password
2023-05-14 18:41:32 +01:00
jneo8
5fc5679e18 feat(zaza/ceph): Check persistent config is working
Add zaza test to check persistent config will update after config change.
2023-05-09 13:53:22 +08:00
Alex Kavanagh
0fe8e9d666 Switch from json.loads to yaml.safe_load for decoded usernames
In the rotate password test, the results from the action return a list
of strings that are deliminted by single quotes.  This isn't compatible
with json.loads(), but yaml.safe_load() is able to load the string as an
array of strings.
2023-05-08 11:26:19 +01:00
Alex Kavanagh
ce2b26a6e0 Use json.loads() to read results of password rotation usernames 2023-05-08 11:26:19 +01:00
Alex Kavanagh
a61653d031 Add a tenacity retry to the password change checks 2023-05-08 11:26:19 +01:00
Alex Kavanagh
140805d321 Fix handling of usernames in password rotation mysql test
This patch ensures that the usernames are parsed correctly from the
action to ensure that the usernames are handled correctly.
2023-05-08 11:26:19 +01:00
Alex Kavanagh
32f2a052b1 Add wait_for_agent_status in 'settle' code
This is to guarantee that the block check didn't happen prior to the
action being started.
2023-05-08 11:26:19 +01:00
Alex Kavanagh
e16406116b Add test to rotate mysql service user password
This new test verifies that keystone can have its password rotated and
then still operate afterwards.  It verifies that the on-disk password is
changed in the keystone application and that the user list can be
performed.
2023-05-08 11:26:19 +01:00
Alex Kavanagh
6516a34045 Update rabbitmq rotate password test to be more robust/correct
Fix a bug where the wrong paramter from the /etc/cinder/cinder.conf
file is being used ('transport' -> 'transport_url').

Fix issue around using json instead of yaml for loading the usernames
from the action data from the list_service_usernames action, which uses
single quotes to quote the data, which isn't compatible with json.

Make the testing for the password change in the cinder.conf more robust
by retrying, as juju is essentially async and it's difficult to
determine exactly when the hook will get fired on cinder.
2023-05-08 11:23:24 +01:00
Alex Kavanagh
6bfbab2578 Use json.loads() for password rotation usernames result 2023-05-08 11:23:24 +01:00
Alex Kavanagh
17c0de8810 Fix handling of usernames in rabbitmq password rotation test
The usernames were not handled correctly.  The return value from looking
up the action value is a string, and so it needs to be split on ','.
2023-05-08 11:23:24 +01:00
Alex Kavanagh
d964696f48 Add additional wait_for_agent_status() check
This is to ensure that the model really is settled after the password
rotate action.
2023-05-08 11:23:24 +01:00
Alex Kavanagh
b29c11720e Add test to rotate rabbitmq-server service user password
This new test verifies that cinder can have its password rotated and
then still operate afterwards. It verifies that the on-disk password is
changed in the cinder application and that the user list can be
performed.
2023-05-08 11:23:24 +01:00