Commit Graph

47 Commits

Author SHA1 Message Date
Alex Kavanagh 8e06469fe4 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: Ieb68946379d497db3ac385513c528b852dba88cd
2024-02-24 19:53:38 +00:00
Corey Bryant c6a07458dc 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: I6d6ebb956a977dcc68c20aea03f318c0257a4bb7
2023-08-02 14:20:38 -04:00
Corey Bryant 6faf284248 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: I37c5aff2d71eae71015d1a1986fb73f64b864a94
2023-03-29 21:01:48 +00:00
Corey Bryant 36e29d6d8b 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: I884e0f8fa0602fb9b9ab79157619f4cd18191b79
2023-03-07 20:34:31 +00:00
Guilherme Maluf Balzana 4754aca420 Add set_latest_property config to new image
When creating Openstack VMs the user has to specify the image it wants
to use. sstream-mirror-glance adds a date to the image name, so they
always have to recheck which is the current latest image.

This commit adds the `set_latest_property` configuration to include
--set-latest-property to sstream-mirror-glance command line argument.

When --set-latest-property is given sstream-mirror-glance will set the
recently synced image with the `latest=true` property and then remove
the `latest` property from all the os_version/architecture matching
images.

Configure bundles to fetch simplestreams snap from edge channel

Closes-bug: #1933130
Change-Id: Idf78294db7abb8c81d637086e8142782bf1dd36f
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/853
2022-09-23 10:31:43 +02:00
Corey Bryant abbae65b13 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: Iff2f3d0e011b47d895136ab7376f0e7d9c3955fb
2022-08-26 18:40:34 +00:00
Alex Kavanagh a8785bc2cf 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: I2b4ecddd0aa8b7dfcb3cf739a2f52ef93dc7ecf2
2022-02-17 12:30:08 -05:00
Alex Kavanagh 5288a0fcad Migrate charm to charmhub latest/edge track
Change-Id: I5653b9631b340fed318aaafcb8cee55ea3602e60
2022-01-27 20:16:43 +00:00
Corey Bryant 123697e62f Additional test updates
* drop xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I248d0c92e64692127e2a53a8cffc2efe56a8d790
2021-11-17 14:47:05 -05:00
Corey Bryant b9bfe131d7 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: Icd1043fb0841908caeba593be2dbd07597fccb8b
2021-11-09 10:27:03 -05:00
Alex Kavanagh 60ceb7c5a1 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ib870520e0fe1027132024633dd429cb637dd33df
2021-09-23 10:50:27 +01:00
Dmitrii Shcherbakov d1f8c4ba4c Remove local apache2 install, rework use_swift
The functionality of use_swift where a local apache2 instance was set up
for metadata was deprecated for removal and this change actually removes
this. However, the option itself can still be used as an indicator
whether Swift is intended to be used for simplestreams metadata or not.
If the usage is explicitly requested, the charm but Swift endpoints are
not yet present, the charm will now will set the unit state to
maintenance in addition to local logging that was done previously.

Swift presence checking is now endpoint-based instead of being
service-based (no use for the case where endpoints are not set up while
the service is in the catalog).

The lack of swift presence is also ignored for the purposes of
generating proxy setting context - if the endpoint is not there there is
not point in trying to generate NO_PROXY rules for it.

This change also makes test bundles use ceph as a storage medium for
glance since out of space errors were encountered during testing as the
glance unit was running out of space for image storage.

Closes-Bug: #1942047
Closes-Bug: #1934563
Closes-Bug: #1938069

Change-Id: I6519b1449806ad19ee4545501bc4631c9f8e535f
2021-09-02 17:34:25 +03:00
Alex Kavanagh 9d5de4d077 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: I2a09dc92ae59ed43c87c3c24def1240c117482fd
2021-05-06 10:11:27 +00:00
Billy Olsen 2367d52488 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ia2dd54c7c9eeb18764f841166ef1e31ac9a1288d
2021-02-19 17:01:28 -07:00
Aurelien Lourot 5ee94d7d8f Add Groovy to the test gate
Change-Id: Id431d33f0e46eeca8a19fc2441d97f0b1bdf2be0
2020-11-05 12:46:55 +01:00
Aurelien Lourot 477e985978 Add focal-victoria to the test gate
Change-Id: I1a1458e6dc4e012ef29157f23ab2af297948a5ae
2020-08-28 14:25:49 +02:00
Aurelien Lourot d4af9785f6 Add Victoria test bundles
Change-Id: I820ccdda90e15b4dd8bcc711cdb8d72589c134c2
2020-07-23 09:24:47 +00:00
James Page 4925c3573b Test using Ceph RADOS Gateway
Using a swift endpoint to store simplestreams data is more
typical than using the webserver on the gss charm itself.

Switch all tests to use this approach and refresh all bundles
to be consistent in layout.

Change-Id: I36e3faa4c202ded602620aa606ce6c13d9ab699a
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/335
2020-06-30 16:20:34 +01:00
James Page 9698b5ca2a Drop RabbitMQ support
Drop support for sending sync status messages to a RMQ exchange.

This was used by conjure-up which is no longer maintained so
drop the supporting code, metadata and options and remove
RabbitMQ from all test bundles.

Change-Id: I504508a64e50a9d331f6c5d69b292d9ccc20da3d
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/321
2020-06-18 08:50:34 +01:00
James Page fd3d2b7610 Switch to using snap for simplestreams tools
Switch over to using the new simplestreams snap instead of using
the largely unmaintained packaging in distro (and various PPA's).

This drops direct integration with the simplestreams codebase
in preference to just calling the sstream-mirror-glance command
with the correct parameters.

This commit includes refactoring of 'custom_properties' handling
which was actually broken - there was no loading of the yaml
formatted list, which was probably overkill, so the option now
takes a space separated list of key=value pairs, for example:

 custom_properties="hw_firmware_type=uefi hw_vif_multiqueue_enabled=true"

Fix version comparison in script wrapper.

Drop Trusty support - snaps on Trusty are awkward requiring new
kernel versions and trusty support was only retained for upgrade
purposes anyway.

Drop unsupported Xenial OpenStack versions.

Fixup CA cert handling to use any charm installed CA cert (including
that provided via the certificates relation) and install cert
to snap compatible location for simplestreams to use.

Add basic action to perform image sync on demand an refactor
the glance simplestreams sync wrapper to work within a hook
context to support the action.

Disable automatic scheduling of image syncs by default as this
tends to be racey during deployment resulting in images being
synced to glance unit local storage.

Add bionic-ussuri bundle and make it the default smoke test.

Deprecate source and key options - no longer required for
deployment with snap.

Change-Id: I730df6b7f5955ddfeea5b8de15490ac083823f5a
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/321
2020-06-18 08:50:02 +01:00
Sérgio Manso b9f7f7402c Focal enablement
Added support for charm to install py3 packages

Fixed gss script to run on both py2 and py3

Added the ability for the script wrapper to get the distro version
so the gss script can be launched with the right python binary.

focal-ussuri test bundle added and smoke/dev tests changed to focal-ussuri

charmhelpers sync

-----
LP related bug: #1853456

Change-Id: I161d8a0fa9787f0d5409f7bf386c22d98aae0a64
2020-04-24 22:26:15 +01:00
Liam Young 5ef3df5f96 Charmhelper sync for 20.02
Remove disco stein from metadata and tests

Change-Id: I5832947041f30cfc39ce331f8e523bf15c650781
2020-02-05 04:13:45 +01:00
Corey Bryant d6c63c8e57 Switch functional smoke test to bionic-train
This patch also adds bionic-train to gate tests.

Change-Id: I69a297392bf52f3ec016af2ad1e3fb46a8856b06
2019-10-22 14:55:35 -04:00
Joe Guo 660ce5b021 Migrate from Amulet to Zaza
This patch migrate tests from Amulet to Zaza, and Python3 only.

SSL is enabled for all bundles with charm-vault, except trusty, which is
not supported by vault.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/55

Partial-Bug: 1828424

Change-Id: I4dacf33d3ab4dedbbe62a36b1b2ce5606e51d234
Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-12 22:41:32 +12:00
Camille Rodriguez 77fab98142 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: I37308917d3bb31a7c53fce6a10addf95a85bb2b5
2019-08-30 19:37:49 +00:00
David Ames 3482fb7707 Allow local hosting of product-streams
When use_swift=False in addition to syncing images into glance, also
host the product streams metadata using apache.

Change-Id: I6aad2fee3670f575014d0845f3bd7aae6fa06785
Closes-Bug: #1840830
2019-08-20 15:38:39 -07:00
Chris MacNaughton e46a5a8212 Sync charm-helpers
Change-Id: I05193a26e6b06a18348d087b4887e1173d5ddbaa
2019-07-16 07:06:06 +00:00
Frode Nordahl 2bf16f2ec6 Enable bionic/stein and disco/stein functional tests
Change-Id: Iadc487d3f79374cc450e16b97424d445334d896c
2019-04-09 06:38:28 +02:00
Ryan Beisner fc5ffdf2b2
Sync charm helpers and enable rocky func test
Also switch the func test to use charm-helpers in a venv,
removing tests/charmhelpers to be in line with the other
charms.

Change-Id: I8c83bf1fb35b10438cc87fd0b8c86cb5a4846a72
2019-02-28 13:45:54 +01:00
Ryan Beisner 77e472061e
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I0fcb86bdf46f203fc5e4ba062516b4babb63f795
2019-02-11 16:14:21 -06:00
Zuul ac851be0f1 Merge "Add ssl_ca option to enable to gss" 2019-01-11 11:01:35 +00:00
Alex Kavanagh ac1d2b5dda Add ssl_ca option to enable to gss
This patch enables SSL to be used with glance-simplestreams-sync.
The ssl_ca option allows a base64 encoded PEM CA certificate to be
used with g-s-s such that the keystone and glance HTTPS sessions are
verified using that certificate.

A new basic_deployment_ssl.py is introduced that just verifies that the
gss charm can get gss to perform a sync; this verifies that gss can
communicate with https versions of keystone and glance.

Note that the simplestreams package also requires a change for SSL to
function properly.  As simplestreams doesn't seem to use PyPi, the
version from the git master will need to be used.

Change-Id: Idcdcb2c933a92a558e729aeb718b58d4077621a7
Closes-Bug: #1802407
2019-01-11 09:37:56 +00:00
Ryan Beisner 59bd350a69 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I86e33814f54debc54b5a29423badbfec19002f4b
2018-10-03 11:41:11 -05:00
Ryan Beisner 1f017a20ba 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: Ia211f4990e80496c1f47489b7c9679d38d586da5
2018-09-19 13:26:24 +02:00
Ryan Beisner 9b4dc01635 Update functional test definitions
Change-Id: Ie7fed53d9f0012b8d87a95625993d217d3385278
2018-07-18 18:35:54 -04:00
Chris MacNaughton 0bdfd6b36c Sync charm-helpers to ensure Rocky support
Change-Id: Id7b920ba756d4a3d2082e838c3309726ba3de278
2018-07-13 15:54:31 +02:00
Ryan Beisner 38feafef62 Clean up lint, old vcs and project files
Change-Id: I221436be8e82c229ebd48005c50974453db5acc8
2018-06-11 19:48:47 -05:00
Ryan Beisner 2feade3af0
Merge pull request #4 from openstack-charmers/test-updates
Wait for Sync completed workload status
2018-04-13 09:51:00 -05:00
David Ames 1f4123e898 Wait for Sync completed workload status
The charm does in fact set workload status. But not with a "ready" message.
Check for "Sync completed" workload status before continuing with further
tests. This workload message alone indicates the health and functionality of
the gsss charm.

The test for glance services is orthogonal to testing the gsss charm. Removed
it.
2018-04-12 23:01:00 +00:00
Ryan Beisner b21bd8c969 Add regression test on log file perms 2018-04-12 19:22:41 +00:00
Ryan Beisner 379d06a39e Update series metadata, test combos and readme 2018-04-10 14:33:49 +00:00
Ryan Beisner ad18257148 Update functional test suite
The premise of this functional test is to be a black-box
functional check:  can the charm sync an image?  If so,
job-done, move along.

Other explicit checks which came along with legacy charm
tests have proven to be brittle and of little value in
catching actual, meaningful issues.  As such, remove those
introspections.
2018-04-10 13:33:32 +00:00
Ryan Beisner 266a7abaf8 Add new gss-specific tests to confirm image sync and file perms 2018-04-10 12:13:32 +00:00
Ryan Beisner b79a2f1772 Use simplestreams dev ppa for ksv3 features
https://bugs.launchpad.net/bugs/1686437

Also, reconfigure test to not use swift, as it is not present
in this deployment.
2018-04-09 17:16:37 +00:00
Ryan Beisner 624705af38 Add gss relations and config to tests 2018-04-09 14:51:31 +00:00
Ryan Beisner d129a93c94 Update functional test source and origin
Also remove copy-pasta tests which are just relevant to the glance charm
2018-04-06 22:49:28 +00:00
Ryan Beisner 718676787a Update tox, requirements, add initial func tests framework 2018-04-06 22:06:49 +00:00