Commit Graph

93 Commits

Author SHA1 Message Date
Alex Kavanagh b902a59fa7 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: I75d4112af25ae1980e9901b35325c798040e7294
2024-02-24 19:54:24 +00:00
Gabriel Adrian Samfira ec407665cb
Add os_region_name config option
In a multi-region shared keystone deployment, we must set the
os_region_name config option. Without it, Masakari will try to connect
to the wrong API endpoints when it needs to talk to other services.

Closes-Bug: #2042924

Change-Id: I31ae1e011354fc9ded114babcb92f366256fadea
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-11-07 12:22:37 +02:00
Zuul 16436af21e Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation" 2023-08-16 16:01:55 +00:00
Alex Kavanagh a3b79627e2 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: I0dbd4f5ce3d922a2f7c84e710d4faa276718debc
2023-08-04 18:48:17 +01:00
Corey Bryant 8749fa9c52 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: Id5dfe8bd475f37d8eb001500fb4513d5dce4c9d2
2023-08-02 14:24:41 -04:00
Corey Bryant a3c11baa54 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: If0beacfe04b08ea7460dd241d2247f2afa002652
2023-04-14 15:03:17 +00:00
Zuul 6422ccf3ec Merge "Add Antelope support" 2023-03-10 18:50:55 +00:00
Corey Bryant c0e4cb5902 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: Ib0940e33adceae5152dcde20a777e90fa85d14ff
2023-03-07 23:14:21 +00:00
James Page f4a8f7c4df Add section-oslo-rabbitmq to templates
Ensure the RabbitMQ oslo.messaging section is used in all templates;
this configures SSL options when deployed in TLS secured configurations
with RabbitMQ.

Change-Id: I0821304b3f0e586e3a868e3c95294a688bae085a
Closes-Bug: 2007567
2023-02-16 11:52:27 +00:00
Liam Young e056c577c8 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I78e75ee234499b7b992dd0f3704ad69329f7e863
2023-01-17 09:33:16 +00:00
Corey Bryant ccefc2109c 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: I5bf1b2a030c08461bc42c1e686af6220738ed98c
2022-10-26 14:32:00 +00:00
Alex Kavanagh 979c77656e Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Ic97053f9e407a1d5ce4fb121251dfae7036bf45a
2022-04-18 21:08:03 +01:00
Alex Kavanagh fb0b98c45d 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: I59ab3d2fa63b534296c5a703322e9aa3e061bff5
2022-04-06 15:45:44 +01:00
Alex Kavanagh f0597b1eab 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: Iee0101df1f2a943f3da8ad8b5719bdaa031af151
2022-02-21 15:14:50 +00:00
Hervé Beraud d9a643d8e3 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: I55ccb5548917c8431b0080c956bec5543d31a9a3
2021-12-15 11:19:29 +00:00
Zuul 3af8466beb Merge "Fix transport_url with multiple rabbit servers" 2021-12-13 14:13:33 +00:00
Jorge Merlino 4fe9f39585 Fix transport_url with multiple rabbit servers
When RabbitMQ is deployed in HA mode the transport_url parameter of
masakari must reference all RabbitMQ instances. Previously it
referenced only one. Now uses the configuration from the base OpenStack
layer

Closes-Bug: #1950331
Change-Id: Iea9d4f2484b82c22939a258e7f9faa3030a9bd1e
2021-12-07 18:18:49 -03:00
Corey Bryant 64eeaac038 Switch to yoga unit jobs and add py39
Change-Id: I8d40bfb066e1f9e7592ff2dc02e44406e6263b2b
2021-11-24 16:03:45 -05:00
Corey Bryant 3679b8811f 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: I6cb91fec3168eb03d6b22ff941023e2a73a1a3e0
2021-11-12 11:16:58 -05:00
Alex Kavanagh 98fcc6ad5e 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: Iec89744a7a0ffebba321a34264f61f0ae60844ea
2021-09-27 14:45:25 +01:00
Chris MacNaughton 3760b7211f Specify certificates relation to update endpoints.
When the certificates relation is unspecified with the
configure_tls method invocation, the masakari endpoints
seem to ignore the update to TLS. This change specifies
the relation which causes the endpoints to update correctly.

Closes-Bug: #1935986
Change-Id: Ib1a6ca1ddf64950ff13cf3a8904d9848710d96a5
2021-08-18 15:03:26 -05:00
Aurelien Lourot b327c6cfae 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: I51d3df097a28b94cc2e272c61bbb65dcfb41c34b
2021-07-22 14:56:56 +02:00
Aurelien Lourot ab757bdb9a Add impish to metadata.yaml
Change-Id: Ie9a05f64715be11a580c0e3f12161e5900c634ed
2021-06-24 12:07:30 +02:00
Aurelien Lourot 737cea6409 Fix wrong series in hirsute test bundle
Without this fix deployment fails with
ERROR cannot deploy bundle: cannot add unit for
application "masakari": acquiring machine to host
unit "masakari/0": cannot assign unit "masakari/0"
to machine 12: series does not match

Change-Id: Ib436e8916cb31fe049bc0a641fbd29fda2e0f260
2021-06-21 11:57:59 +02:00
Alex Kavanagh 043c5971e3 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: Ic8d988993a52beb8c647f242860c4793610a6c92
2021-05-06 11:14:13 +00:00
Alex Kavanagh fa4ccf4d46 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: I101b9666f9d1e4a032a12edc5d5178f829e9ba1c
2021-05-03 16:07:19 +01:00
Alex Kavanagh c97b812c68 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: I05d305bbac9d81549208787e847a71c4aa75baee
2021-04-08 13:46:59 +00:00
Zuul 8d1ec1aac0 Merge "Add new osci.yaml" 2021-03-23 14:19:05 +00:00
Chris MacNaughton f00231dd0b Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-03-23 08:11:27 +01:00
Alex Kavanagh 0272e41add 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: Iacceaa4946c468ac5b5062ff6ee04835c833be62
2021-03-02 20:58:50 +00:00
Alex Kavanagh d7154a9d69 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: Ie167177b18f4bd9043d31f741f323dfd0cbe970a
2021-02-17 12:13:35 +00:00
Alex Kavanagh 479d1bdaf0 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: I5ff54ca310c121869e39fc0f720cc31a3af92e98
2021-02-02 17:09:58 +00:00
David Ames 5f0d8c06d3 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: I3bd033b75600bc41a4cc5afc65d61d45cd847a54
2021-02-01 14:09:45 -08:00
Alex Kavanagh 74a2bc949c 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

The func test pr is to test/verify the reap instances change in zaza.

func-test-pr: https://github.com/openstack-charmers/zaza/pull/411

Change-Id: I744bd6f88c88ef30754bcf947c5379334b24631a
2021-01-27 11:01:48 +00:00
Zuul 3b33741c31 Merge "Fix install hook on Groovy" 2021-01-14 09:58:45 +00:00
Aurelien Lourot 00308d16b6 Remove Disco and Eoan bits
Change-Id: I027081ce9fd09b974979febf100ea02d203b9ff5
2021-01-12 13:58:38 +01:00
Aurelien Lourot dd3e2fb901 Fix install hook on Groovy
python-apt has been replaced by python3-apt on Groovy.
Also add Groovy to the test gate.

Change-Id: I69d97400aa59cd8f3dfe73ae869a611225e35c5f
2021-01-11 13:19:20 +01:00
Aurelien Lourot f9a838958d 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: I9b321e731c1cef0ddfaf22da542900cf72bb479b
2020-12-11 13:58:37 +01:00
Zuul 37b0ac8209 Merge "Add config options for expired notifications" 2020-11-10 00:51:32 +00:00
Billy Olsen 62bc9c05b9 Add config options for expired notifications
Adds config options to configure the notification expiration time
as well as how frequent to check for expired notifications.

Change-Id: I9607f01a800baded37cfc23b6bc9f8e6aecc2d74
Closes-Bug: #1773765
2020-11-02 09:58:05 -07:00
Alex Kavanagh 3e962c8a4b 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: Iff0069a610015969f390d875845355565d1e8b70
2020-10-14 16:32:52 +01:00
Alex Kavanagh b24b16e465 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: If79d772f8c843db4c2440dc5209bf8954ed72e05
2020-09-26 18:35:06 +01:00
Aurelien Lourot c0ec186bd5 Add focal-victoria to the test gate
Change-Id: I298a431f706694e8cdd9de4670e6461ea1117ad7
2020-08-28 14:26:59 +02:00
Marton Kiss 2a901dc9cb Add TLS Support
The Masakari API service need to be TLS-terminated. This patch applies the
ssl_ options in render_config function.

Change-Id: I0acdaaf4ab6eb150d0d562cd978601726456d035
Closes-Bug: #1889787
2020-08-06 12:15:02 +02:00
Alex Kavanagh 2bd0c5a8e7 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: I85fd56b7343225d72fe534ce8291c3f40773538f
2020-07-27 20:53:56 +01:00
Aurelien Lourot 9fbb8718fe Add Victoria test bundles
Change-Id: I87ae67fb969e22849adb4a055f1d45726796ab0f
2020-07-27 13:21:51 +02:00
Corey Bryant 7e7c97866f Add victoria package version
Change-Id: I5486fe829815a6127496e910ccee3d9e76ec54a9
2020-07-13 19:13:06 +00:00
Zuul a79d0108d5 Merge "Stop to use the __future__ module." 2020-07-13 05:38:00 +00:00
Liam Young a147a5d658 CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Also remove jinja2 from wheelhouse.txt as is a duplicate
and due to improvements in charm build it now causes the
build to fail.

Change-Id: I998a24697f93e5a8ad1eeabfd19b86ed631fa2fc
Closes-Bug: #1796886
2020-06-30 10:21:56 +00:00
Zuul 6659aa5311 Merge "Add missing taskflow section" 2020-06-11 09:31:03 +00:00