Commit Graph

410 Commits

Author SHA1 Message Date
Alex Kavanagh 16f8bc201e 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: Icdefacaadb7f03d7241a0e0d88c09fcbac668530
2024-02-24 19:53:45 +00:00
Alex Kavanagh ea0ef6d32e 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: I27979aaeec8040b8cd5c07e5ad12a6ca8544278c
2023-10-24 18:02:12 +01:00
Alex Kavanagh af1bfc7eda 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: I6f907d439585dbcc87efdeec55c329303eca0d6a
2023-08-14 11:05:30 +01:00
Corey Bryant 75ed04915a 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: I01b2164017b21b64fc6858368dfb3b0694243970
2023-08-02 14:19:22 -04:00
Corey Bryant c09949a4df 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: I4e2f6e5d763b6fe216082b063d5dcc12e1aa3f62
2023-03-29 21:01:48 +00:00
Zuul da364d0dca Merge "Add Antelope support" 2023-03-10 18:54:23 +00:00
Corey Bryant 5ce593f732 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: Ide30533ef53c7c7e500b2e68377c34a805a89382
2023-03-01 16:56:51 +00:00
Gabriel Cocenza 19cf71dc79 Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default). It also enables /healthcheck
endpoint for heat-api and heat-cfn-api on openstack releases >= queens.

Closes-Bug: #1880610
Change-Id: I94c9418c82cdddd5a5d9ed400ab47889bfb225b1
2023-02-17 12:05:27 -03:00
Liam Young 2a10ff296f Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I626a4bff6a04efcb150f19ca9dee628292ed3008
2023-01-17 09:33:12 +00:00
Corey Bryant f5a61e7c78 Ensure openstack-release package is correct after install hook
The linked bug shows the install of the charm with openstack-origin set
to zed.  This happens because configure_installation_source() causes the
openstack-release package to be installed *before* the zed cloud archive
sources are configured into /etc/apt and an apt update done. This means
that the openstack-release package says "yoga" despite the zed packages
actually being installed.

Then, on the config-changed hook, it sees that the installed version is
showing as yoga and tries to do an upgrade.  This fails, as the charm
hasn't yet bootstrapped, and the charm tries to bootstrap after
upgrading the packages.

There's a few bugs here which are exposed, but the tactical fix is to
force the openstack-release to match the installed packages.

Closes-Bug: #1989538
Change-Id: I501aae7f7d818211deaeda945648dfdf63c21d7a
2022-10-04 19:38:29 +00:00
Alex Kavanagh bfe6eb7da6 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: I58a1e0335e4d5003c922129c39e1a553c836694b
2022-08-31 20:02:10 +01:00
Corey Bryant ef5f2f417e 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: I68434d15a68d087a4fd704d9dde6e5a878d5cdca
2022-08-26 18:40:35 +00:00
Alex Kavanagh 906218c1d3 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
- charm-helpers-sync

Change-Id: I27bba777156f162331b0be992d2eec4259b4d23f
2022-04-07 16:10:36 -04:00
Alex Kavanagh acb1842832 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: I563a3af2895ddf2eb5d8e61006eb8eb2cb8d8d37
2022-02-17 12:30:08 -05:00
Alex Kavanagh c9f0cb051c Migrate charm to charmhub latest/edge track
Change-Id: I2c41ac824f552c0aca5ae4c55da5f987f779449e
2022-01-27 20:24:15 +00:00
Zuul d337e71a28 Merge "Additional test updates" 2021-11-18 14:32:13 +00:00
Corey Bryant 49a3720ebe Additional test updates
* drop trusty/xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: Ib6109d01bcbff405d025e1ace671debef0ae7c59
2021-11-17 14:47:22 -05:00
Alex Kavanagh cb20440e7e Remove 'jammy' metadata - unblock gate
The charmstore doesn't accept charms with jammy metadata yet.

Change-Id: Iaf08bd43e5d00dd96b685306e7adb1421ba1aa12
2021-11-12 11:04:40 +00:00
Corey Bryant 33a3898114 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 groovy bundles

Change-Id: Ie8a5fe3f3dd10de1b4f180ce05b542896f594393
2021-11-09 10:27:03 -05:00
Alex Kavanagh 32d9fff926 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: I35ec110170c213f17f9d998a77e2ad4fdaf2dc4c
2021-09-23 14:39:44 +01:00
Aurelien Lourot b506eb3e64 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: Icccb6d52e02a22c0bc2c8ceca577ed190b2f5466
2021-07-22 14:54:45 +02:00
Zuul ee1ae1a8b3 Merge "Number of heat queues will keep growing forever after heat-engine restarts" 2021-06-25 13:35:19 +00:00
Zuul 86c15b51de Merge "Add impish to metadata.yaml" 2021-06-07 09:35:27 +00:00
Aurelien Lourot 4b11fd0b2b Add impish to metadata.yaml
Change-Id: I501ec22ef9bad06e84772e7e7b70a355631bf010
2021-06-03 11:13:11 +02:00
Zhang Hua de88ad5344 Number of heat queues will keep growing forever after heat-engine restarts
Set TTL as a solution for topic queue engine_worker and heat-engine-listener
to avoid them growing all the time after heat-engin restarts.

This is heat part.

Closes-Bug: 1925436
Change-Id: I196346e4ca869efab45d1c2aafb1420b2a917d39
2021-05-24 15:44:46 +08:00
Corey Bryant d84213577f c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I3d4b84cd8de6fa61b06e9dc065c8018601859545
2021-05-13 08:46:47 -04:00
Alex Kavanagh c7cb7bb4af Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync.

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

Change-Id: I812173ba3ac085fcd1e0d2b4635b29c8b5a377e6
2021-05-06 10:14:07 +00:00
Alex Kavanagh 0c480b198f 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: I94ca1393e0a565e4595022564660194d9fd44ce2
2021-05-03 16:05:07 +01:00
Alex Kavanagh 9e6a9679f5 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: I49901a38f32e8b5ec180c01be5940cd6731edf27
2021-04-11 16:53:50 +01:00
Alex Kavanagh c93b67b11e 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: Iffe53a0a9feb59e0d94f08ee152e6f5d7107192c
2021-04-03 20:25:34 +01:00
Nobuto Murata fe4994b64b 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: I0744413fb948de941ac22b71a6cb37206ed4f4ac
2021-03-30 11:03:58 +09:00
Alex Kavanagh a7b930c928 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: I9c48ece92d87bce80404d696c87a2c160ffd5277
2021-03-02 20:56:20 +00:00
Zuul 8e5149b739 Merge "Add new osci.yaml" 2021-02-26 20:48:00 +00:00
Billy Olsen 7cbd30406f Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I44bb5196a2e067ceff5218fec823b2d90111f54c
2021-02-19 17:01:57 -07:00
Chris MacNaughton 1e78c79e69 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-02-18 08:38:18 +01:00
Alex Kavanagh 29be9de9ea 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: I8e7f6a5c19daca65b0561a4ea2e85b8e8adbfff9
2021-01-20 12:24:30 +00:00
Alex Kavanagh c81858c248 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
* Fix unit tests due to changes in core subordinate context lib.

Change-Id: I61d51dc65ba29390df1c057535a2065e205d32b2
2021-01-18 20:14:48 +00:00
Aurelien Lourot 8df7b7a0a6 Remove Disco and Eoan bits
Change-Id: I4f139f98df217040e8f163fb4914caf79f9c0bfe
2021-01-12 13:56:07 +01:00
Aurelien Lourot 7fff0b6817 Add Groovy to the test gate
Change-Id: I72f7d3821f95ac2ff6bb998935e92833fa50622f
2021-01-07 10:11:45 +00:00
Aurelien Lourot bda02d7cd5 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: I15f2121db1b79aea8b8345de7244a674acd4a108
2020-12-11 13:56:29 +01:00
Alvaro Uria 213a6a8c95 Add nrpe support
Parses services() available, and uses charmhelpers' haproxy checks to
set default checks for Heat. By enabling nrpe-external-master interface,
we also allow hacluster subordinate application to be monitored for
check_crm and pacemakerd.

Change-Id: I4ad2b1c514099f9b6fe352cdab65587780915e5c
Closes-Bug: 1664745
Signed-off-by: Alvaro Uria <alvaro.uria@canonical.com>
2020-11-13 15:38:52 +01:00
Chris MacNaughton bdc84f7980 Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: I335386f181b8302674c8364d62b7620ddba6db4a
2020-10-12 11:22:33 +02:00
Alex Kavanagh 84f636c9d0 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 is needed for py35 compatibility - test to ensure that zaza
change works.

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

Change-Id: Id729d01b6f2e41ccb3f605638a1837fc2b3c626d
2020-10-06 18:51:21 +01:00
Aurelien Lourot 894131d2ae Work around missing dependencies on focal-victoria
Also add focal-victoria to the test gate.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/425
Change-Id: I80e0f8f975a263fbe4c92bdeb2790ebd49cf68d9
Closes-Bug: #1895300
Related-Bug: #1893935
2020-09-24 10:44:06 +02:00
Alex Kavanagh d0ac640e19 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: I5c7fc8d23b84e7073e82531fcdfc46d454ea399c
2020-07-27 20:53:03 +01:00
Zuul 47f279fcbd Merge "Switch to using openstack-python3-charm-jobs" 2020-07-17 14:44:06 +00:00
Corey Bryant 296d85c308 Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: I04df0f41f6237a4889935cc57f8dd0f1617de3cb
2020-07-13 19:00:06 +00:00
James Page 3cde0a90a5 Switch to using openstack-python3-charm-jobs
Change-Id: Ia5e17a750135060b16ffb5d5d5d8dcac8264272f
Depends-On: Ib9ed240aef6680be7c972088ca5337b5740b9c36
2020-07-13 08:31:48 +01:00
Zuul 187d3c7650 Merge "Use unittest.mock instead of mock" 2020-07-13 05:51:44 +00:00
Aurelien Lourot e0cd2f2af4 Add Victoria test bundles
Change-Id: I22c383859960395866018d8eee8d97bdf0d38f07
2020-07-08 14:30:19 +02:00