Commit Graph

106 Commits

Author SHA1 Message Date
Alex Kavanagh 342e72244f 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: I5549fc5d72659dd3434543d13001101af3b613f2
2024-02-24 19:53:07 +00:00
Corey Bryant 69e8fd81dc 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
* add hatchling to wheelhouse
* update charmcraft_channel to 2.x/stable

Change-Id: I4776086c3bb35d0fc4bd3ff4f808559b73270426
2023-08-03 13:54:26 -04:00
Felipe Reyes 9b95a69b8e Fix build
Add libpython3-dev to the list of the build-packages, this is needed
since https://github.com/juju-solutions/layer-basic/pull/214 .

Change-Id: I69895d604fb453cb6f1a48b5fa69544287fcd448
2023-04-11 15:42:43 -04:00
Corey Bryant bacaeab8ac 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: I8cf89d0abcc196a83fbb8088b730ee74f774f6ee
2023-03-29 21:01:47 +00:00
Corey Bryant 03388e821f 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: I8487abc15cf61abfa18d09aa73064e139fa92560
2023-03-07 23:01:42 +00:00
Liam Young 8ee74b472d Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I9b5c1258365da967581e45b19e875482e7e9b2cc
2023-01-17 09:33:01 +00:00
Corey Bryant dd9f5e53d6 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: Ie43538cc39e2115275802b328c9145df5955beb8
2022-08-31 18:49:12 +01:00
Alex Kavanagh a7f405a168 Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Ibc4d551fa7816f2774136bc4549e4babe2e7a514
2022-04-18 21:05:28 +01:00
Alex Kavanagh a0330a930d 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: I909c4299c94edbf2ba7d2052c1642d04902878f7
2022-04-04 15:48:45 +01:00
Alex Kavanagh c3718862fe 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: Icf3da0aa6e1820b10f211eb5ab779ff5d3d3f394
2022-02-01 18:42:59 +00:00
Hervé Beraud b74404f536 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: I2570caf6f292b2dd152f7c229be6651978f80bff
2021-12-15 11:10:19 +00:00
Corey Bryant 2b7879152d 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

Change-Id: I4d6b684a1257cc6bbb703b4a98d90e9f71972d9f
2021-11-17 13:45:37 -05:00
Alex Kavanagh 59400c2e62 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: I4054504258ed097d117a7215616f7f4044c6d010
2021-09-21 14:01:03 +01:00
Aurelien Lourot e0d0855d43 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: I2a2e4f9a5f3a13fa9a978078380fb419ef5d6704
2021-07-22 14:51:37 +02:00
Zuul 7c7fea1dfe Merge "Add impish to metadata.yaml" 2021-06-07 09:40:35 +00:00
Aurelien Lourot 3136ffcc19 Add impish to metadata.yaml
Change-Id: I5c8aa5d29bdbbb7fbbbb66c7d8f9d0dcc3252f46
2021-06-03 11:03:49 +02:00
Corey Bryant d94cd04431 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I5b1c0fd91f39593240cba411f5565bd22bff54d3
2021-05-13 09:08:01 -04:00
Alex Kavanagh e467a174da 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: Ib7a6e24d74a8bb76eb20d101c5b621e05d0cc153
2021-05-03 16:02:17 +01:00
Alex Kavanagh 841fbcdebc Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby supporto.

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

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

Change-Id: I218b3da58865add03ef1fd39988127f7ca0a2666
2021-04-15 18:17:04 +01:00
Alex Kavanagh 189d576062 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: I01d014e6e735bdf368df2b7254b563b961eaf226
2021-04-03 20:20:56 +01:00
Alex Kavanagh e0e4ab4c05 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: I7491d754ed327f3b8604f04db7847541f2d56251
2021-03-02 20:51:50 +00:00
Zuul bac7473639 Merge "Add new osci.yaml" 2021-02-24 12:11:59 +00:00
Chris MacNaughton dc62b883ef Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1bba556eebc3081e890989507b0ccfe6f029c3a6
2021-02-23 11:11:33 +01:00
Billy Olsen 000113fad6 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ib562d13ee7737ac066586867e52d292b8486f91a
2021-02-19 16:58:23 -07:00
Alex Kavanagh 437e775c3f 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: Ic451da4b61bece4b037b70b36aaf1ddec8ec873e
2021-02-17 12:07:17 +00:00
Alex Kavanagh 4e32c58d75 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: I03134efdef43c9b0df960bd1acb2109e3c9aaad6
2021-02-02 17:05:17 +00:00
David Ames 4915fc421d 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: I7ecf17b4a869d1bc4b0f26a600ac1beac68712aa
2021-02-01 14:07:03 -08:00
Alex Kavanagh 773a621406 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: I1781d928a6dea8ee94158307bec97311f8969613
2021-01-15 15:56:56 +00:00
Zuul 30d451a8cd Merge "Updates for testing period for 20.01 release" 2021-01-14 11:22:13 +00:00
Alex Kavanagh 34e3ca9ecf 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: I335b204f7ca8888a0fc5e2465580c2ebbe24d2b0
2021-01-12 15:27:24 +00:00
Aurelien Lourot 506769e700 Remove Disco and Eoan bits
Change-Id: I8a97af8254a2660df8cb7138b1d47115d3914588
2021-01-12 13:50:18 +01:00
Liam Young 26ba0535ef Retrieve approle_secret_id from correct relation
The existing comment in the code expresses the correct intent:
"fetch current secret-id, if any, from relation with barbican principle"
but then attempts to retrieve the secret-id from the vault
relation.

Change-Id: Ie2694ba38e08fd9e864bf9d8fa0b63f0e185b8bd
Closes-Bug: #1871981
2020-12-17 19:57:56 +00:00
Aurelien Lourot 9a669fd1fe 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: Ia8c079306de072ef2ba1b2eb940038c0919da776
2020-12-11 13:52:48 +01:00
Aurelien Lourot 58bff2f880 Add Groovy to the test gate
Change-Id: I8b23e528b62f5120f689706cbf453e4578955bc4
2020-11-05 12:42:53 +01:00
Alex Kavanagh 57f6c5d92f 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: Ie631e102acad83a9edbba97d45ff2d1b1d68b340
2020-10-14 16:07:48 +01:00
Alex Kavanagh 1ad15274f5 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: Ide5db8f0dd1658a36373c8ef481843836bf0f5c8
2020-09-26 18:29:23 +01:00
Aurelien Lourot 91a8f7978f Add focal-victoria to the test gate
Change-Id: I739f599ca436c5255edd9ed5b0794f7abbfe4150
2020-08-28 14:24:06 +02:00
Aurelien Lourot 9dfa29ec4d Add Victoria test bundles
Change-Id: I90c2a984500e6552217ef222196503ebef193728
2020-08-06 12:13:53 +02:00
Alex Kavanagh 8c5766c51c 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
- Remove vault HA in functional tests as etcd/easyrsa were not included.
  In order to have a faster gate, the HA on vault is dropped and it will
  be tested in the vault gate test and other scenario tests.

Change-Id: I2eacde1d08734c32731df3dfa43da738871792a8
2020-08-05 19:00:55 +01:00
Zuul ea85e43211 Merge "Remove inherited configuration options invalid for charm" 2020-07-21 11:34:53 +00:00
Zuul 84d95824ff Merge "Stop to use the __future__ module." 2020-07-13 05:39:53 +00:00
Hervé Beraud 31952dbc6f 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: I3d9f56f908d58acc35d12abb66a95aa42b35cae7
2020-06-02 19:37:21 +02:00
Alex Kavanagh ac51f7fc23 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: I964b9608ab3b8a81352cc56eb1176e360aae9d9e
2020-06-02 14:27:21 +01:00
Marco Silva eeb791db53 Add HA testing for Barbican Vault
Changes to tests to deploy barbican and vault with haclustering.
It now deploys 3 units of vault and barbican, together with hacluster
for both applications.
Overlay added to ensure all tests run in HA.
DocImpact
Closes-Bug: #1876107
Implements: High availability testing

Change-Id: Ia7abdc682fd583e15feba68fc11cdb89ab7c41ff
2020-05-27 13:11:47 +01:00
Frode Nordahl c83001ca8a
Remove inherited configuration options invalid for charm
Change-Id: I6089eae63aca83fccb7c2ecb39b21455464835b3
Closes-Bug: #1879088
2020-05-16 23:15:10 +02:00
Alex Kavanagh 5eb8923ec0 Rebuild for sync charm-helpers for 20.05 release
Change-Id: I55e3a79cc75c7e62579c54f7e08ce296570db12c
2020-05-11 12:59:30 +01:00
Alex Kavanagh c4eb001120 Enable focal and ussuri tests for gate
Change-Id: I0cacba2715338988ae37c846a7f854296b409388
2020-05-07 11:22:05 +01:00
David Ames f6546dda33 More robust hvac.Client post response handling
Pin the version of hvac for a consistent response type. Use the adpater
to get response code and json data.

Closes Bug: #1871981
Change-Id: Ia8517a75e7bc20f751eca83aaa84728cc62edee6
2020-04-29 12:16:22 -07:00
David Ames 4e1c539eaf Change in hvac.Client post response type
The hvac.Client post response is no longer an object with status_code and json
encoded data. It is a dictionary.

Change-Id: I1cacc8deda005cdbb2290d5ae821e4870608a41a
2020-04-24 21:37:21 +00:00
Frode Nordahl aa0e76c98d Rebuild for updates to charms.openstack
Change-Id: I9bb36af34559e577c5b5b77bd0e78872fa90f076
2020-03-11 09:24:39 +01:00