Commit Graph

120 Commits

Author SHA1 Message Date
Alex Kavanagh c28e1c23ac 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: Iab51a774517ee8bd397eb900bd76a0620aa3dd6d
2024-02-24 19:54:20 +00:00
Corey Bryant 2e66fd3a1a 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: I5e455d302d43f36eab9d7b9063e634d1f1b0d991
2023-08-02 14:25:10 -04:00
Peter Matulis 34e8177165 Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: I1fe8dfc4744e71700a4546f80a83e0ab1ddca2aa
2023-07-06 15:03:38 -04:00
Jadon Naas b9bd4b9e35 Fix a breaking typo in the Jinja templates
There is an improperly formatted comment in a Jinja2 template.
This causes Juju hooks to fail with a template syntax error.

Closes-Bug: 2025507
Change-Id: I8d3758e52252d8f1d171de83f614aa4a611d98e8
2023-06-30 15:33:50 -04:00
Corey Bryant 6f74111626 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
* Add libpython3-dev to allow the charm to be built. This
  fixes a missing dependency with Cython

Change-Id: I102ee0648ffbbed87df5b3de6cb964ee6fb90744
2023-04-14 15:01:22 +00:00
Corey Bryant 30630eba2e 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: I325ec88ff5033615fbf68334c08ef63e23bbe245
2023-03-07 20:35:09 +00:00
Liam Young b2703578ec Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I04a1adaf657a262ac1eac3ece98fa265ea63f864
2023-01-23 21:04:37 +00:00
Corey Bryant 901afa5de4 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: I3cc0af8443ecf62589c88d4e924cb633c419e87f
2022-08-31 20:14:28 +01:00
Alex Kavanagh c07c7c8ea9 Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I66fde77850bc5682ec6ddddbb18bdada33e70dc5
2022-04-18 21:07:44 +01:00
Alex Kavanagh 2310e7f4a1 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

Change-Id: I055353bc78607119b0647bed87ca806f0ceffc62
2022-04-04 15:50:38 +01:00
Alex Kavanagh 03f4bfdffb Update charmcraft.yaml to refine the bases
The idea here is to build on 20.04 but allow it to run on 20.04 and the
current release, 21.10.

Change-Id: I65b750f0548793367a8d8bd531bcc13d59a743cc
2022-02-21 20:50:59 +00:00
Alex Kavanagh 99b8c4430b [WIP] Omit the arches in the charmcraft to see if it will build
Change-Id: I3e993cc7976f8bcbdef4b76148bf2d4022246569
2022-02-17 15:30:19 +00:00
Alex Kavanagh c7aa6e1aeb Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: I05dbf9cbfd3132b1970ca9cd9de111d6879f1582
2022-02-01 20:29:36 +00:00
Alex Kavanagh 2171e6bc05 Migrate charm to charmhub latest/edge track
Change-Id: Idb5d336d23d75b969f3d1e24b9d37a77b9075128
2022-01-28 16:27:19 +00:00
Hervé Beraud ab1d7e94a1 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I609298d09de3806636b8a157f4ef81c1ab567bf7
2021-12-15 09:35:05 +00:00
Corey Bryant 8f961493e3 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
* add nrpe to bundles

Change-Id: I184e4696336378f8e2b02ff6ce8800c224249e47
Closes-Bug: #1925977
2021-11-29 12:45:01 -05:00
Alex Kavanagh 8a4270f905 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: Ic75b5ee082ececcf2967342fa04d70d1d49255af
2021-09-27 14:41:17 +01:00
Gustavo Sanchez 4d80c34b81
Fix keystone authentication
Changes project_domain_id and user_domain_id to *_name in manila.conf

Add defensive mechanism to fallback to `_id` if `_name` is not set

Closes-Bug: #1911424
Change-Id: I6240b7b7e4590a21f034b9c70247e87ec18d867d
2021-09-02 10:39:02 -04:00
Aurelien Lourot 85fc22d2e6 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: Ic5f2a60b17e2b160a071bcecf916b9cf3782e547
2021-07-22 14:56:46 +02:00
Zuul 7a0393b22d Merge "Add impish to metadata.yaml" 2021-06-24 12:16:43 +00:00
Aurelien Lourot 9425d771ae Add impish to metadata.yaml
Change-Id: I58f1f8e78f7c8bbbb976fdbd3f95968daa3d8f29
2021-06-03 11:17:34 +02:00
Corey Bryant 80e7b7d728 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I00723438f781d619611ae7f5585a6407df619816
2021-05-13 09:10:35 -04:00
Alex Kavanagh 129e0ca9bf Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

hisute-wallaby test is disabled (moved to dev) due to [1].

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

Change-Id: I70c579bc425746b30be12cb30e660542da842c48
2021-05-06 09:57:07 +00:00
Alex Kavanagh a8c7b46928 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I809f8b581a7e86d43acb8115c3d0e609285d9bd8
2021-05-03 16:07:12 +01:00
Alex Kavanagh a177fa4616 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: Ied9b83ce5c57f370bd4d673964dcc433519ea8b3
2021-04-03 20:28:26 +01:00
Alex Kavanagh ef01b80181 Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: If0b6b73e75e51230f6b3330754c12b9ad10540f8
2021-03-02 20:58:37 +00:00
Zuul 9d21ad4a5b Merge "Add new osci.yaml" 2021-02-24 12:29:30 +00:00
Chris MacNaughton 070e589c71 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-02-23 11:20:09 +01:00
Zuul 3332984bfc Merge "Prune gate tests" 2021-02-23 10:00:10 +00:00
Billy Olsen dc9d3a8669 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I95b1faddefb49db618073977da2c4da50c641b13
2021-02-19 17:02:42 -07:00
Alex Kavanagh f821aaa53f Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: Ied70637b4487632841f25a45a904a01a5b2a99a1
2021-02-17 12:13:22 +00:00
Alex Kavanagh f769d9c413 Rebuild to use charm-tools pre 2.8 release
Reverting to an earlier version of charm-tools to
resolve some building issues seen with latest 2.8.2
version.

Change-Id: I6846f85e34bf74db3970b525ab56f60b86b0f532
2021-02-02 17:09:45 +00:00
David Ames f8eb2c7d50 Rebuild with udpated charm-tools 2.8.2
Validate the newest version of charm-tools: 2.8.2
https://github.com/juju/charm-tools/pull/598

Change-Id: I7d33fdb3a94d84e7abc59a98aa980ede06f24ec7
2021-02-01 14:09:27 -08:00
Alex Kavanagh 1b88d96799 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Ied561371434a0d07d769ac6ccdc95aa58235cc29
2021-01-15 16:00:30 +00:00
Zuul 202e464091 Merge "Updates for testing period for 20.01 release" 2021-01-14 09:37:03 +00:00
Alex Kavanagh 27e0ce7b6a Updates for testing period for 20.01 release
* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: I1024115390e26e4c71d97d8ba37204c530b7b28a
2021-01-12 15:37:49 +00:00
Aurelien Lourot 70d2a60759 Remove Disco and Eoan bits
Change-Id: If9fdd537ce459cdb5ab86cab3c533ee295e316c6
2021-01-12 13:58:20 +01:00
Aurelien Lourot f4538e65a2 Add Groovy to the test gate
Change-Id: I30a159ae71ce006397a4ce8acdf300c7e9831a82
2021-01-09 21:13:30 +00:00
Aurelien Lourot 4a00398dfb 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: I542410e92532ca9fb90ff704890f0677714b1e8e
2020-12-11 13:58:15 +01:00
Alex Kavanagh 5d5d02ea89 Rebuild reactive charms to pick up latest charm-helpers release.
v0.20.18 has been released and needs incorporating into the reactive charms.

Change-Id: Ifedc4cf32939e9ddd224a4caa0eacf3584230666
2020-10-14 16:32:14 +01:00
Alex Kavanagh d3c99b4fef 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: I35226fe655ae0858bda1318cc494c1545b48887a
2020-09-26 18:34:54 +01:00
Aurelien Lourot 3a866403d9 Add focal-victoria to the test gate
Change-Id: I41380a30cc440de70789d09d3a552b00c628f217
2020-08-28 14:26:52 +02:00
Aurelien Lourot 0e48e62cc7 Add Victoria test bundles
Change-Id: Idb1069d8b0d449820bbaafc23b3555c6187aa74a
2020-08-26 14:02:47 +02:00
Alex Kavanagh 211a5dbae5 Add bionic-ussuri and focal-ussuri test bundles
Also switch the smoke bundle to focal-ussuri as that will be the LTS on
focal.

Change-Id: I91ae66a5903c23c663243dfd10270d04325e5e39
Closes-Bug: #1879684
2020-08-19 15:51:08 +01:00
Alex Kavanagh dbba043c4b Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: I472a9cf84ca916d44dfa4221440e108e52b5050d
2020-07-27 20:54:33 +01:00
Zuul a04eeaf8d4 Merge "Stop to use the __future__ module." 2020-07-13 05:41:26 +00:00
Zuul 9b209613cf Merge "Migrate charm-manila-generic tests to Zaza" 2020-06-17 11:57:05 +00:00
Alejandro S. Gonzalez 03f69d3e8e Migrate charm-manila-generic tests to Zaza
Change-Id: I9d4be367a09f02c3fac5f123e547229ac8e2ff1a
Closes-Bug: #1828424
2020-06-17 11:26:44 +02:00
Frode Nordahl 9bf02c7ff8 Remove inherited configuration options invalid for charm
Change-Id: Ia3b01d732d1813bb94a27086e10539c0b5499a49
Closes-Bug: #1879088
2020-06-11 15:01:46 +02:00
Hervé Beraud f7b2b0a1fd Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I5f0224f85939cf3fe86cf14d950dae0e2e1db869
2020-06-02 19:56:10 +02:00