Commit Graph

34 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 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
Liam Young 308a4be3fc Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ieb47092784cadd4cd09b7aff959471d244704811
2023-01-16 16:12:24 +00:00
Bas de Bruijne 9304d15434 Add juju-exec for juju 3 compatibility
In juju3, juju-run is moved to juju-exec
gsss should be able to handle both

Closes-bug: #1993652
Change-Id: I980306269a68c04735811324f6b826622bc6647c
2022-12-08 15:57:24 -04: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 de4f9a6a97 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/745
Change-Id: I118ac221202fb02fc440a21910235fbc645a54c8
2022-04-11 11:33:05 +01: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
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
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
Aurelien Lourot 02ff4a0438 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: I64cde3e5338c6f47736afb9b5cfff78668c772dd
2021-07-22 14:54:17 +02:00
Aurelien Lourot 6b84669d87 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: If90f5bc7cb4b6fd2670fdf41dfad61e5b390e1e4
2020-12-11 13:56:04 +01:00
Alex Kavanagh f9066d3356 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I599652b5a0c2ec9c0d7d1d31a0d3ead575088c26
2020-09-26 18:32:51 +01:00
Alex Kavanagh 7c27ca366d Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt
- Fix style error due to W503

Change-Id: I44e4f9d41433f23f71684e10e28fd5b01d8fa5f1
2020-07-28 10:35:02 +01:00
James Page ce58ee5266 Add py38 tox target
Fixes issue with failing Python 3.8 unit testing in zuul.

Change-Id: I6c03b01b5e58091c4d2634d520221834fad5111c
2020-06-11 06:45:23 +01:00
James Page 878f88f3cc Misc tidy up for flake8 upgrade
Remove the upper bounds on flake8 for compatibility with
Ubuntu Focal.

Misc tidy of new lint as a result.

Change-Id: Ib6fb7955b4990e83634aae190145d8c463b6e226
2020-06-03 12:02:17 +01:00
Ryan Beisner 38fe36568f
Sync charm/ceph helpers, tox, and requirements
Change-Id: I94fece65ef9f5954d46ff06a7829ab71c1390551
2019-09-30 22:10:06 -05:00
Ryan Beisner e69a562494
Standardize auxiliary file location across os-charms
Change-Id: Ic06c4fcdd87d350a0e41cb9de62bd7887aae7168
Closes-Bug: #1843826
2019-09-12 15:27:36 -05: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
Zuul f241bf467c Merge "Add Python 3 Train unit tests" 2019-08-13 18:05:20 +00:00
Corey Bryant 74b5e386d5 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I8260eeaccd4539ac81fa4dc1805262d1d083e1c7
Story: #2005924
Task: #34228
2019-07-30 10:16:26 -04:00
Chris MacNaughton e46a5a8212 Sync charm-helpers
Change-Id: I05193a26e6b06a18348d087b4887e1173d5ddbaa
2019-07-16 07:06:06 +00:00
Pete Vander Giessen a1ac01b9ed Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ibfaea423d6e267ac95c6f4d91aba324e9e2cf3d8
2019-03-07 17:11:21 -05:00
Paul Goins 96dbc7ec58 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I819fd8f2623353c25354a132fe1bbf232e7477b1
2019-03-01 14:39:32 +01:00
Alex Kavanagh 6aa32f2d67 Migrate charm to Python3
Change-Id: Ibb46dfa766b12aedea90f823d3964c569bdfcb01
2019-02-04 19:18:02 +00: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
Doug Hellmann 8ec56ce0fb fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ie4bd11d0f71bf179914f36405d77fe63fc8ce02b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:38:10 -04:00
Ryan Beisner 9b4dc01635 Update functional test definitions
Change-Id: Ie7fed53d9f0012b8d87a95625993d217d3385278
2018-07-18 18:35:54 -04:00
Nguyen Van Duc 94dbc31313 Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: I11420372bf7b49040be37ecc4a22d4dfb83e1725
2018-07-12 17:53:24 +07:00
Ryan Beisner bbcbd985e8 Update tox to add lint coverage of scripts dir 2018-04-12 19:11:29 +00:00
Ryan Beisner 718676787a Update tox, requirements, add initial func tests framework 2018-04-06 22:06:49 +00:00
James Page 6cc0f9dc88 Initial baseline from bzr 2017-04-10 09:00:27 +01:00