Commit Graph

214 Commits

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

Change-Id: I3d29f7bc329dc8702469cc36ca01bc2c4f3bea5c
2024-02-24 20:11:06 +00:00
Alex Kavanagh ead77f9a7d 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: I4f5df7cd306e69210b53e2c800de609337e8c84f
2024-02-12 18:18:41 +00:00
Zuul fd3e818c2c Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation" 2023-08-16 15:56:22 +00:00
Alex Kavanagh 98445c5f9f Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: I83fe6b1d397299c716bf67b11d1d30167a87ea84
2023-08-04 18:45:56 +01:00
Corey Bryant 09b8f16f10 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: I371f1e473e9588d2e7e66a4372bfedf8ab427770
2023-08-03 13:48:36 -04:00
Corey Bryant bcfbc55b45 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: Ic07c734001c56f26d6980934005ea8cad8588c4f
2023-03-29 21:01:47 +00:00
Corey Bryant 983189a0fb 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: I2d27ef9d08b01d54741fec5e34e028a6abbe2425
2023-03-08 15:45:24 +00:00
Liam Young 389c3919a4 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I3b662aa9c3026e85d088350d969e743a116401a4
2023-01-17 14:57:23 +00:00
Felipe Reyes cdbb9a178b Fix s390x and pp64el builds
Add build dependencies needed for s390x and pp64el

::   writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
::   running build_ext
::   generating cffi module 'build/temp.linux-s390x-cpython-310/_padding.c'
::   creating build/temp.linux-s390x-cpython-310
::   generating cffi module 'build/temp.linux-s390x-cpython-310/_openssl.c'
::   building '_openssl' extension
::   creating build/temp.linux-s390x-cpython-310/build
::   creating build/temp.linux-s390x-cpython-310/build/temp.linux-s390x-cpython-310
::   s390x-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/buildd/barbican/build/parts/charm/build/.tox/build-reactive/include -I/usr/include/python3.10 -c build/temp.linux-s390x-cpython-310/_openssl.c -o build/temp.linux-s390x-cpython-310/build/temp.linux-s390x-cpython-310/_openssl.o -Wconversion -Wno-error=sign-conversion
::   build/temp.linux-s390x-cpython-310/_openssl.c:575:10: fatal error: openssl/opensslv.h: No such file or directory
::     575 | #include <openssl/opensslv.h>
::         |          ^~~~~~~~~~~~~~~~~~~~

Change-Id: I8e73c8b75496d8581f169103825f3ba12900f140
2022-09-29 22:01:28 -03:00
Corey Bryant 6cc6006572 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.

Change-Id: I6ab47c1c94249c194bf55650e26737fefe5838b3
2022-09-27 17:31:32 +00:00
Zuul 68f4872a0f Merge "Ensure upgrades are executed" 2022-09-16 13:55:52 +00:00
Corey Bryant 2c99cba7e0 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: I054650d578c30b5c865cbd7a567eb5d7c8032d01
2022-08-31 18:48:39 +01:00
Corey Bryant 6d73c8263f Ensure upgrades are executed
Prior to this change, big bang upgrades were not being run
when openstack-origin was updated to a new release.

Closes-Bug: #1979553
Change-Id: I3a9d0211bede8db43cd5ae8e0db51736155282f6
2022-06-22 16:46:14 +00:00
Zuul 567e457800 Merge "Fix typo in 'require-hsm-plugin' description" 2022-06-01 01:40:52 +00:00
Alex Kavanagh 5ccab5e53d Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I9f9d6d375013ab67d2a4e539382d893898550004
2022-04-18 21:05:20 +01:00
Nicholas Malacarne a506c01557 Fix typo in 'require-hsm-plugin' description
Closes-bug: #1963722
Change-Id: I872ceb025fb6850a87c7f7307bd228ce3ea051ac
2022-04-13 11:42:38 -04:00
Alex Kavanagh 8415ded62a 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: Ib993e07f73d694d9d0189dc55d6ab1e3c9d31938
2022-04-04 15:48:41 +01:00
tpsilva c3bb1bb650 Add use-public-endpoint config option
Currently, this charm sets the host_href config option with the
admin endpoint. This patch adds a config option to allow it to be
configured to use the public endpoint, so that the secrets could
be accessible through this endpoint.

Closes-bug: #1642769
Change-Id: Ice7131459753f15e1184c687a24301689df338e2
2022-02-15 15:10:41 -03:00
Alex Kavanagh 9d5b82ebfb 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: I826947b1b358c4b04ba18135035292e135cce985
2022-02-01 18:29:11 +00:00
Alex Kavanagh 2021e2c518 Migration charm to charmhub latest/edge track
Change-Id: I3860f8c83cc4ab37c429d7a44f0b8d292078b657
2022-01-27 19:27:53 +00:00
Hervé Beraud 8a162064db 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: I2f54eb8f1fae913603f8692986361b88a32cc221
2021-12-15 14:40:18 +00:00
Corey Bryant 81bd8f7ef9 Additional test updates
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I9e922e77175fb117a2d98a3c42f2cddfae0dc326
2021-11-17 14:45:54 -05:00
Corey Bryant 5f3c1de4f1 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: Ic01c91ede3d820e8eb9258fd0d19799efb4ebccb
2021-11-12 11:11:26 -05:00
Felipe Reyes 0740a468ef Expose max request and secret size config options.
Upstream Barbican has bumped up its default for the configuration keys
max_allowed_request_size_in_bytes and max_allowed_secret_in_bytes to
25kB and 20kB respectively (c59f2a6b). This change adopts those values
to be used in all the supported releases and exposes them via juju
config.

Closes-Bug: #1946018
Change-Id: I3dcb30f5de6367de2aa5c26bb59a79893fb8e578
2021-10-04 15:50:02 -03:00
Alex Kavanagh 3ac1472fe6 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: Icbc9877edc720792f9bb09d8b246d38748b5f5ba
2021-09-21 13:58:47 +01:00
Aurelien Lourot dbf5142802 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: Ib7f509be145966bbe09cbf1aff7b08923de10fe9
2021-07-22 14:51:27 +02:00
Zuul a52efd2e53 Merge "Add impish to metadata.yaml" 2021-06-07 09:39:11 +00:00
Aurelien Lourot ef65af8588 Add impish to metadata.yaml
Change-Id: I6fd115af6201a7ceec0f28fdfe87544edb11ba5b
2021-06-03 11:02:21 +02:00
Corey Bryant a85044fe2e rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: Ie69ab17f330c6dfc06f09f51dde34b96fb677794
2021-05-13 09:07:40 -04:00
Alex Kavanagh 96750d85f0 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: I65a7403ec68d8be880e418bc4fca1b1fdffe6eb9
2021-05-06 09:57:19 +00:00
Alex Kavanagh e5f0496fe1 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: Ic2d80c0c1eb8e22408ce363fd05b5d66d1d93e4b
2021-05-03 16:02:04 +01:00
Zuul 95b8b8d378 Merge "Run db sync manually by leader only" 2021-04-15 06:38:38 +00:00
Alex Kavanagh 07b76d50e7 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: I0f28e1e28ee9cb5712ef5b7b007903d317a5f61a
2021-04-03 20:20:30 +01:00
Alex Kavanagh 45d9d9b19d 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: Ied3c4d70fb5a7cf2556a4ca7d9c0aec551b63939
2021-03-02 20:51:18 +00:00
Zuul c396f3a999 Merge "Add new osci.yaml" 2021-02-24 12:12:55 +00:00
Chris MacNaughton 0b902f76d3 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1bba556eebc3081e890989507b0ccfe6f029c3a6
2021-02-23 11:10:49 +01:00
Billy Olsen f5745a0021 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I514698776d3dfdb6eafc9b237687c11f43463302
2021-02-19 16:58:14 -07:00
Alex Kavanagh c9095fbc01 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: Ie41022bf94c69019799d87abf138228ff27dddb8
2021-02-17 12:06:51 +00:00
David Ames ca80b266ed Run db sync manually by leader only
Without db_auto_create = False each barbican-worker attempts to run
alembic upgrades on the database whenever they start. This leads to
race conditions that can leave the sate of the database broken
(multiple alembic version that "overlap").

This change runs the barbican-manage db upgrade by the leader only
avoiding the race condition. charms.openstack also handles the
openstack upgrade process with a call to instance.db_sync.

Change-Id: I6b9498059c7057b73b1c3db0e355456c38b0510e
Closes-Bug: #1827690
2021-02-05 15:39:52 -08:00
Alex Kavanagh 8c4c1a23d0 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: I69fab5d73305dfe1eb0563d5e570ef76b64e5d64
2021-02-02 17:04:49 +00:00
David Ames 096c6b5c59 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: I06b9deae0bc7376c8ba3c6705cba9ec5ed6d94c5
2021-02-01 14:06:46 -08:00
Aurelien Lourot 0b3b075eec Add Groovy to the test gate
Change-Id: I2a7fa371702f2e78838f5a90b8688b3a3b5dbce8
2021-01-29 14:11:07 +00:00
Alex Kavanagh 746e7f88a4 Fix missing auto DB creation on Victoria
Also updates for testing period for 20.01 release.
All these changes are needed together in order to have passing
functional tests.

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: Ieff90482f0acfac735c1ed69fc0593bd44913bac
Closes-Bug: #1903725
2021-01-27 18:18:52 +01:00
Aurelien Lourot c9b7a01e84 Remove Disco and Eoan bits
Change-Id: I7be89404b640c06345611a4794f467802f3d651c
2021-01-12 13:49:47 +01:00
Aurelien Lourot f70cbf41ea 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: Ib977225e1dcb651dd9d98ab67edaa76545621451
2020-12-11 13:52:41 +01:00
Zuul b5060d6dfe Merge "Switch to python3-apt in Victoria" 2020-10-16 12:59:46 +00:00
Corey Bryant f6fbcd82a9 Switch to python3-apt in Victoria
The python-apt binary package is removed in Ubuntu Groovy.
Switch the charm to python3-apt.

Change-Id: Ib3da731b3e649bf99d63229c376eb8c8354a72d7
Closes-Bug: #1899680
2020-10-15 12:37:02 +00:00
Alex Kavanagh 3768debc33 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: Ia6d12ef586678867e2fa183942f8d0b131fbd2d3
2020-10-14 16:07:25 +01:00
Alex Kavanagh f4ed57fc08 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: Ic9b019feec791d33f45e71264f4649d60b75f958
2020-09-26 18:28:48 +01:00
Zuul a87991f606 Merge "Enable worker-multiplier for wsgi" 2020-09-17 09:06:34 +00:00