Commit Graph

93 Commits

Author SHA1 Message Date
Alex Kavanagh 052d651226 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: Iffc97e7963469742439da25040e204fd27000976
2024-02-24 19:57:38 +00:00
Zuul 476fd69e6b Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation" 2023-08-16 16:02:46 +00:00
Alex Kavanagh 87e2e05dd4 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: Icb53c57de58571635ff575d9c23e7f9858be236e
2023-08-04 18:48:36 +01:00
Corey Bryant adb8ed35f3 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: I042526888114c46c8b4e2828fed0a6965428dcbf
2023-08-02 14:21:48 -04:00
Corey Bryant ea96987f11 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: I83b97c35b6e64050feaa94a2eee2b80fa49c2555
2023-04-14 14:59:17 +00:00
Corey Bryant c1c0741322 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: I482a4f2b2f76bcf88cf47c5744ab494f79613d2e
2023-03-07 23:57:37 +00:00
Liam Young dced8f1cda Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ieafa1cd0749433e60af561015ec5a50822e79863
2023-01-17 17:49:58 +00:00
Alex Kavanagh 973d16e72a Ensure that kinetic/22.10 is enabled
This patch adds kinetic to the metadata.yaml and ensures
that a run-on base for 22.10 is added in the
charmcraft.yaml

Change-Id: I3f2ed3df8cc5f076402f68b18e9f2de66ae23007
2022-08-31 20:26:34 +01:00
Zuul 36425a7add Merge "Add Kinetic and Zed support" 2022-08-31 10:42:34 +00:00
Corey Bryant 884d6c0ab1 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
2022-08-26 18:40:41 +00:00
Liam Young d668de8aa5 Fix database connection section
Using the sql_connection option in the default section appears to
cause CONF.api_database.connection to be populated with the
connection uri. This in turn causes nova to think this is an
api cell and to do an api lookup *1 which fails. This change moves
the database connection string into its own section as per *2

*1 https://opendev.org/openstack/nova/src/branch/master/nova/utils.py#L1060
*2 https://docs.openstack.org/nova/latest/admin/cells.html

Closes-Bug: #1982071
Change-Id: I49859235d408598535173c8bb87ce65f66fb3ca8
2022-07-19 06:34:35 +00:00
Alex Kavanagh c9f9802fdd 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
- Remove overlay as no longer needed in charmhub with explicit .charm
- Pin setuptools < 50.0 in src/wheelhouse.txt

Change-Id: Ie15e3e0530345f488565454e673e40981f606bdd
2022-04-07 18:16:39 +01:00
Alex Kavanagh 3e4eee4215 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

Depends-On: https://review.opendev.org/c/openstack/charm-nova-cell-controller/+/830520
Change-Id: I47fd77c67776817f7b8d8918f0ec29d420f1763a
2022-02-23 14:19:44 +00:00
Corey Bryant f70e186285 Use [database]/connection in templates
nova-manage uses the [database]/connection to determine the
database connection. This change updates the nova.conf
template to use the parts/section-database template,
switching away from using [DEFAULT]/sql_connection to use
[database]/connection instead.

[DEFAULT/sql_connection has been deprecated since at least
mitaka:
https://docs.openstack.org/nova/mitaka/sample_config.html

This change also re-enables the gate tests for Xena.

Closes-Bug: #1951874
Change-Id: I9d77b44ad3c40f3ee60fedc3f211f3ac085fcbb2
2022-02-22 21:04:16 +00:00
Alex Kavanagh fa575bd4c6 Migrate charm to charmhub latest/edge track
Change-Id: I1059e037bdb9ee65cdebde4b5ed087bf1b5b0f93
2022-01-27 21:53:48 +00:00
Hervé Beraud ff9280d24d 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: I821bf39f976be059f6e7e03b337d6f323787dcb0
2021-12-15 14:18:49 +00:00
Corey Bryant 464bbb7d59 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: I6d7d32dd016e436d8463f88331682f53c4741e8d
2021-11-22 14:33:46 -05:00
Alex Kavanagh 0296147aeb 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: Idda2655a4342f078c55338d99e51d0c27b480051
2021-09-27 15:48:20 +01:00
Aurelien Lourot be4cbcbd38 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: I27a464ae745adb9d176c7e84c9c7b06bb3f8d889
2021-07-22 14:58:41 +02:00
Zuul ea5fd343f1 Merge "Add impish to metadata.yaml" 2021-06-07 09:23:52 +00:00
Aurelien Lourot ae90d0426e Add impish to metadata.yaml
Change-Id: Ie870ce136f98bb7f5d04bb1e14a9f366ecab17c1
2021-06-03 11:21:34 +02:00
Corey Bryant 38e030fee1 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I1d61c7c7e2c6bca16434924a628a6a8871c6be83
2021-05-13 09:11:56 -04:00
Alex Kavanagh f1fc48218d 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: I259256fedb52f424535cba3c5e78ac53516989f2
2021-05-06 09:50:49 +00:00
Alex Kavanagh b198544f31 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: I233ad706c70123a2613ba5ec6463f60ef82123cc
2021-05-03 16:08:59 +01:00
Alex Kavanagh b0339cf672 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: I0b89619963f796132356b174f7bd9f3a85a681f4
2021-04-03 20:31:08 +01:00
Alex Kavanagh 86c799ac2f 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: I306cd021e4038a50dc2763e65da93253edd87e9e
2021-03-02 21:01:33 +00:00
Zuul 7768e3dea8 Merge "Add new osci.yaml" 2021-02-24 12:33:11 +00:00
Chris MacNaughton 366f2c9a88 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-02-23 11:23:43 +01:00
Billy Olsen 98ec826eb2 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I11ec3877b4964e60b7efeed992acdc9c1f701e6f
2021-02-19 17:03:38 -07:00
Alex Kavanagh e45a8f7806 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: Ieae91b9ffda65f21741f742e03662cdaf73b3177
2021-02-17 12:15:45 +00:00
Alex Kavanagh 12a56051a0 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: Idabe1d11d7410622aeb4455c0fe24503f8e502a9
2021-02-02 17:11:43 +00:00
David Ames d6e714076d 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: If0132f6af4a78243f1683869f13da51678b9e20f
2021-02-01 14:10:56 -08:00
Aurelien Lourot e94a55a11a Add Groovy to the test gate
Change-Id: I15770da6cfae46446c361cbff83940f4036c1cac
2021-01-25 10:17:02 +00:00
Alex Kavanagh f46c60c084 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: Id9d36ae950300b1c3f461928908e56bd2d49b37a
2021-01-15 16:33:22 +00:00
Aurelien Lourot 72961a57fe Remove Disco and Eoan bits
Change-Id: I621546d6b522a31c2b4b9abe53347ea386ee7c80
2021-01-12 14:01:11 +01:00
Aurelien Lourot 3666e07228 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
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I6dbc31b457eaebb93857a5309b1b1249c01b342a
2020-12-15 11:21:04 +01:00
Alex Kavanagh 742811abf4 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: I5469fd80fcbfce01b1c6988b4b0e008139fd8a26
2020-10-14 16:36:27 +01:00
Alex Kavanagh f2c8cc75b9 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

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/440
Change-Id: I10a6a748b8fee04a0395da37d599e0c50d28f01c
2020-10-09 16:24:19 +02:00
Aurelien Lourot bd1a38447c Add focal-victoria to the test gate
Change-Id: Ieef24a3476852b97754848de947d7bca740f2e61
2020-08-28 14:27:43 +02:00
Alex Kavanagh 0f9d80856f 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: I635df238fde900be5b04cc060279c6fbcff581e6
2020-07-27 20:56:39 +01:00
Aurelien Lourot 729e6c3961 Add Victoria test bundles
Change-Id: Ifdf419bf0877dbd725eb3a018dfdba6d615cf42b
2020-07-15 10:33:11 +02:00
Alex Kavanagh 9418131123 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: I02183a592035b37bad6fa568bfcf9fdf20322b50
2020-06-02 14:34:30 +01:00
Frode Nordahl 44189c8e8f Add README and icon
Populate README from description in metadata.yaml.

Change-Id: I57f41099428d4a6fdde3e7c44825145913ad498b
2020-05-18 16:21:11 +00:00
Alex Kavanagh 9cf25cd369 Rebuild for sync charm-helpers for 20.05 release
Change-Id: Ic2dc4aa420de77fdc680c25011aced0e4e8b26cd
2020-05-11 13:03:12 +01:00
Alex Kavanagh accb508fcc Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.

Change-Id: I9061ac15b6ab0052090c6fe285eb2ccdc307f879
2020-05-07 12:36:09 +01:00
David Ames e1ec06c5c6 Rebuild reactive APIs for layer-basic regression
Fix regression in layer-basic which failed to unpack new dependencies
properly during the upgrade-charm hook.

Github Issue: #166
Closes Bug: #1875496

Change-Id: I5df34b0439cb92db558db0cc9b1bcf620318aae4
2020-04-28 14:16:53 -07:00
David Ames ef7a12ea54 Update peers with API addresses
Use default_update_peers which will publish admin, internal and public
addresses to peers.

Change-Id: Ibb9d67095c85f0486d24bec01c356c7e7bfb008a
Closes-Bug: #1858132
2020-03-27 15:00:43 -07:00
Zuul 3861c3d114 Merge "[ussuri][goal] Updates for python 2.7 drop" 2020-03-25 06:56:47 +00:00
Ghanshyam Mann 85e56fd6fb [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I81b0b89339bc91cfbb6a3938aa7125fcb93d7ae3
2020-03-24 17:12:04 +00:00
Frode Nordahl 924fe038b3 Rebuild for updates to charms.openstack
Change-Id: I2137ac37b530527e2bc258f8fb03ed0990961b2b
2020-03-11 09:24:40 +01:00