Commit Graph

106 Commits

Author SHA1 Message Date
Alex Kavanagh f25fe722f8 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: I0a38c624cc501b22c19ec69f4e50d6fbf5f3a24b
2024-02-12 18:19:08 +00:00
Felipe Reyes fba26a326c Add jammy-bobcat-ec testing bundle
Change-Id: Id86b01a79f7dade25b3bd0a25c8c0bde55360c7a
2023-11-03 10:11:09 -03:00
Alex Kavanagh f8ebb908d7 Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: Ifda8aa2675b4a756109254f62b9a600c42679cac
2023-10-25 14:40:56 +01:00
Corey Bryant eb954d6706 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* 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
* update charmcraft_channel to 2.x/stable

Change-Id: I811047188b2ef56b1b59cc1e02cb3b17943bf919
2023-08-02 14:13:08 -04:00
Corey Bryant a973d9351e Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: Id4b79992d0a5220fa8013da03656e6b676d27967
2023-03-29 21:01:48 +00:00
Corey Bryant 558a95df94 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Ibceaa9d30d3d4a9a4e67fe5e45446b94f1d2e064
2023-03-08 13:22:36 +00:00
Chris MacNaughton ccb648626f cinder-ceph has no need for full ceph functional tests
Change-Id: I09e2cd57889b55b965df019cd8dc37c65d3a9287
2022-10-11 16:41:54 -04:00
Corey Bryant 0eeb90b755 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I782ea5c502b7bc0eb9941c7eb8d4b830f07b218a
2022-08-26 18:40:31 +00:00
Alex Kavanagh 5f86b1cb19 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: I8a57a9ae84668d67dd29dd819152716b366461a4
2022-02-17 12:30:07 -05:00
Alex Kavanagh ff00233cff Migrate charm to charmhub latest/edge track
Change-Id: Iaea6a19a806aeddd6551cdca3120c4d115b5a4cd
2022-01-28 20:30:27 -07:00
Corey Bryant 85b46bb1b6 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

Change-Id: I315a7941cd6c5eaea698657af122adb221f5647f
2021-11-17 13:49:42 -05:00
Alex Kavanagh 12dc316716 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy bundlest
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ie1c6883cd66e128a10866d9b83975b2d7ecc343b
2021-09-30 13:29:08 +00:00
Alex Kavanagh 1326664ee1 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 libraries.

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: Ib3056ce7f712514b035d9af95a6a6ac7f834531c
2021-05-06 10:24:50 +00:00
Billy Olsen fdc7a1da3d Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I961f8a4c17903cf9cca00d5fd03f612e61cec3c1
2021-02-19 17:00:40 -07:00
Aurelien Lourot 57d5d6f26b Add Groovy to the test gate
Change-Id: I95e4e62acb77e60c45ecfe3d772507def5199e3f
2021-01-07 09:27:02 +00:00
Zuul fcbc6e76aa Merge "Add BlueStore Compression support" 2020-09-24 10:45:00 +00:00
Frode Nordahl 86986d13ce
Add BlueStore Compression support
Unpin flake8

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: I19de6b53a8f6c8f6492f5acccc3ea8d8a14cc4d9
2020-09-17 12:34:26 +02:00
Aurelien Lourot e6e8fe1377 Add focal-victoria to the test gate
Also add erasure coded Victoria bundles

Change-Id: I9e5ff31781170319a1dddef2e9780b7851d004c3
2020-09-08 13:37:55 +02:00
Liam Young 3cc2cc5a00 Add test using erasure coded pools
Change-Id: I746f475be5477f958026baa72724ac9487eafe4f
2020-09-07 09:45:08 +00:00
Aurelien Lourot 4ac805177a Add Victoria test bundles
Change-Id: I6ad0deb3783461f5f63c6a5b3740297d77bf2f39
2020-07-08 14:32:12 +02:00
Alex Kavanagh 0b0d8443b2 Add focal/ussuri bundles to charm
This relies on (and is stacked on) the amulet->zaza tests
for the same charm.

Change-Id: Ic302b402ed4788451e026cea5330351f9520db30
2020-05-20 13:33:44 +01:00
Ryan Beisner c0f870c4ff Move charm tests to zaza
Use the same assertions as the cinder charm. Also port the 499 original
test, which is in the associated depends in zaza-openstack-tests.

Change-Id: I86f2ab205d0f082dd6b185ccbfa314bccf4e5bfb
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/246
Closes-Bug: #1828424
2020-05-20 09:47:32 +01:00
Alex Kavanagh 84389bdc4e Sync charm-helpers for py38/focal pre-support
This is to enable other charms to pass there enable-focal patchsets.
The pre-enable is simply to sync in charmhelpers with py38 support so
that this charm can participate in ceph-osd's focal enablement.

Change-Id: If2aca7193772ca4e9898e19adc0fda92cf1ac905
2020-04-16 15:30:32 +01:00
Frode Nordahl 03bf9e43d5
tests: Remove admin_token from ks relation introspection
Change-Id: Ia301ffed4cfe1fef41a9f25a9cdc068479c542e7
2020-03-16 12:07:30 +01:00
Alex Kavanagh f654cdf9b1 Remove defunct cosmic dev test as cosmic is EOL
Change-Id: Ia6232560ec15dc8589b60ab36189a2f24d8ffc88
2020-02-18 18:47:29 +00:00
Liam Young de021ecf2b Charmhelper sync for 20.02
Also remove disco from metadata and tests

Change-Id: I932a09f99df19a9916450060b67f0e43085b0b02
2020-02-05 04:04:50 +01:00
Sahid Orentino Ferdjaoui b8201a09ee Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I8f3a4b38571ab560564d135f69664c294820158e
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-31 08:32:12 +00:00
Camille Rodriguez cc86a05bd6 Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718
Change-Id: I306adef1efe667966ad502177c3efc317b16e911
2019-08-26 17:12:40 -04:00
Chris MacNaughton 90c8df4e3c Sync charm-helpers
Change-Id: I4f397c620be9f545ed0b6d0ccf3b6949544e4b51
2019-07-16 07:06:06 +00:00
Edward Hope-Morley 276a567e4f Fix amulet test that should have been resolved in commit 616ba36
Also resolve merge collision between commits 2f8b158b and
616ba364 that accidentally enabled rbd_flatten_volume_from_snapshot
for >= Ocata rather than >= Queens (which is also causing the
amulet test to fail).

Change-Id: I8a8b95d34f498cc3a7a52aaf90a8684ab80399b3
2019-06-18 17:06:44 +01:00
Liam Young 2f8b158b15 Allow users to choose to flattern volumes
Expose rbd_flatten_volume_from_snapshot to the user which allows
then to flatten volumes created from snapshots to remove
dependency from volume to snapshot.

Change-Id: I22a3c82535efac5334dd5deaadbba0dd1eae83ab
Closes-Bug: #1824582
2019-04-17 15:32:11 +00:00
Frode Nordahl 15016cfe9a
Enable bionic/stein and disco/stein functional tests
Change-Id: If75a9302391c3c49fc7d9b9b5817a2dd652379e2
2019-04-08 13:08:20 +02:00
Chris MacNaughton 15cc42ba40 Sync charm-helpers for Stein release
As a part of the Stein release, we need to ensure
that charmhelpers is up to date.

Change-Id: Ib2c759cb8e6ae7f4d391b89163a5ee1ba6285d31
2019-04-05 11:37:36 +02:00
Ryan Beisner f29b3b91e5
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I564d55b43fa466d3f1087302c2a2f67a477effc1
2019-02-06 14:48:04 -06:00
Alex Kavanagh 9802731e58 Migrate charm to python3 only runtime
Change-Id: I921f3e2fc8250ca7250ca7dfc47e12644ce4ef98
2019-01-31 22:05:20 +00:00
Syed Mohammad Adnan Karim 2378c424ee Adds amulet test - ceph.conf alternatives removal
Test checks for the removal of ceph.conf alternatives when ceph-mon
relation is broken. If ceph.conf is not present when the relation is
still joined, the test fails. If ceph.conf is not removed after the
relation is broken, the test fails. The test will pass if an existing
ceph.conf file is removed after the ceph-mon relation is broken.

Change-Id: I3b348a58bd2e3ebbbecbd3bbb4307c490a0c4ea4
Related-Bug: 1778084
2018-12-03 14:51:34 +00:00
Zuul 24aa7e99bf Merge "Enable discard" 2018-10-04 14:50:55 +00:00
Ryan Beisner c8fcfd37d2 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ief40b8f20baeff38389de7c4294a5bb394d6d3cc
2018-10-03 11:40:55 -05:00
Edward Hope-Morley 9444b4402c Enable discard
By default nova/libvirt will not enable trim for
attached volumes so to allow users to use this
feature we now enable it by default.

Also removed < Icehouse unit test.

Change-Id: I58ffaa43e2836068aeed7795df670d279d5e28f8
Closes-Bug: #1781382
2018-09-28 10:29:30 +01:00
Zuul 11d87b8d5a Merge "py3: Enable Python 3 at Rocky" 2018-09-21 10:19:52 +00:00
Ryan Beisner c0d4b93ebc 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: Ic979610078651e4479f2c251c809e7ff3f542e73
2018-09-19 13:25:48 +02:00
James Page 3f3eb45777 py3: Enable Python 3 at Rocky
Misc updates for rocky:

  - Switch default smoke test to bionic-rocky
  - Resync charm helpers

The change for this charm is minimal as it directly uses
ceph-common.  The cinder charm actually deals with installation
of the required python-rados/rbd libraries for the ceph
integration.

Change-Id: Ic2ee4b845ab604d80b7e27492f522d57f9463af1
2018-09-18 15:08:48 +02:00
Edward Hope-Morley b04b5f3b5f Add support for rbd_exclusive_cinder_pool
As of the of the queens release cinder supports this config
option which, if enabled, stops cinder from query all
volumes in a pool every time it does a delete in order to
get accurate pool usage stats. The problem is that this
causes tons of non-fatal race conditions and slows down deletes
to the point where the rpc thread pool fills up blocking
further requests. Our charms do not configure pool by default
and we are not aware of anyone doing this in the field so
this patch enables this option by default.

Change-Id: I5377e2886a6e206d30bd7dc38a7e43a085aa524c
Closes-Bug: 1789828
2018-09-11 14:02:43 -06:00
Ryan Beisner f2d17851a4 Update functional test definitions
Change-Id: Id439ece547dc1922211e8aebba6e8c872928a3c0
2018-08-27 18:14:03 -05:00
Ryan Beisner cafa7a22e8 Update functional test definitions
Change-Id: I53484285a6ef4b5b1220855081d2635452d66a75
2018-07-18 18:35:26 -04:00
Chris MacNaughton a4c6c088f7 Sync charm-helpers to ensure Rocky support
Change-Id: Ibb458a0eae4c4cc25dc5eb511e91aae0ed53106b
2018-07-13 15:53:47 +02:00
Ryan Beisner fd23480578 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: Ib4441a6fa515e2e320c68a8a765a2f30ee74f4ca
2018-07-11 14:04:11 -05:00
Corey Bryant 9dfc73e772 Sync charm-helpers for Rocky series support
Change-Id: Ide82e8b03af359146325bfccbadf61f558b027fd
2018-06-21 19:07:29 +00:00
Chris MacNaughton 930d7c3608 Update tests to use Juju storage
Due to changes to the ceph-osd charm, it is
suggested to use Juju storage for testing.

Change-Id: I14ab9533a53105f8edc2c4af1d98b336a898df00
Related-Bug: #1698154
2018-06-04 17:31:46 +02:00
David Ames 65a188172f Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I808c6451583d66c8b8a17ed1bffc8a37660f6022
2018-05-16 13:28:02 -07:00