Commit Graph

85 Commits

Author SHA1 Message Date
Alex Kavanagh 50a74bb7fc Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: I1ee98030ed0b69aa7737fe9d2cb1f2b76e184b7b
2024-02-24 20:12:20 +00:00
Alex Kavanagh ffab46dab6 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: If364d5195731e21ce1aca7f8a1df4ea738f400bc
2024-02-12 18:21:27 +00:00
Corey Bryant e9fdad950f 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/edge

Change-Id: I05522c65c5c147f0ca219717e5a396a09eba7c09
2023-08-03 14:00:35 -04:00
Corey Bryant 8287e5a0c5 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: I6e549bd4611517f363d7df905e3af0ccdf0727ba
2023-03-29 21:01:50 +00:00
Corey Bryant ff426e8ea3 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: I05dd97424675cc31ef4e637c5d157c69d6906e54
2023-03-08 13:51:52 +00:00
Liam Young 327753c63a Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I7eff46a8ae044e6375d47fdf3a85429d793bd234
2023-01-23 21:06:25 +00:00
Corey Bryant a68761b7ef 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: I2cb698f719106e54b06009f24ea47259419e9cad
Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/850215
2022-10-05 07:47:55 -04:00
Corey Bryant 0eced95520 Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

This patch also drops the impish bundle.

Change-Id: I99549065a4ef7c2d76356228a58b687d7cb8877c
2022-10-05 07:47:44 -04:00
Alex Kavanagh 9f3a527cdb Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: If67638365b727fa6744fedb2ffe7bf46c001fa5f
2022-04-18 21:09:25 +01:00
Alex Kavanagh 75b0a960ab 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: I44232d2e3e98a759ff6a92cbf28e6cd68c2d10aa
2022-04-04 16:20:06 +01:00
Alex Kavanagh f550b1989b Migrate charm to charmhub latest/edge track
Change-Id: I6d2131f86b85b2bb32f130dccaab68d611311e3d
2022-01-27 22:01:35 +00:00
Hervé Beraud 388f8c2f47 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: I661477f9d0bdbebc90041a3eaff4ea92ef8c2b12
2021-12-15 14:31:17 +00:00
Corey Bryant 50d1212f88 Additional test updates
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I1741b5717ef359bdf2e2a5027164bfd093a672b2
2021-11-17 14:49:13 -05:00
Corey Bryant 270e6f58b8 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 trusty, xenial, and groovy metadata and tests

Change-Id: I490952f9273faa4ff75f2aef7574376ef6eb28ee
2021-11-12 11:19:15 -05:00
Alex Kavanagh b9b859c023 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: I64167411f7909a189ae3e88a571afbfc0169a577
2021-09-27 16:32:28 +01:00
Aurelien Lourot b0f58fcd78 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: Idf2b26d7e78e19152868e43646dd09861d8b6b94
2021-07-22 14:59:22 +02:00
Zuul 594eba6679 Merge "Add impish to metadata.yaml" 2021-06-07 08:09:07 +00:00
Aurelien Lourot 7a4c982c91 Add impish to metadata.yaml
Change-Id: I017858e1a0139ac26b276da4f0c5aedaa53e4663
2021-06-03 11:22:53 +02:00
Corey Bryant 53911be332 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: Icd90509cfb4e33684caf3bbcacbd4fae9a4321e2
2021-05-13 09:12:22 -04:00
Alex Kavanagh 6dd533fd78 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: Ifeaba65e8bd0ee39aa55dabf249e92754dbd7eeb
2021-05-03 16:09:29 +01:00
Alex Kavanagh b65ad85a29 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: I91fc84a52d64aebc219707368632f01ee001867b
2021-04-15 19:51:08 +01:00
Alex Kavanagh 8ccc8f32e3 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: I526d58c3eb602c539957f9212e9279526544ea42
2021-04-03 20:32:02 +01:00
Alex Kavanagh ffc9f396e9 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: Idcce05c1c05e10ac1b7dcd0aa1bdd5e7c2e8db21
2021-03-02 21:02:33 +00:00
Zuul cb0d821b69 Merge "Add new osci.yaml" 2021-02-26 20:52:04 +00:00
Billy Olsen c76fd3990e Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Iefb87f343a358b542714fabe419727dce835cbb4
2021-02-19 17:04:24 -07:00
Chris MacNaughton a89d2cdad3 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-02-18 08:38:19 +01:00
Alex Kavanagh 41fd7a0311 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: I9b7019639e329f99f844c237136009051c3e2729
2021-02-17 12:16:29 +00:00
Alex Kavanagh 843652597c 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: I5db0deed3aa0957547099703c22a458bb6d67c47
2021-02-02 17:12:09 +00:00
Alex Kavanagh 778bb38fc8 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: Ibeb7002f95ebf09d7ce3c3decac8c063b6a7c2a6
2021-01-15 16:02:26 +00:00
Zuul 20269d69bd Merge "Updates for testing period for 20.01 release" 2021-01-13 20:32:15 +00:00
Alex Kavanagh 63cb129b59 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: Ie85b5ad32c35d188906144c96988a2ca6190faca
2021-01-12 15:41:45 +00:00
Aurelien Lourot 531372c101 Remove Disco and Eoan bits
Change-Id: I6e51b3c581db154e1b8183e53f2d326050f0db6b
2021-01-12 14:02:21 +01:00
Aurelien Lourot 565297aa0c Add Groovy to the test gate
Change-Id: I5cb8dcfaab8e344f5a08ea786e0fdca07affe89c
2021-01-09 12:14:19 +00:00
Aurelien Lourot 1b7aa99a55 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: I98cbbc2398f76790aa48ef38b0b2dbceb6b1f420
2020-12-11 14:02:04 +01:00
Alex Kavanagh b44ccf2065 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: I04ba688d502bb12607544d15d966407ef9a8fc29
2020-10-14 16:37:13 +01:00
Alex Kavanagh 3aa5646ef3 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: I74430fd836d132cdcac8a52438cb4477dfdf392d
2020-09-26 18:37:58 +01:00
Aurelien Lourot 35d4a57fdf Add focal-victoria to the test gate
Change-Id: I873a9e51737c49319eebfafd89308611d597285f
2020-08-28 14:28:10 +02:00
Alex Kavanagh e7443c7438 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

Change-Id: Icec73224db6d61370af014d1e0a38f9efac8a070
2020-07-27 20:57:30 +01:00
Zuul 66c2b6259f Merge "Remove inherited configuration options invalid for charm" 2020-07-20 14:46:59 +00:00
Zuul 116223bdde Merge "Remove inherited configuration options invalid for charm" 2020-07-20 14:38:01 +00:00
Aurelien Lourot bf82390d48 Add Victoria test bundles
Change-Id: I1aaa698f8fac0b6cb8b441fc726bdd7179fe7822
2020-07-15 10:48:56 +02:00
Zuul e6039f4b79 Merge "Stop to use the __future__ module." 2020-07-13 05:43:26 +00:00
Hervé Beraud 528eef6824 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: Ie9d7753f4b3792e70b9ece7e170e7acaec70f683
2020-06-02 20:02:48 +02:00
Alex Kavanagh 3129faafa6 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: I070804c6ed21fde12dde91eeeb9a0fee5aacfde7
2020-06-02 14:35:16 +01:00
Frode Nordahl 0a41348eab
Remove inherited configuration options invalid for charm
Change-Id: Ifd096de5ad0c58d3798567608ea99f258d98e1bf
Closes-Bug: #1879088
2020-05-18 09:54:39 +02:00
Frode Nordahl df4cc44033
Remove inherited configuration options invalid for charm
Change-Id: Icd93c7289e2da3440b991b9d2cd389f4892c87f4
Closes-Bug: #1879088
2020-05-16 22:59:32 +02:00
Alex Kavanagh db915e8836 Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.

Change-Id: I9fc3e26408493a7969e19b1df3e46f432502b3d8
2020-05-16 08:58:30 +01:00
Alex Kavanagh 39523d31bc Rebuild for sync charm-helpers for 20.05 release
Change-Id: I022f8a9ca03cbbb8fed037faec2025fcf42332c8
2020-05-11 13:03:36 +01:00
Frode Nordahl 20f3b0753b Rebuild for updates to charms.openstack
Change-Id: I819d6a49e585ca0f54bcee22f93b0144fbf085b7
2020-03-11 09:24:41 +01:00
Frode Nordahl c364d131f4 Update charm build requirements
Change-Id: Ic012f6c7d196ef97dae67b4d88e33269ee82445f
2020-03-03 09:58:02 +01:00