Commit Graph

1354 Commits

Author SHA1 Message Date
Frode Nordahl
bf3cecfcd4 ovn: Remove workaround for EOL release (#927)
The workaround was specifically targeting Groovy which is now EOL.

Also remove the `current_release` class variable as it is no
longer needed.

Related-Bug: #1852221
2022-09-23 19:51:52 +01:00
Dmitrii Shcherbakov
787415ae94 Move DPDK-related functions to DPDKTest
The previous change

268b4297b4

did not move the rest of the functions required to actually run the
test case.
2022-09-20 23:34:55 +03:00
Dmitrii Shcherbakov
268b4297b4 Separate DPDK tests from other chassis tests
We do not yet support DPDK for ovn-dedicated-chassis, therefore, we need
to avoid running DPDK func tests for it.
2022-09-20 16:20:13 +03:00
coreycb
383726b15e Remove workaround for Octavia Bug #1964117 (#922)
Remove the work around for Bug #1964117 now that it is fixed
in the latest ovs package versions in ubuntu and the cloud
archive. This is fixed in the following versions of ovs:
xena (2.16.4), jammy/yoga (2.17.2), and kinetic (3.0.0).
2022-09-19 15:58:05 +01:00
Liam Young
a65ef82ef5 Fix code for non-ha keystone saml mellon deploys (#912)
When deployed in a non-ha setup the keystone ip can fail to be
found due to problems with getting ips of subordinates. Also,
there is duplicate code for finding the keystone ip so put this
in the setup class.
2022-09-15 14:42:13 +01:00
Liam Young
cc1ecce0ad Merge pull request #909 from fnordahl/skip-nrpe-when-not-present
ovn: Skip NRPE tests when NRPE is not related to charm under test
2022-09-14 08:06:34 +01:00
Frode Nordahl
9d40566786 ovn: Skip NRPE tests when NRPE is not related to charm under test
To unblock the OVN charm gates we need to remove NRPE from the
gate bundles.
2022-09-14 08:40:12 +02:00
Frode Nordahl
d64795209d Merge pull request #899 from gnuoy/fix-dashboard-url
Fix dashboard policy tests.
2022-09-13 09:03:02 +02:00
Utkarsh Bhatt
91748b598c Adds scaledown check and verification for stoppage of synchronisation. (#863) 2022-09-12 18:37:06 +00:00
Liam Young
6246326729 Fix dashboard policy tests.
The dashboard policyd  override tests assume the deloyment is http
and non-ha. This is not a safe assumption so use the existing code
to generate the correct domain listing url.
2022-09-12 14:20:41 +00:00
Luciano Lo Giudice
acf30b3a8a Add functional tests for ceph-mon actions. (#866)
* Add functional tests for ceph-mon actions.

This PR adds functional validation for 2 actions of the ceph-mon
charm that are currently being rewritten.

Cleanup after the tests run.

Co-authored-by: Luciano Lo Giudice <luciano.logiudice@canonical.com>
2022-09-09 11:24:10 +00:00
Samuel Walladge
8fe6f9078f Reload all vault units in reload test
`get_unit_name_from_ip_address` along with the ip from vault client
has proven flaky in this situation.
Not sure why.
But better to reload all vault units anyway,
so we can take a simpler route here.
2022-09-09 15:07:18 +09:30
Liam Young
33a6408c83 Set and log model name 2022-09-08 12:55:04 +00:00
Liam Young
f3724b2281 Add additional logging 2022-09-08 08:21:21 +00:00
Liam Young
778d36e1fa Fix Ganesha _restart_share_instance for non-ha
Manila Ganesha is not always deployed in an ha configuration in
functional tests. This means there is no automated restart of the
manila services but the _restart_share_instance method shuts down
manila services via systemctl and expects them to be automatically
started. This change detects if the hacluster charm is present, if
it is it defaults it used the old behaviour otherwise systemctl
is used to restart the services.
2022-09-08 05:54:05 +00:00
Liam Young
3e4df7d52e Switch manila tests to use jammy guest 2022-09-07 21:45:45 +00:00
Dmitrii Shcherbakov
87d347d02a Add a codename and release pair for Zed 2022-09-07 00:57:26 +03:00
Frode Nordahl
a53ad38e75 Merge pull request #868 from gnuoy/fix-swift-replica-tests
Respect model in get_swift_storage_topology
2022-09-06 10:34:30 +02:00
Liam Young
c57ac56951 Merge pull request #865 from esunar/openstack-dashboard-caching-headers
Added tests for charm-openstack-dashboard
2022-09-05 08:15:13 +01:00
Nobuto Murata
b07fd0b2dc Support LTS_IMAGE_NAME(jammy) in guest.launch_instance
Follow-up of #860 and #791 to fix:

 File "./zaza/openstack/charm_tests/test_utils.py", line 798, in launch_guest
   return configure_guest.launch_instance(
 File "./zaza/openstack/configure/guest.py", line 128, in launch_instance
   image_name = image_name or boot_tests[instance_key]['image_name']
KeyError: 'jammy'
2022-09-04 10:00:40 +09:00
Liam Young
17234c9e15 Respect model in get_swift_storage_topology
Change 0af4c93d causes the target model to be ignored when a
model_name was specified. This in turn is causing the swift
cmr tests to fail as an ip of None is being recorded for
units in a different model.
2022-09-02 14:17:07 +00:00
Liam Young
b4b645ab9a Add fallback ubuntu image location 2022-09-02 14:09:57 +00:00
Felipe Reyes
c88894d52a Update LTS image from Bionic (18.04) to Jammy (22.04) (#860)
Ubuntu 22.04.1 was released and it should be used as the new baseline
for testing in the gate.
2022-09-02 11:55:20 +01:00
Frode Nordahl
909513917e Merge pull request #867 from swalladge/fix-vault-auto-init
Fix race conditions in VaultFacade
2022-09-02 08:15:29 +02:00
Samuel Walladge
bb3d93b00a Add test for online extending lvm volume in cinder (#854) 2022-09-01 09:23:57 +01:00
Samuel Walladge
d282fe264d Fix race conditions in VaultFacade
This ensures initialising and unsealing works nicely
with vault using the raft backend
(which makes race conditions evident because of the time
it takes for the raft cluster to settle).
2022-09-01 10:43:04 +09:30
Erhan Sunar
ba6cb0d1b7 Added tests for charm-openstack-dashboard
Added tests for checking positive and negative matches for the
Cache-Control and Pragma http headers.

If the requested resource is static check if these headers are
not set
Cache-Control: no-store
Pragma: no-cache

If the resource is dynamic ensure these headers are set
Cache-Control: no-store
Pragma: no-cache
2022-09-01 00:18:36 +03:00
Chris MacNaughton
36b267ba50 Update the CephFS tests with newer requirements
This change removes a repeated call to ceph daemon config
show and replaces it with a single call that we then
parse in Python.

It also removes a deprecated usage of handling async
code in Zaza that causes an infinite block in the test
code.
2022-08-30 18:38:37 -04:00
Chris MacNaughton
54dd97dfeb Migrate CephFS tests to not use OpenStack 2022-08-30 13:12:33 -04:00
Samuel Walladge
a2d8e96d8e Fix test to work with vault with raft backend (#827)
The tests here run a series of commands on the vault client,
without waiting in between.
This is usually fine, but with the raft backend,
there can be delays between initialising, unsealing,
and the raft cluster settling.
During this time, most vault commands will return errors.
2022-08-24 14:04:47 +01:00
Liam Young
9fe96db10a Merge pull request #856 from gnuoy/add-trilio-horizon-test
Add test for Trilio Horizon encryption settings
2022-08-19 16:14:10 +01:00
Liam Young
87211cd2be Fix test for queens package name 2022-08-19 06:58:29 +00:00
Chris MacNaughton
6590172d87 Strip trailing slash from dashboard URL
The trailing slash gets handled badly by the Ceph dashboard when
the auth URL ends up looking like https://ip.address//api/auth
2022-08-16 14:06:37 +00:00
Liam Young
31f1d5c94f Add test for Trilio Horizon encryption settings 2022-08-16 09:45:00 +00:00
Luciano Lo Giudice
5da70ae0fd Move tests that aren't in stable to a different class (#849)
In order to correctly test the upgrade from stable, we have to
move the tests that haven't landed yet to a different class so
that the charm can select to run them only after performing the
upgrade to the locally built charm.
2022-08-09 12:57:18 +00:00
Utkarsh Bhatt
efdb1ae4e3 Add Testcases for Ceph-RGW multisite migration (#840)
The updated testcase handles verifying the expected states
that are safe to migrate, as well as verifying that pre- and post-
migration data are correctly synced.
2022-08-08 12:03:35 +00:00
Samuel Walladge
c396608daa Fix pep8 lint errors
One of the pep8 target dependencies must have updated,
causing a bunch of new lint errors in these categories:
- line length > 79 chars
- no whitespace after keyword
2022-08-03 13:44:22 +09:30
Alex Kavanagh
9dc87efdb5 Revert "Add test for online extending lvm volume in cinder (#776)"
This reverts commit e21909717e.
2022-07-28 10:20:12 +01:00
FrancescoDeSimone
66d0c9237c Skip nrpe check if manila-ganesha-az1 not deployed (#826) 2022-07-11 18:46:15 +01:00
FrancescoDeSimone
5aa0f13eaa Remove check_haproxy if hacluster is present in the bundle (#819)
Co-authored-by: fdesi <francesco.desimone@canonical.com>
2022-07-08 12:19:51 +01:00
Liam Young
4a6418e939 Prometheus has registered a non-zero num of osds (#820)
Change prometheus test to check it has a non-zero amount of OSDs
registered rather than a specific number. This stops the number of
OSDs having to be managed in the tests.
2022-07-08 11:17:28 +01:00
Liam Young
b829fae632 Fix VM retryer (#812)
I recently added an option to have zaza delete and relaunch a
guest if it failed to be provisioned or failed a connectivity
test. However, in the code to remove the an instance I
accidentaly called the method that checks that a resource has
gone and not the method that actually does the removal. This
patch fixes that. NOTE: Only the Trilio tests use this
retryer function atm
2022-07-05 12:37:28 +01:00
Oprin Marius
243435883f Add Magnum tests (#515)
- Add Heat domain-setup action as a setup configuration option which can be used in other charms
  - test_100_domain_setup is being deprecated if the new configuration option is being used
- Add Magnum tests
  - test create magnum cluster template
  - test create magnum cluster
  - test config changes
  - test pause and resume
- TEST_MAGNUM_QCOW2_IMAGE_URL environment variable is required in the CI
  - The value of this variable should be a link to a fedora-coreos QCOW2 image
2022-07-05 12:06:02 +01:00
Ray Chan
31d806c731 Add nrpe check tests for manila-ganesha charm (#806)
This PR adds nrpe check tests for manila-ganesha charm. It's accompanied by the new features proposed in https://review.opendev.org/c/openstack/charm-manila-ganesha/+/848219

- Added tests for nrpe check in manila-ganesha.
- Check if the custom plugins are being installed
- Check if the custom cronjobs are being installed
- Check if the NRPE services are being added.
- The tests will not be ran if nrpe does not exists.
2022-07-05 10:46:31 +01:00
Samuel Walladge
e21909717e Add test for online extending lvm volume in cinder (#776)
* Add test for online extending lvm volume in cinder

* Fix pep8 issues

Co-authored-by: Samuel Walladge <samuel.walladge@canonical.com>
2022-07-01 15:37:55 +01:00
Felipe Reyes
8a9b519c81 Set tempest octavia provider to amphora.
By default the provider that will be used by tempest is "octavia" which
in Octavia's default configuration is an alias of amphora, although in a
Charmed OpenStack is not.

This change sets the provider to be used by octavia-tempest-plugin to
amphora.
2022-06-30 18:07:52 -04:00
Marcin Wilk
ab37618d4f Add test for allow_resize_to_same_host in nova (#703)
Co-authored-by: Marcin Wilk <marcin.wilk@canonical.com>
2022-06-29 15:50:33 +01:00
Aurelien Lourot
1a9ccb71a4 Make nova setup more robust (#430) 2022-06-29 14:06:02 +01:00
Felipe Reyes
54eb24ffdf Merge pull request #803 from openstack-charmers/ceph-dashboard-errors
Get ceph-dashboard's public addresses from the mon
2022-06-28 14:25:06 -04:00
Luciano Lo Giudice
be70ef7529 Make Ceph tests idempotent (#795)
With the upcoming transition to an operator-framework charm, the
Ceph tests need to be idempotent, since we'll be testing the upgrade
path from classical to operator. The tests that need fixing are the
ones that call out to add/remove disks, since they create loopback
devices to back the OSD's but never remove them.
2022-06-27 20:44:24 +02:00