Commit Graph

177 Commits

Author SHA1 Message Date
Alex Kavanagh e65eaf3151 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: If2944411e04d21448f518b701f74a35ae39cd20e
2024-02-12 18:19:33 +00:00
Corey Bryant bc8ee3ef8e 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

Depends-On: https://review.opendev.org/c/openstack/charm-ceph-radosgw/+/890700
Change-Id: I6136bff2e755afbd50c607782351d1d720a525fa
2023-08-14 17:23:52 +00:00
Corey Bryant f6212eac8b 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
* Sync charm-helpers to pick up fix for os_requires_version()

Change-Id: I9d44ab27409530e4690121e6ab7e3fdfeeda3071
2023-04-14 13:11:51 +00:00
Corey Bryant bc9c435dbc 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: I3840ac8ad4fd20978cf12e4a64fb4cf3fbc7f954
2023-03-07 20:07:26 +00:00
Felipe Reyes ca1524b41a Drop 'source' config key from support charms
Support charms (e.g. rabbitmq-server and mysql-innodb-cluster) source
their packages from distro and never from the cloud archive, this change
drops the set of that configuration key.

Change-Id: I129713bb3845c1d0264bc4e17bb297724d23ac6b
2022-10-26 10:46:55 -03:00
Corey Bryant 021c4256a7 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:33 +00:00
Alex Kavanagh e2255c29dd 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: I816a3034b055433a7688ac1165017c25f7fcf873
2022-02-15 16:10:36 +00:00
Hemanth Nakkina c2f877a7d4 Add support for cinder storage backend
Create new glance_api.conf template from Ussuri release to
use default_backend and enabled_backends configuration
parameters instead of deprecated stores, default_store
parameters.
Add new config option cinder-volume-types to specify the
volume types in cinder that can be used to store glance
images.
Add logic to update cinder in glance-api configurations
if cinder-volume-service relation is joined.

Also add two flags, cinder_http_retries and
cinder_state_transition_timeout

Closes-Bug: #1905042
Change-Id: Ife649defc9b765b433d7973ab31778f9cb1efdd9
2022-02-07 08:46:14 +05:30
Alex Kavanagh 3c32cab855 Migrate charm to charmhub latest/edge track
Change-Id: I0e037fd484a7a77b15095caa1f350e638410fcb6
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-01 13:06:14 +01:00
Corey Bryant 1e24f0c4cf Remove trusty/xenial metadata and function tests
Drop xenial metadata and function tests as the next release of
the charms won't support xenial.

Change-Id: Ia21075352add103592ffcdf7666c28dee32fcd96
2021-11-12 11:05:00 -05:00
Corey Bryant 7704576a46 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: I8226658c97575e3a0ccf0989a2690716afb2ac5e
2021-11-09 10:27:03 -05:00
Alex Kavanagh 99440f370f Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I5cf40c1d44ffac42f2a21615c2969ffcc9d1910b
2021-09-29 20:01:27 +00:00
Aurelien Lourot 434ab4b5ee Use new tempest Zaza test class
Change-Id: I149660d2a2e1f70b63d08a0ec343306fd19c316f
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/635
2021-09-16 12:47:41 +02:00
Alex Kavanagh febc35ea36 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: I39929fbe3626c83e985d6fb9b21422a1b17e81d1
2021-09-15 15:49:17 -07:00
Nobuto Murata a6dc972b09 Allow enabling S3 object storage backend
S3 backend has been available (again) since Ussuri in the upstream
Glance. We will enable the backend with config options for an external
S3 storage information.

Co-authored-by: Connor Chamberlain <connor.chamberlain@canonical.com>
Co-authored-by: Vladimir Grevtsev <vladimir.grevtsev@canonical.com>
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/574
Closes-Bug: #1919338
Change-Id: Id76a74cc6041b9c3364399254681138475f19935
2021-06-10 21:26:14 +09:00
Ionut Balutoiu 6af56b7ddd Add Ceph RGW backend testing
Enable multi-backend for the bundles with Ceph deployed.

The extra backend enabled is an object store, that uses the
OpenStack Swift compatible API provided by the Ceph RGW.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/505
Change-Id: I7125fbd4d188b2da3227ab8288a8aed3a61ef143
2021-03-22 02:15:04 +00:00
Billy Olsen efc10f7811 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I2357126e25ae77ef1ebb80b8dc444fcee747d515
2021-02-19 17:01:16 -07:00
Aurelien Lourot 3b34673d3e Add Groovy to the test gate
Change-Id: Ib244713fa78d4b0d8e37db2dcc16ba18ae1749a3
2021-01-07 10:45:20 +01:00
Frode Nordahl 8f3dfb184b
Add Ceph BlueStore Compression support
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: I997bb15c692c442db2db79d96882a2204186dbe1
2020-09-15 08:35:43 +02:00
Frode Nordahl a5698e04be
Test with Ceph by default from focal-ussuri onwards
Change-Id: I7bbe2907ce4ed266945b69548d7c6c07b73a0479
2020-09-10 14:43:34 +02:00
Zuul 6099da7ba5 Merge "Add focal-victoria to the test gate" 2020-09-08 15:29:25 +00:00
Liam Young 99baa4ad00 Add test using erasure coded pools
Change-Id: I6b953ceff5f681ecd0aa75faded3e3d1c8c6647b
2020-09-01 14:14:21 +00:00
Zuul d93df87a7f Merge "Run tempest smoke during charm smoke test" 2020-09-01 07:35:17 +00:00
Aurelien Lourot 4ba533e057 Add focal-victoria to the test gate
Change-Id: I1598bcb53216b439065c0487523140c5afd29e8f
2020-08-28 14:25:43 +02:00
Liam Young 1968c09af4 Run tempest smoke during charm smoke test
Closes-Bug: #1881140
Change-Id: Id380c052fbf7f23bd3b1c0826f953eeacd97b6fd
2020-08-27 18:12:07 +00:00
Aurelien Lourot b6fa136b48 Add Victoria test bundles
Change-Id: I51bf4c9fecb20e1fa9465a5855f1e7bde9a82438
2020-07-10 17:54:02 +02:00
Facundo Ciccioli 67c85a9688 Merge two configure keys into one in tests.yaml
Of the two keys, only the last one was being retained in the configure
array.

Change-Id: I38764497bffb2296d1993f5a147d2ba4e0633f22
2020-05-22 12:44:16 +02:00
Alex Kavanagh 848eb535a4 Remove policy.json from charm for ussuri
Glance (in ussuri) uses policy-in-code, and so that policy.json file
doesn't ship with the package.  This means that the charm can't rely on
the file existing ussuri onwards.  This patchset changes the way the
charm uses policy.json by switching it to a charm determined policy.yaml
file (preferred format) with the only 3 options that the charm
determines to enforce.

Also add yaml vars to focal-ussuri bundle

This brings it into line with the other charms that are part of the the
enable-focal topic.  This makes it easier to add a new bundle just by
changing a couple of variables.

Closes-Bug: #1872996
Change-Id: I47f19272a4e0af3781843608b76304ce8ba1e2b8
2020-04-23 16:17:35 +01:00
Alex Kavanagh 45aff98f6b Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.  Note that this requires a modified zaza (to use the
force_deploy option).

Change-Id: I68574e63552ae796254bfa4929342459951cab21
2020-03-13 13:02:25 +00:00
Corey Bryant ecf87a2135 Sync charm-helpers for Ussuri/Focal release and version details
Also drop disco-stein test bundle now that Disco is EOL.

Change-Id: I34e9af5f75f1568b80c198fbfe81b7c37989b9ec
2020-01-22 14:20:01 +00:00
Sahid Orentino Ferdjaoui 24071f1eb1 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I7ae6552f9feb3484cad46c189e4f290679e2535d
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-18 10:25:19 +02:00
Alex Kavanagh 97152f55a1 Policyd override implementation
This patchset implements policy overrides for glance.  It uses the
code in charmhelpers.

Change-Id: I0586326ff87fdf03f2c88e4c459627f4085c3367
Closed-Bug: #1741723
2019-10-07 22:04:00 +01:00
Joe Guo 35beb586da Migrate functional tests from Amulet to Zaza
Migrate glance tests from Amulet to Zaza, which is Python3 only.

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

Partial-Bug: 1828424

Change-Id: I053a056d8e2a79ed22ea8a976a8f378994b1e8eb
Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-10 14:48:18 +12:00
Camille Rodriguez 99e5a7818e 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: I3a991b0aab724ce7b7c9376adabb607aacd2c94f
2019-08-29 16:34:52 -04:00
Corey Bryant 557566e9d9 Sync charm-helpers and use "rabbit_use_ssl" for ocata
Ensure "rabbit_use_ssl" is specified in the [oslo_messaging_rabbit]
config section instead of "ssl" for Ocata, since "ssl" was not yet
introduced.

Change-Id: I192396dbd1ef96cab95e3958ae06fd86aa54ab46
Closes-Bug: #1838696
2019-08-05 11:48:13 +01:00
Chris MacNaughton b9a8aee3ce Sync charm-helpers
Change-Id: Ied5ffd31b488f45d062eec04ef61bf8f941d70f3
2019-07-16 07:06:04 +00:00
Frode Nordahl b5c36ecd5e
Enable bionic/stein and disco/stein functional tests
Gate ``glance-registry`` checks on < ``bionic-stein``

Change-Id: Id6314c34a33da09f69297454b7b16abc5da0590e
2019-04-08 14:37:21 +02:00
Chris MacNaughton 35afe120af Add security-checklist action
Change-Id: Ie1f0dcc85c708d2e837d09c7472a35d5ffa7fd13
2019-03-14 16:49:11 +01:00
Corey Bryant 5ae43bb056 Update rabbit driver config options
The stein version of python-oslo.messaging (9.0.0+) has removed
the following config options from the [oslo_messaging_rabbit]
section:

rabbit_host, rabbit_port, rabbit_hosts, rabbit_userid,
rabbit_password, rabbit_virtual_host rabbit_max_retries, and
rabbit_durable_queues.

The above change requires a sync from charm-helpers.

Additionally the transport_url directive has been moved to the
[DEFAULT] section.

These have been deprecated since Ocata, therefore this change
will be provided to pre-Stein templates in order to drop
deprecation warnings.

See release notes at:
https://docs.openstack.org/releasenotes/oslo.messaging/index.html

test_300_glance_api_default_config is also removed in this change
as amulet tests no longer need to confirm config file settings.

Change-Id: I02c02f71669433ea719dffae42073771a40f743a
Closes-Bug: #1817672
2019-02-26 13:35:10 +00:00
Ryan Beisner a258eb812c
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: Ifbb43a8eb12b1fb499fd73b6c7d5d184c29feb0f
2019-02-06 14:48:15 -06:00
Corey Bryant 42b9ced7f3 Sync charm-helpers and corresponding amulet update
Change-Id: Ic112efef37125b0c47c92f3c168d041467409f3f
2019-01-12 14:21:28 +00:00
Corey Bryant e4d2334e91 Sync charm-helpers and corresponding amulet update
The amulet tests now explicitly specify the pymysql driver for the
mysql sqlalchemy dialect. The sqlalchemy package has switched back
to using mysqldb as the default driver for the mysql dialect in
Ubuntu Disco (Stein) and charm-helpers has been updated
accordingly to maintain the same behavior.

Change-Id: I5f1c3768eac53c8a9a5cdd43b393a6c7f9b14e4c
2019-01-08 13:04:48 -05:00
Corey Bryant 981b86a3a1 V3 authtoken update and glance v1 icehouse
Update the keystone authtoken template section to explicitly
specify v3 API when it is in use. This prevents errors that
result in "Could not find versioned identity endpoints when
attempting to authenticate".

Along with this change we remove the tests that verify the
keystone_authtoken section as it's generally agreed that
functional testing should catch issues with this config.
Also update requirements to fix pyyaml dep of charm-tools.

Finally get glance v1 client for icehouse. Previously the
image virt type was qemu and the compute node virt type was
kvm. This works for deployments prior to rocky but in rocky
this causes the image type filter to return no valid hosts.
An update to charmhelpers has removed the default behaviour
of setting the virt type to 'qemu' by default. Due to a bug
in icehouse updating glance image properties using the v2 api
fails (See Bug #1371559) so for icehouse deploys get a v1
client.

Change-Id: I4ca604c674bda5d5f7daca6a3e9d13c8b4bd4efa
Closes-Bug: #1794637
2018-10-04 07:48:29 -04:00
Ryan Beisner 0720f3bc3a Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I949555f44d970fbf82b9464be75ff3e88835a31c
2018-10-03 11:41:04 -05:00
Zuul d7458de624 Merge "py3: Switch to using Python 3 for rocky or later" 2018-09-24 14:49:22 +00:00
James Page 6001f58a48 py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that where explicitly
installed and then autoremove --purge any dependencies that are
no longer required.

Tidy install on ceph relation joined - python-ceph is a dependency
of ceph-common, so no need to explicitly install.

Change-Id: I7b66bb3ab9f9130c9054411819d51434480cac97
2018-09-21 16:28:48 +02:00
Ryan Beisner 362579dd41 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: Ic2e33f35fe2f65637994fe6b1e8c9ffdeb9df60a
2018-09-19 13:26:08 +02:00
Ryan Beisner 097d322b89 Sync charm helpers and enable rocky func test
Change-Id: I9c9709e86f58459cec1ee78a1e545fe23aa8926c
2018-08-24 20:34:41 -07:00
Ryan Beisner 1cc162e5e5 Update functional test definitions
Change-Id: Iecd4ad01561a5c39e1811a42deedf5b9ab474f5c
2018-07-18 18:35:47 -04:00
Ryan Beisner ffa02c1287 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: I7bb7a880a81a00abc537137f308694210d2779ae
2018-07-11 14:04:35 -05:00