Commit Graph

624 Commits

Author SHA1 Message Date
Alex Kavanagh 9ea1a00bca 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: I41641bebf78705ca3f5a3e09b8ac918a44a863aa
2024-02-24 19:53:10 +00:00
Gabriel Adrian Samfira dcbebab56c
Add missing region setting in service_credentials
This change adds the missing region setting in service_credentials. In a
shared keystone multi region setup, this setting is mandatory in order
for ceilometer to properly find the services it relies upon from the
same region it resides in. Without this setting, the ceilometer-upgrade
action will fail (along with any other calls made to ceilometer) if the
first endpoint returned by keystone is from a different region.

Change-Id: Ie14df0f5fc7ee18072091dbdb3ada817615a6670
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-01-05 17:59:18 +02:00
Alex Kavanagh a1b25b993a Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: I89fd1e19dd946f037615f9115e08aba8d78826db
2023-10-24 20:16:43 +01:00
zhhuabj a4ffe0e28c Support disabling apache wsgi socket rotation
Bug LP 1863232 introduced a new Apache configuration option called
WSGISocketRotation which allows users to disable wsgi socket
rotation. This patch makes this configurable with a new
wsgi-socket-rotation config option that defaults to the Apache
default and can optionally be set to False.

Closes-Bug: #2021550
Change-Id: Ia50067e1f64a6003d5c2ca2ebc22903a1ab8d3ae
2023-10-17 18:13:35 +08:00
Corey Bryant c4f153e582 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: I3393fc63fa066b15f3e67c526ab3f2abe0ead028
2023-09-15 15:56:08 -04:00
Corey Bryant 2f053a6cef 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: I12adaadd0a5991c271fba3aa8ebaf6c4e5122df0
2023-08-08 21:17:05 +00:00
Jadon Naas 2f55acb06a Fix typo in actions.yaml
There was a typo in actions.yaml for the resume action that was breaking
builds. This change fixes that typo. The charm will build.

Closes-Bug: 2030677
Change-Id: Iffc178326f880682ad3e1baf992bae86ba365f0a
2023-08-08 11:18:20 -04:00
Peter Matulis d8fd7492d8 Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: I3cbd3c8f3a57be26a599b32973d319f3994377f2
2023-07-25 16:13:48 -04:00
Zuul 150498576c Merge "Replace remote-sink description with valid example" 2023-06-08 13:24:34 +00:00
Brett Milford b27083e9b5 Replace remote-sink description with valid example
Remote sync configures ceilometer.event.publisher. Only a subset of
    publishers are valid.  They are test, messaging, http, gnocchi and
    zaqar

Change-Id: I56028d674eae58d224ee843152623bdb0d2b5d45
2023-06-08 04:36:13 +00:00
Corey Bryant 035ab02dc9 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: I4efc0e7fb5eb1a8de43e5ac5fe62cf661ff08a7b
2023-03-29 21:01:47 +00:00
Corey Bryant 35a347d69e 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: I35b051fb5a86081380abe9d73b88b797b91febac
2023-03-07 20:32:46 +00:00
Liam Young 42d520d4e3 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I957d1e86bc59351404becaca64c8766d687cb1e0
2023-01-16 16:12:09 +00:00
Rodrigo Barbieri 8d3b3a658c [DOC] Update ceilometer-upgrade action note
The ceilometer-upgrade action will reapply default
resource-type definitions from templates and may
override any changes that would have been made to
gnocchi resources. Moreover, since Wallaby+, it will
override any attribute (within resource-types) as well.

Change-Id: I162926458181e2210c7b76479ee03b7862755901
2022-09-01 15:30:08 -03:00
Alex Kavanagh 804b3ed06a 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: Icfaba3c1684e2a92bc502d03d940147f419d1b80
2022-08-31 18:59:51 +01:00
Corey Bryant 118f10a707 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: I785cad8d470af5560ba2eb0616622d454e9d1c1b
2022-08-26 18:40:27 +00:00
Alex Kavanagh b0b0c017a1 charm-helpers-sync for release
Change-Id: I9dcb5ec669ead7f7bb56752b7789a60c90b38dbf
2022-04-07 15:58:29 +01:00
Alex Kavanagh 9be9a1ab58 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: Ibcb6a078314c0bd92a0d45d31cd2adaf60b8b68d
2022-04-05 15:11:01 +01:00
Alex Kavanagh 26dd49b79d Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I9560c8801640e3629dc21716f2e0e4534f5a330e
2022-02-17 12:30:02 -05:00
Alex Kavanagh 074e8085a7 Migrate charm to charmhub latest/edge track
Change-Id: If6ecb9a650054944b89606d4c4117a8aea1af868
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-01-28 16:23:13 -07:00
Aqsa Malik 0b067893a8 Fix syntax error in the juju-run command
This change fixes the syntax of juju-run command in the README file.
The command requires a <unit> parameter to work, otherwise it fails
with the error "no unit specified".

Change-Id: I2045fb2437a2d29c01fe14c1b9a3cf59fd1444c2
2022-01-10 15:11:58 +01:00
Hervé Beraud dc22f20319 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: I27ccd34f2337533b217d8c6f817a6d5a14e47abb
2021-12-15 11:06:20 +00:00
Zuul 4739d79133 Merge "Add yoga bundles and release-tool syncs" 2021-11-18 14:30:23 +00:00
Corey Bryant 4043379eab 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: Ib1856e48daa51fe9abeefc7f2899051968329893
2021-11-17 13:45:38 -05:00
Arif Ali f046895cdb Revert "Add meter-sink as an option"
This reverts commit 6ed691807d.

The meter_sink is actually required in pipeline.yaml and not in
event_pipline.yaml, and this is something that needs to be enabled
for newton and above as the ceilometer-collector is not the
dependancy for this.

Change-Id: Ie40a99281f1f60de7a409e1e3a2025a850a8a446
2021-11-05 11:27:02 +01:00
Arif Ali f4d772e6a3
Enable pipeline_yaml for mitaka and above
This configuration for pipeline.yaml is still valid for mitaka and
above, so adding this in.

The ceilometer-collector package is not available in newer openstack
releases, so basing this on QUEENS_SERVICES.

This should solve the custom requirement of pipeline moving forward.

Other fixes:
* Update test-requirements.txt for cffi and related pins.
* Update focal-xena bundle to fix memcached series bionic requirement.

Closes-Bug: 1938807
Change-Id: I1946b6f172cdae6f444d07999d5e54d4e11a450e
2021-11-03 13:49:49 +00:00
Alex Kavanagh 8e6c6f1f8f Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ide4746558d5be4b2a68b37320a1b601447686c2c
2021-09-28 14:54:10 +01:00
Arif Ali 6ed691807d
Add meter-sink as an option
If the user wants to add a meter-sink to the pipeline.yaml
at the moment this cannot be done. Previously, pipeline-yaml
config option was allowed and could replace the whole config.

This will now allow to also add meter-sink as an option to
the event_pipeline.yaml, and allow a new source of collecting
all meters, and pushing to the value of meter-sink URLs.

Closes-Bug: 1938807
Change-Id: If6cd82e4153b29c1d8fdb6df150d0d4bb11d4e49
2021-08-12 10:23:38 +01:00
Aurelien Lourot 32cb42625d 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: I3e5f7928a45235fb9182fa3e766c55cbe1767950
2021-07-22 14:51:46 +02:00
Zuul ca419d2ccd Merge "Add impish to metadata.yaml" 2021-06-07 09:38:55 +00:00
Aurelien Lourot b83b0b7ca8 Add impish to metadata.yaml
Change-Id: I40a81b714058179f397bc2b112eac0440a1b029f
2021-06-03 11:04:40 +02:00
Corey Bryant b98af6c324 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I1300ef630b538400e3211b3fe1bd3c731d4f0c26
2021-05-13 08:45:18 -04:00
Alex Kavanagh 4c8670c598 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] as bundle may
reference a reactive charm.

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

Sync charm-helpers for wallable identifiers

Change-Id: I1369b5eaf4efd18043e665d5fc5bd2f21e567970
2021-05-06 11:16:26 +00:00
Alex Kavanagh 6a96078648 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: I38f603abe72625797824035dd1413685f1407f22
2021-05-03 16:02:24 +01:00
Alex Kavanagh b662ee0db0 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: If531cb2c089b55763a37be179d8afa23b57a5f09
2021-04-11 16:50:07 +01:00
Alex Kavanagh 6c89d26256 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: I52bdd82cdbcd04f6ee773b8eb1a555d397e0ad4b
2021-04-03 20:21:10 +01:00
Nobuto Murata df30cfc048 Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553

Related-Bug: #1843011
Change-Id: I7c09445b79ac7073f90f10032b90751df23ab47e
2021-03-30 11:05:58 +09:00
Zuul 29189c92e1 Merge "Add new osci.yaml" 2021-03-11 12:58:14 +00:00
Alex Kavanagh 5ff31b10a2 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: Ia68a287eabffa14e5675e1895bfe54fddc2615e0
2021-03-02 20:52:04 +00:00
Billy Olsen 5d897d2242 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I7378e7a3e5a016e3bb1b6583bba5cf0de598fa95
2021-02-19 16:58:35 -07:00
Chris MacNaughton f9c27f6fe9 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1bba556eebc3081e890989507b0ccfe6f029c3a6
2021-02-18 08:38:17 +01:00
Alex Kavanagh 397d315af7 Hotfix charmhelpers sync for local_address() fix
The network-get --primary-address juju-info fails on pre-2.8.?
versions of juju.  This results in a NoNetworkBinding error.
Fallback to unit_get() if that occurs for local_address().

Change-Id: Id064f767cb896e55c6b59f47ff2f22b09e7eee1e
2021-01-20 12:19:42 +00:00
Zuul 0ec32019a3 Merge "Updates for testing period for 20.01 release" 2021-01-16 21:23:54 +00:00
Zuul ee1b288211 Merge "Updates for testing period for 20.01 release" 2021-01-15 20:20:12 +00:00
Alex Kavanagh 4450b1f1ba 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: I4d65722bfe40232242ba089c7af8c08c57027246
2021-01-15 16:27:07 +00:00
Alex Kavanagh 9dac6d3e3f 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: I0ce0530830ed69a2d513973a319961c212467918
2021-01-12 15:27:39 +00:00
Aurelien Lourot 0568c8e19e Remove Disco and Eoan bits
Change-Id: Ie944d919dd7a2595454b72836657210f6477b3ed
2021-01-12 13:50:38 +01:00
David Ames 79dd41247e Charm-helpers sync for Bug #1893847
Change-Id: I89bab84de2fe82d20e92407b2aec9a594c208b7a
Closes-Bug: #1893847
2021-01-05 14:00:36 -08:00
Aurelien Lourot a282ce6b09 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: Ia7ca2af7c00c1ca55042b9e7f12558307da42d77
2020-12-11 13:53:06 +01:00
Aurelien Lourot 9e33790a76 Add Groovy to the test gate
Change-Id: I70bfbb6782a546ee5c2410a6fb202d1d573d4826
2020-11-05 12:43:07 +01:00