Commit Graph

327 Commits

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

Change-Id: I24bfd1286978ffee084f9488062340a44cce4b2c
2024-02-24 20:11:10 +00:00
Alex Kavanagh ec3696f293 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: I8207aceaa1426be6d736819e88e34702a4125fe7
2024-02-12 18:18:53 +00:00
Alex Kavanagh 30dc3dc647 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: I7116d1232d19996e39665f5e6f15dae7b8e74118
2023-10-24 20:31:36 +01:00
Corey Bryant 189316a7c2 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: Iac7161c1fe9e62286bf59daffbbe2c92e2dcce8e
2023-08-03 13:53:43 -04:00
Corey Bryant b92515f4b1 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: I45bf4ef2d0fc1323132804c7a89cc42a768d18a8
2023-03-29 21:01:47 +00:00
Corey Bryant 9bf04a8517 Handle openstack comparison after the z-wrap
CompareOpenStackReleases is used to handle openstack comparison
after the z-wrap, now that we are at antelope.

Change-Id: I31254f50d9befdfc3a54c2ee305cb06e7d19cce3
2023-03-20 19:34:33 +00:00
Corey Bryant 9af7effd2b 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: I59238c9a3933756755903d0e6718699e6960cc5c
2023-03-07 20:33:02 +00:00
Liam Young 065e1509a3 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I09fc4c7e30fd4cb41e441adb84420f3bc3dd42ab
2023-01-16 16:12:12 +00:00
Alex Kavanagh 6bab734ab6 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: If1982cf023556b54837d01411cb6602633ac4cdd
2022-08-31 19:45:37 +01:00
Corey Bryant ae164bf542 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: I34ae94970fc5cfd242df5184fba09b611874ee71
2022-08-26 18:40:27 +00:00
Felipe Reyes 7195f3cda2 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.

Change-Id: Ia9a713625aa933fe99722df36f42a800af19c790
2022-05-17 14:18:35 -04:00
Alex Kavanagh 27f115a13a Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I1c5261654ad1c7a2fd4eedeae38be104e3fd16a4
2022-04-18 21:05:37 +01:00
Alex Kavanagh 4df5c728c5 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: I76cc7c4c782d60f3558df6b9f96c513eff16331b
2022-02-17 12:30:03 -05:00
Alex Kavanagh 521f4990d3 Migrate charm to charmhub latest/edge track
Change-Id: I142dba3d515b4ef7bcef905cf40fc89b574c58cf
2022-01-27 19:35:26 +00:00
Aurelien Lourot 43a2312794 Remove pause/resume logic
This is a subordinate charm and since a recent
commit [1] it shares a list of its services with
the principal charm nova-compute, which has now
the responsibility to pause and resume services. [2]

The ceilometer-agent-compute service has a
dependency to the nova-compute service anyway, so
it is impossible for this charm to resume its
service if its principal charm nova-compute is
paused. This is what also led to errors in
ceilometer-agent's post-series-upgrade hook. This
hook attempted to resume its service although
the principal service was still paused. Removing
this logic entirely solves this issue.

Validated by running openstack-upgrade and
series-upgrade tests. [3]

[1]: https://opendev.org/openstack/charm-ceilometer-agent/commit/be45f779
[2]: https://opendev.org/openstack/charm-nova-compute/commit/8fb37dc0
[3]: https://github.com/openstack-charmers/charmed-openstack-tester

Closes-Bug: #1952882
Change-Id: Ia22b53b52b541250f7f803c6708968d75e64475c
2021-12-13 16:21:15 +01:00
Zuul d6a3078145 Merge "Publish releases packages map to principal charm" 2021-11-26 15:08:49 +00:00
Corey Bryant 69e183990a 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: If4892692cda73dacc3b9b430cdaf9c82f814b64a
2021-11-18 09:45:01 -05:00
Aurelien Lourot be45f77945 Publish releases packages map to principal charm
For principal - subordinate plugin type relations where the
principal Python payload imports code from packages managed by a
subordinate, upgrades can be problematic.

This change will allow a subordinate charm that have opted into the
feature to inform its principal about all implemented release -
packages combinations ahead of time. With this information in place
the principal can do the upgrade in one operation without risk of
charm relation RPC type processing at a critical moment.

This is similar to
https://review.opendev.org/c/openstack/charm-interface-keystone-domain-backend/+/781658
https://review.opendev.org/c/openstack/charm-layer-openstack/+/781624

Change-Id: Ibd5bdcb141fc3103ee97123ff284fb2957802eba
Closes-Bug: #1927277
2021-10-04 14:36:24 +02:00
Aurelien Lourot 5a333004c3 Increase nova-cloud-controller RAM in func tests
Recent test run(s) have shown memory exhaustion on the nova
cloud controller units. This exhibits itself as the controller
dropping messages from the compute nodes and logging messages like:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 268, in _perform_action_on_threads
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 342, in <lambda>
    lambda x: x.wait(),
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 61, in wait
    return self.thread.wait()
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 180, in wait
    return self._exit_event.wait()
  File "/usr/lib/python3/dist-packages/eventlet/event.py", line 125, in wait
    result = hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 298, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 350, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 80, in wait
    presult = self.do_poll(seconds)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/epolls.py", line 31, in do_poll
    return self.poll.poll(seconds)
MemoryError

to the nova-conductor log.

It seems very likely this issue is specific to Bionic Stein so it
may be a little wasteful to have increased the memory allocation
for all the bundles but I think consistancy between the bundles is
more important.

Change-Id: I1ab3e8f0d71b06fe97fa4b6cdee138c294dca158
Co-authored-by: Liam Young <liam.young@canonical.com>
2021-10-04 11:00:09 +02:00
Zuul c06971123e Merge "Remove do_openstack_upgrade()" 2021-09-29 09:24:57 +00:00
Aurelien Lourot b80626deac Remove do_openstack_upgrade()
This is a subordinate charm and doesn't have an
openstack-origin config option.

Change-Id: Id10069c55e49926cf38439a9a3b0dbede7d1e994
2021-09-24 17:35:01 +02:00
Alex Kavanagh 28c15ca67f 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: Ia5368ff6ffb96cfa169df6e05b5e3d9e8a2ecbd4
2021-09-21 14:07:19 +01:00
Aurelien Lourot 300c8a4657 Add CeilometerAgentTest to the gate
Change-Id: I016792b5642c5d3e7a08fad4fb8151f44fb67dce
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/615
Related-Bug: #1927277
Related-Bug: #1938884
2021-08-04 14:19:26 +02:00
Aurelien Lourot e7302d9a7c 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: I3b7b6cd8e1eae24c3eb0b8308b82630138434e83
2021-07-22 14:51:56 +02:00
Zuul 2401bdcb6b Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-15 03:04:25 +00:00
Aurelien Lourot 1f106fb798 Add impish to metadata.yaml
Change-Id: I4fb40bfe36de6d49f10604d31c58f0d5cb0ad174
2021-06-03 11:05:45 +02:00
Corey Bryant 2a7e2a95cd c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I7bb2bdcf5d5cbdc7f9578a82d7697152d9bd480d
2021-05-13 08:45:25 -04:00
Cornellius Metto 9fd4ea0a39 Add configurability to polling.yaml.
The ceilometer compute agent uses the default polling.yaml
from the installed packages without the ability to configure its contents.

This change adds two configuration options: 'polling-interval' and
'enable-all-pollsters', borrowing from the implementation in
charm-ceilometer. We start off with a limited set of meters as before
and if these are not enough, the user can set 'enable-all-pollsters' to
'true' to collect all available 'Pollster' metrics as listed in the
documentation [1].

Verification:
I tested this change on a cluster built from the OpenStack base bundle
and the ceilometer and gnocchi charms. I confirmed that extra metrics
that originate from the Compute Agent pollster (e.g. disk.device.read.latency)
are available in gnocchi after setting 'enable-all-pollsters' to true.

[1] https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html

Closes-Bug: #1914442
Change-Id: I21c9a93e7dd91bced9365e44f3e6a5315976c3bb
2021-05-12 17:30:00 +03:00
Alex Kavanagh dd5f8e6bc2 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] as bundle may
reference a reactive charm.

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

Sync charmhelpers.

Change-Id: Ie73cc2223e51b741272c32e4d4a9d4a21949e37c
2021-05-06 09:58:50 +00:00
Alex Kavanagh 4c9a29276c 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: I94ac02a2232aaffdbf3a6d2b3ef4fa64074cfa83
2021-05-03 16:02:31 +01:00
Alex Kavanagh 3c12a8dbba 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: Ice7eb3dee63f319d2b534a72fd228853e3bad9bd
2021-04-11 16:50:19 +01:00
Alex Kavanagh ee300fed99 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: If8b18dd3488e2c84ef433fab0b144cfdbb65cd01
2021-04-03 20:21:23 +01:00
Alex Kavanagh 442e6580e7 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: Id3a5027d4165da8be59f37b9b9a96c34280c78ce
2021-03-02 20:52:17 +00:00
Zuul 42caf01c6f Merge "Add new osci.yaml" 2021-02-26 10:08:51 +00:00
Billy Olsen 6485caec0c Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Idc546dba16075dd0314c5d3b49fc66274d8421bb
2021-02-19 16:58:47 -07:00
Chris MacNaughton 33c30bf1bc 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 4f711cdf8f 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: I9a1ed8146233997cbad86a329e8a0067a6966b00
2021-01-20 12:19:55 +00:00
Alex Kavanagh a598815583 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: I7e64344f01ebfea2f7d5c4c71053309b0956203a
2021-01-15 16:27:16 +00:00
Aurelien Lourot d9eb2bfb31 Remove Disco and Eoan bits
Change-Id: I659e29dc2529ba5472957395d9fb9a52c228e8da
2021-01-12 13:50:56 +01:00
Aurelien Lourot bb1094e7eb 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: Ie294d559e06f356a9a58c4bdc65d14e1a7c07580
2020-12-11 13:53:40 +01:00
Aurelien Lourot 2142981d04 Add Groovy to the test gate
Change-Id: Iac0fcbb5611bcfcca1cffe2067de6eaec8852dc5
2020-11-05 12:43:22 +01:00
Chris MacNaughton 991c2a66cb Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: Id8722e745569e0bd7108b2a0e116fd22ea669e3d
2020-10-12 11:20:45 +02:00
Alex Kavanagh a924a071fd 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: I602a2a9c241de5898f737aacec6f85390d0be4f7
2020-09-27 15:31:34 +01:00
Rodrigo Barbieri 2aace2fb69 Receive polling-batch-size config
Samples collected can be batched together,
consequently increasing or reducing the
amount of API calls and body data
sent to the configured publisher.

This config is available since Rocky,
receiving the value from ceilometer-charm
to allow its tuning.

Change-Id: I986073fdacd750cf96d662abf1d58844479c25ba
Closes-bug: #1885190
2020-09-17 15:35:49 -03:00
Aurelien Lourot 27ad8cb103 Add focal-victoria to the test gate
Change-Id: I6ad7beed3b2bf8de07a638cb40ffe6f8c0cbc326
2020-08-28 14:24:19 +02:00
Alex Kavanagh 1f7ddf529f 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: I50e7313db1fa04921ca25ddb191f9d182a7f3da2
2020-07-27 20:49:16 +01:00
Corey Bryant be3940ab5f Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: Id5d596143ef3364b489c89ef1544d5e733f56179
2020-07-13 18:59:02 +00:00
Zuul 5efd691c5b Merge "Add Victoria test bundles" 2020-07-13 14:00:58 +00:00
Zuul 3521af8633 Merge "Use unittest.mock instead of mock" 2020-07-13 06:19:30 +00:00
Aurelien Lourot efbc057923 Add Victoria test bundles
Change-Id: Ifc619c19d2f6ed41789c9d900915fcbcc5769367
2020-07-10 16:43:02 +02:00