Commit Graph

138 Commits

Author SHA1 Message Date
Peter Sabaini f13800fb0d Add upgrade func testing
Change functional testing to also test upgrades from charmhub version
to the locally built charm. Include a new test for installing a locally built charm from scratch.

Also pin some support charms to specific tracks.

Change-Id: Id7de1723a4bbfcff02dd606be650b4410f897913
2023-09-27 12:52:32 +02:00
Luciano Lo Giudice 8b8f15ad32 Remove some CI jobs and test bundles
Change-Id: I526f090426d72842a709adc39ff796fafa17dcbb
2023-09-07 11:12:10 -03:00
Corey Bryant 986981c6f4 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to quincy
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic

Change-Id: I7449eba63107b43525359fb92ae1a0ad9e648bab
2023-07-25 17:26:56 -04:00
Peter Sabaini 6a0b48e916 Fix: test bundles for jammy and lunar
Series and UCA pockets were off. Also deploy supporting charms for
lunar on jammy for stability

Change-Id: I805b28bf625d69626fcf663530ac93073d298732
2023-07-24 17:24:24 +02:00
Luciano Lo Giudice f1cdc830dc Remove relation test
The CephRelationTest class wasn't of much used and the test was
rather flaky, since it compared public IP addresses.

Change-Id: I9a77f4a86412f9bf4d27c0d7e0a7fe34d5a403ff
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1034
2023-04-06 19:17:59 -03:00
Chris MacNaughton aa2ec8c861 Add support for interim Ubuntu releases
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include lunar
- update snapcraft to allow run-on for lunar

Change-Id: I16b9d724930eacca42b9410c73931caceca8cca8
2023-03-17 10:29:20 -04:00
utkarshbhatthere 1fe0aa07d3
Adds cinder volume in test bundles to replace loopback devices in test.
Change-Id: I96b52dda0698d8942a836bd5df0baa3a0e3500ad
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/989
2023-03-06 16:30:51 +05:30
alitvinov 38407abdd5 Tweak apparmor profile to access OSD volumes.
Plus add aa-profile-mode enforce option to the test bundles.

Closes-Bug: #1860801
Change-Id: I8264ad760d92da3faa384c8edca5566fc622c57d
2023-01-11 08:14:26 +00:00
Chris MacNaughton 9fa1b45fe8 Remove force-deploy for Jammy
Additionally, Move jammy-yoga out of dev-bundles

Change-Id: I759ed6b716c91f28bed2b9a1010e01e39c138114
2022-08-09 14:52:19 -04:00
Billy Olsen d4f3dd2ee6 Updates for jammy quincy and finalise charmcraft builds
- Update charmcraft.yaml for arch builds
- Remove impish-xena tests
- Update osci.yaml to include py3.10 default job
- Resync charmhelpers and charms.ceph

Change-Id: I41abace773d8926eaa00076dd83f52849c96150d
2022-04-07 16:47:55 +02:00
Alex Kavanagh c3e89c09bd Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I83118e15ff91480370182b404b3d3b7d24b5c67c
2022-02-17 12:30:03 -05:00
Alex Kavanagh a5e0c6ed99 Migrate charm to charmhub latest/edge track
Change-Id: If9f1d3c100e80fb356cd28698a917b7a0f1955f0
2022-01-27 19:41:36 +00:00
Corey Bryant f2d704a14d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39
* charms.ceph sync

Change-Id: I4d517c40a4450ef1395dd0240513eeebc069384c
2021-11-17 13:46:25 -05:00
Alex Kavanagh fe570c72f2 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iaaef29dfd8e682121dc0256e5cf3d97293cf84b3
2021-09-21 14:34:05 +01:00
Alex Kavanagh e5b4b49ed2 Disable hirsute-wallaby test
hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: Iee55ac0b05064f0ca73c5cd32df3cb63ebc8f5d0
2021-04-16 10:37:23 +01:00
Alex Kavanagh db518bfe2a Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Sync charm-helpers

Change-Id: I9f495e3ce85913c9f63201c9effa9b4c5932343d
2021-04-10 16:21:25 +01:00
Billy Olsen 9566c17491 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ie8649989231dbf3477d39785276b4e47c7a0f2e4
2021-02-19 16:59:22 -07:00
Aurelien Lourot f7dda9eb7b Remove Disco and Eoan bits
Change-Id: Id6642e0d3773d318c20b74b229786921f1b00dbf
2021-01-12 13:52:09 +01:00
Martin Kalcok e22f602544 Added `start` and `stop` actions for management of ceph OSDs
Change-Id: If8b83ab06364903548c5841487034bc1bb9aaf0c
Closes-Bug: #1477731
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/473
2020-12-15 17:29:24 +01:00
Aurelien Lourot 27d035f89b Add Groovy to the test gate
Change-Id: I273eeb41f9750ddb32ae1ca5933278ac8af5c4b7
2020-11-05 12:44:12 +01:00
Aurelien Lourot f166c8f3ec Add focal-victoria to the test gate
Change-Id: Iad7b94f2ee4ccb39b290a3009cc29b1648ddd554
2020-08-28 14:24:39 +02:00
Aurelien Lourot 50212c8fd0 Add Victoria test bundles
Change-Id: I0c0f478bfbc0bc42384d1314338a8ce99846ad19
2020-07-14 11:51:05 +02:00
James Page eb2c3f23bb Add missing relation to test bundles
A recent commit to cinder-ceph means that this application
considers itself blocked until its related to nova-compute.

Add this relation to all bundles.

Closes-Bug: 1881246

Change-Id: I335af616f9387edecb1a57177a06a0aa8dc51a86
2020-06-01 10:40:41 +01:00
Alex Kavanagh deb8c05dd2 Fix up the test-paths to be more obvious
There's "magic" in the zaza package that converts charm names to paths
for the charm under test.  However, it is poorly understood, and most
charms use the relative path.  This patchset does that.  Overlays
complicate that picture, but this charm doesn't use overlays.

Change-Id: Ic558c952359a5e5f60125452433d7b0588d0a1c4
2020-04-29 18:58:22 +01:00
Alex Kavanagh f6b846142b Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.
The associated func-test-pr is to disable the /dev/vdb pristine disk
check as it doesn't work on focal.

Change-Id: I00b2b739c97dc41b2f987f29e12844e6cf5e921c
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/249
2020-04-22 18:53:55 +01:00
Alex Kavanagh d38e26e819 Remove disco support from the charm
Change-Id: Ia9549a9404f3b5dbc62631817fa6bd3de809b617
2020-02-18 12:31:50 +00:00
Andrew McLeod 67254e334f Sync charms.ceph
use btrfs-progs instead of btrfs-tools for eoan and later
update bionic-train zaza test bundle to include placement

Closes-Bug: #1850181
Change-Id: I6c414cb7db45f5a1a2cf9b65f6fd93c40f631a46
2019-10-31 19:37:18 +01:00
Sahid Orentino Ferdjaoui 666dd06684 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I129d21e0b6a1afb531442511c267a0c34c0d958c
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-25 09:34:49 +00:00
Frode Nordahl 73703077b7 Update functional test definitions
Change-Id: Ic8c456597a1be8c1945906db377b3fe5f1f5f6ec
2019-07-17 15:28:19 +02:00
Chris MacNaughton 18db4e233f Sync charm-helpers
Change-Id: I458ce4e8938072bc42f7250eadb1a12b097139ff
2019-07-16 07:06:05 +00:00
Chris MacNaughton 67ddea1e5a Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: Ia50a57c52c97208a014ea89e6c48be2fe6f9f36d
2019-04-26 14:05:41 +02:00
Frode Nordahl 370401bb7e
Enable bionic/stein and disco/stein functional tests
Also fixes the bionic/rocky and cosmic/rocy bundles.

Move cosmic/rocky and disco/stein to dev_bundles.

Change-Id: I77b6aa2b5fba921c4735a86028e9e7c8b09ff40a
2019-04-17 13:19:03 +02:00
Chris MacNaughton 874e553e0c Add security-checklist action
Change-Id: I6e2ff9b546a1283748550beefc366ae055b63b7e
Func-Test-PR: https://github.com/openstack-charmers/zaza/pull/193
2019-03-13 10:32:13 +01:00
Ryan Beisner bce5aabcb7
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I478fdf4e9ab7a25ccd35c611f623cefc116f672c
2019-02-06 14:49:59 -06:00
Alex Kavanagh faefe90ce6 Fix nrpe ceph-osd status respecting permissions
The referenced bug (below) was caused because the nrpe check needed to
access the ceph owned directories, and as the nagios user, nrpe can't.
This change splits the check into a 'collect' phase that runs as root
via a cronjob each minute and writes a file to the tmp directory, and a
nrpe check phase that then reads that file and reports back to nagios.

The 'check' part deletes the 'collect' file, so that fresh information
is available for each nrpe check.  The cron task runs every minute (as
is lightweight), so the nrpe checks should not be sheduled more
frequently than 1 minute.

Change-Id: I4f4594a479eed47cc66643d0c6acece491ae854d
Closes-Bug: #1810749
2019-01-16 12:33:06 +00:00
Chris MacNaughton a6fb83a06b Expose API services
If we expose the API services, then the Zaza func
tests can be run on any conformant OpenStack,
rather than requiring an OpenStack with wide open
security groups.

Change-Id: Ic0967e198939c6951e3a6df8214e244eb320029f
2019-01-11 08:35:12 +01:00
Nicolas Pochet dd47f6493f
Migrate tests to zaza
Depends-On: https://github.com/openstack-charmers/zaza/pull/93
Change-Id: I9a19960fdb239eb5a8d421f135285e89b8405267
2018-10-09 18:15:01 +02:00
Ryan Beisner 72b7a5b16f Update requirements
Change-Id: Ic9e43835bcc84441414f93dfd851c571c611fb19
2018-10-03 11:15:05 -05:00
Ryan Beisner a0a82b50f4 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I0dfc8408eca5105828e71477cb736eceed8f7148
2018-09-19 13:24:20 +02:00
Ryan Beisner eef2a8be2c Update functional test definitions
Change-Id: Ib8c7ccae838d4d79a5f9cf737fa8fd3478afadc4
2018-08-28 17:23:01 -07:00
James Page 8875a7a685 Enable bluestore by default
For Ceph Lumimous (12.2.0) or later enable Bluestore block device
format as the default for Ceph OSD's. Bluestore can be disabled by
setting the bluestore config option to False.

For older releases, Bluestore cannot be enabled as its not
supported - setting the config option will have no effect.

Change-Id: I5ca657b9c4da055c4e0ff12e8b91b39d0964be8c
2018-08-16 05:10:52 +01:00
Ryan Beisner 48a6334d28 Update functional test definitions
Change-Id: Ib370603b9c9106c85b6b36936c7ca4ea155cf3c1
2018-07-18 18:34:48 -04:00
Chris MacNaughton 6847ff9373 Remove old nova-compute / mysql relation
Change-Id: I0f07da697cb96279dcd7f7f70826c0c465737fb3
Closes-Bug: #1713807
2018-07-18 10:28:50 +02:00
Chris MacNaughton 43d868dc21 Sync charm-helpers to ensure Rocky support
Change-Id: Ib1fb899fbbe89158b0b5309b7fa8cb78229c9e40
2018-07-13 15:51:58 +02:00
Ryan Beisner a38333b879 Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: I53e9ff1e1153d086b3eb6d80b2f320c6ae75e880
2018-07-11 14:03:27 -05:00
Corey Bryant ec8bcd5f9d Sync charm-helpers for Rocky series support
Change-Id: Iec56fb9c4a2bfd79c3580dca54c5ba68d64fc4c0
2018-06-21 18:51:42 +00:00
Frode Nordahl 1f68a5874e
Update tests to not set `fsid` and `monitor-secret`
Get `fsid` from leader settings on ceph-mon unit where needed
for validation.

Change-Id: I751ecff76873a599c0d03ec1308e30e615e38aa8
Related-Bug: #1698154
2018-06-06 10:14:37 +02:00
Frode Nordahl 4368f6b545
Fix subscription of filter object error
In Python 3 filter() built-in returns a iterator and not a list

Change-Id: I641565109b0dcc816a66d3ca3eb578fb9ed44a1a
Closes-Bug: #1774694
2018-06-04 18:17:14 +02:00
Frode Nordahl 352d699387
Add pre-flight check for device pristinity
Add `non-pristine` key to `list-disks` action.

No longer attempt to do initializtion of `osd-journal` devices.

Make py27 test noop

Flip pep8 test to py3

Partial-Bug: #1698154
Change-Id: I0ca574fa7f0683b4e8a693b9f62fbf6b39689789
Depends-On: I90a866aa138d18e4242783c42d4c7c587f696d7d
2018-06-04 17:02:11 +02:00
Ryan Beisner 22ce311b0b
No reformat
Do not reformat devices.  A subsequent change will be necessary
to account for conditions where a reformat is still desired,
such as a set of blocking states and user-driven actions.

Partial-bug: #1698154

Depends-On: I90a866aa138d18e4242783c42d4c7c587f696d7d
Change-Id: I3a41ab38e7a1679cf4f5380a7cc56556da3aaf2b
2018-06-04 12:40:47 +02:00