Commit Graph

1115 Commits

Author SHA1 Message Date
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
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
Felipe Reyes 5a125a4f9e Don't test nrpe bits on rabbitmq-server. (#793)
When the nrpe application is not deployed in the model skip the test
that checks for the correct configuration of the nagios checks, this is
because at the moment nrpe has no support for jammy, hence is not being
deployed in the jammy-yoga bundles.

Jammy support for nrpe is tracked at http://pad.lv/1968008
2022-06-27 16:07:24 +01:00
Chris MacNaughton a6040e2e03 Get ceph-dashboard's public addresses from the mon
At some point, Juju stopped returning a list of units for subordinate
charms, so this test now fails to find the address for the dashboard units
2022-06-24 22:55:08 +02:00
Felipe Reyes f02beca790 Reduce the number of pgs on pool creation. (#794)
This change reduces the number of pgs requested on the creation of a
test pool to make it suitable for a 3 OSDs cluster.

Fixes: #647
2022-06-23 15:58:07 +02:00
Liam Young 45daa8ad42 Merge pull request #790 from mert-kirpici/topic/mysql/group-replication
mysql: add test for cluster restart on group replication cache size o…
2022-06-23 13:19:15 +01:00
Mert Kırpıcı 28a63747a8 mysql: add test for cluster restart on group replication cache size option
Signed-off-by: Mert Kırpıcı <mert.kirpici@canonical.com>
2022-06-23 11:49:41 +00:00
Liam Young 4b6fe3fb9a Merge pull request #685 from mkalcok/designate-bind-service-ips
designate-bind 'service_ips' config option tests.
2022-06-21 11:09:11 +01:00
hemanthnakkina e1127f7473 Merge pull request #788 from gnuoy/trilio-use-launch-instance-retryer
Trilio use guest_utils.launch_instance_retryer
2022-06-16 12:20:29 +05:30
Liam Young 3625c6c866 Change the ghost share path
Trilio 4.2 generates a hash for the nfs share bases on the path
alone. Unfortunatly the existing Trilio tests set the nfs share
and the ghost share to have the smape path but different source
IPs. For previouse Trilio releases this was fine as the share
hash was different but now they clash and the test fails because it
thinks the share is already mounted.
2022-06-15 15:58:43 +00:00
Liam Young af20e8719c Trilio use guest_utils.launch_instance_retryer
Switch Trilio tests to use the new launch_instance_retryer to
make the tests more resilant to issues creating and connecting
to a guest.
2022-06-15 14:59:33 +00:00
Luciano Lo Giudice 3ab81b4ebb Refresh kernel partition table between tests (#779)
The test suite for ceph-iscsi does a bunch of operations on filesystems
in quick succession, so some tests are prone to fail if the kernel doesn't
update the partition table. This PR does this manually between tests by
calling the 'partprobe' command.

Co-authored-by: Luciano Lo Giudice <luciano.logiudice@canonical.com>
2022-06-09 16:58:37 +02:00
Liam Young 251d6a85a0 Merge pull request #765 from jpnorenam/ceph-auth-actions
Add test for ceph auth actions get-or-create-user and delete-user
2022-06-09 13:00:28 +01:00
Juan Pablo Noreña-Monsalve 0f867b476d update test.py 2022-06-09 06:53:13 -05:00
Juan Pablo Noreña-Monsalve 72e2979901 update test.py 2022-06-09 06:47:47 -05:00
Chris MacNaughton 5ad8ba147f Merge pull request #774 from ethanmye-rs/master
Add new ceph-fs configuration test
2022-06-03 09:40:38 -05:00
Ethan Myers 9974c3849b no more print 2022-06-02 14:12:05 +00:00
Liam Young 5060c07c36 Add method for restarting tvault-contego (#778)
This is a temporary workaround to the bug while a packaging fix
is investigated.
2022-06-01 10:38:28 +01:00
Ethan Myers 197504a728 switched to query ceph daemon vs checking config 2022-05-31 22:03:31 +00:00
Ethan Myers 3719349773 Using retry and better assert 2022-05-27 19:39:24 +00:00
Ubuntu 3c609adde8 Add new ceph-fs configuration test 2022-05-26 19:00:17 +00:00
Corey Bryant 41bc9e0069 Add manila support to tempest 2022-05-19 17:09:07 +00:00
Juan Pablo Norena 8cba107f3a add test for deleting non-existing user 2022-05-18 11:57:29 +00:00
Juan Pablo Norena a8f71c8e05 Add test for ceph auth actions get-or-create-user and delete-user 2022-05-15 20:13:26 +00:00
Dmitrii Shcherbakov 8fae05e0c2 Merge pull request #746 from openstack-charmers/hugepages-vfio
Add connectivity test with DPDK
2022-05-12 17:25:12 +03:00
Billy Olsen 0d07a39d60 Merge pull request #667 from gnuoy/ceph-radosgw-multi
Add wait for sync to ceph RGW tests
2022-05-10 10:11:28 -07:00
Luciano Lo Giudice 1a5b3f6152 Also wait for the SAML 'enabled' message 2022-05-02 17:31:27 -03:00
Luciano Lo Giudice eaf33ab2bd Add docstring to public method 2022-05-02 14:43:36 -03:00
Luciano Lo Giudice a6846dd161 Add a few retries to avoid race conditions 2022-05-02 14:37:54 -03:00
Luciano Lo Giudice 7d70b22846 PEP8 style fixes 2022-04-29 18:04:15 -03:00
Luciano Lo Giudice d9a2c95cd5 Fix ceph-dashboard SAML tests
This PR ensures that the SAML tests are using a fully valid IDP
metadata (Ceph's dashboard doesn't report its validity until SAML
features are used), as well as using TLS in the requests, in addition
to some cleanups here and there.
2022-04-29 18:00:18 -03:00
Frode Nordahl ffa98f31b2 ovn: Add chassis DPDK test 2022-04-26 13:09:27 +02:00
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 16e0fbbfa7 ovn: Fix `wrong_bridge_config` test
The test blindly reverts the ``bridge-interface-mappings``
configuration to an empty string, which would be the wrong thing
to do if it was previously set up by a test configure step.

The test also does not properly populate target_deploy_status and
the test will always wait for the next update status to run,
which may take several minutes, before completing.
2022-04-26 11:44:59 +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