Commit Graph

102 Commits

Author SHA1 Message Date
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
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 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
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
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
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 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
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
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
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
Aurelien Lourot 2142981d04 Add Groovy to the test gate
Change-Id: Iac0fcbb5611bcfcca1cffe2067de6eaec8852dc5
2020-11-05 12:43:22 +01:00
Aurelien Lourot 27ad8cb103 Add focal-victoria to the test gate
Change-Id: I6ad7beed3b2bf8de07a638cb40ffe6f8c0cbc326
2020-08-28 14:24:19 +02:00
Aurelien Lourot efbc057923 Add Victoria test bundles
Change-Id: Ifc619c19d2f6ed41789c9d900915fcbcc5769367
2020-07-10 16:43:02 +02:00
Rodrigo Barbieri 09a8566667 Fix charm-ceilometer-agent test bundles
In trusty-mitaka the mongodb charm is currently broken due
to incompatibility with a client update. This change pins it
to the latest working version until the incompatibility problem
is addressed.

In xenial-ocata, we are adding gnocchi and its dependencies to
the bundle in order to properly run zaza tests.

This change is equivalent as https://review.opendev.org/739153
for the ceilometer charm.

Change-Id: I8fcabc659e6e4b8628ec394353164e021c2c0e20
2020-07-09 01:26:21 +00:00
Alex Kavanagh 83a2d12f40 Add focal and ussuri tests to the gate
Change-Id: I0d51b6ab3be7a34ab590d851df0b04ad069a5447
2020-04-22 17:19:51 +01:00
Corey Bryant 72107bc963 Port tests from Amulet to Zaza
Zaza tests can be found here:
https://github.com/openstack-charmers/zaza-openstack-tests/pull/68

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/163
Closes-Bug: #1828424
Change-Id: I1cfebeb15485dd6d92638323d2c9e6bb85f568cb
2020-01-31 18:16:34 +00:00
Sahid Orentino Ferdjaoui a4a7488f67 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I39938b2cd0f08536ff98314cfda256675f17cdc4
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-21 09:09:41 +02:00
Camille Rodriguez 9027a7b894 Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718

Change-Id: Ica4bead71d054ae5912e7e66ff9a0666e131637a
2019-09-04 14:48:19 -04:00
Chris MacNaughton 6a5c75ea20 Sync charm-helpers
Change-Id: I0f1cfa1352f742b878aba96bd847117d8bfc76b6
2019-07-16 07:06:03 +00:00
Frode Nordahl 6fb3b952bb Enable bionic/stein and disco/stein functional tests
Change-Id: I678e01a400ef176d38270f9aa96e225d16c5cc6a
2019-04-09 06:38:54 +02:00
James Page 54530ab595 Refactor RabbitMQ integration
Prior to this change, the ceilometer-agent charm receives RMQ
configuration details via the ceilometer charm.  This makes it
a bit of a snowflake.

Refactor RMQ integration to require a direct relation to the
rabbitmq-server charm; information provided on this relation
will superceed any information currently provided via the
charms relation with ceilometer, ensuring that there is no
disruption to service during a charm upgrade before the new
relation is added.

Switch to using [DEFAULT]transport_url for RMQ configuration,
making use of the new ch template for SSL and HA configuration
in [oslo_messaging_rabbit].

Change-Id: Ie637ec5162461826505cea39bde6829e036fa1f2
Closes-Bug: 1817672
2019-02-26 15:11:23 +01:00
Ryan Beisner 7b954306d3 Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I59340b7320163a6e1a3be2753584230ab5355afd
2019-02-12 14:27:45 -08:00
Ryan Beisner 058cd81d40 Update pre-install hooks to fail on error
The pre-install operations may fail, yet that failure is not
elevated to the user. This masks the failure and makes early
package install issues difficult to troubleshoot.

If the basic pre-install script fails, the charm should not
proceed to later hooks as the requirements may not be met.

Hashbangs for bash should specify -e (errexit) on all of the
pre-install bash scripts.

Change-Id: I40fedc011933cbce6215dd124019d251b6dafd61
Closes-bug: #1815243
Partial-bug: #1815231
2019-02-08 16:25:12 -08:00
Ryan Beisner 177fadae35 Sync charm-helpers
Change-Id: I9e89e737555e6107c783019ee30ca8e1080e18ac
2018-11-09 11:19:54 -08:00
James Page 628a2cda97 py3: improve release determination
Inline with the neutron-openvswitch charm approach, install
ceilometer-common before determining which packages to install.

This will ensure that the charm then installs the right package
set for the remaining packages including the switch to py3
for rocky.

Fixup functional tests to include nova-cloud-controller.

Change-Id: I42be224113a599c0a07aa61a06e23911b8ff51fe
2018-10-17 15:33:42 +01:00
Ryan Beisner 61018ac62a Update requirements
Change-Id: I0fc0fb2025dda3e3201edb650dc8e535a614e286
2018-10-03 11:14:58 -05:00
Corey Bryant fde3d76e3e py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that where explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Change-Id: If189859cbc98f326adb5b1da8d31e9a20da95af9
2018-09-19 11:13:53 +00:00
Ryan Beisner 4b8f25d04a Update functional test definitions
Change-Id: If885fd99813e0205849cf3d4d3e5e16c7edb73eb
2018-08-27 18:12:08 -05:00
Ryan Beisner 13de615aad Update functional test definitions
Change-Id: I8a58efb35d16a1c234b4040acb3091086bdd4226
2018-07-18 18:34:25 -04:00
Chris MacNaughton ddc41e7e4b Remove old nova-compute / mysql relation
Change-Id: I27ed69f500e10b574fa86504fd6c93d916cb7da2
Closes-Bug: #1713807
2018-07-18 10:28:39 +02:00
Chris MacNaughton 09deeec8a4 Sync charm-helpers to ensure Rocky support
Change-Id: I4cbe7e9661d432b262cba98c26ccbb4ff9ba1406
2018-07-13 15:51:16 +02:00
Ryan Beisner 36dc4306d1 Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: Icb600b4dd7d4a04a5b37290217af00a7d2730723
2018-07-11 14:03:02 -05:00
Corey Bryant 75bcf76671 Sync charm-helpers for Rocky series support
Change-Id: I8b59971f5173ad8b7d0a66bd0eca03a5a847532e
2018-06-21 19:12:07 +00:00
Chris MacNaughton d30975beee Update tests to use Juju storage
Due to changes to the ceph-osd charm, it is
suggested to use Juju storage for testing.

Change-Id: If7bef11c272eb0d00f21678540491ee1621ccc5a
Related-Bug: #1698154
2018-06-04 17:30:51 +02:00
David Ames 5060f7b9c2 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I77b578bec509ddbf99b10067ba9509f501f34470
2018-05-15 13:39:39 -07:00
Ryan Beisner 66fb804bd6 Remove deprecated functional test targets
Change-Id: I4de10a98faf29aa7668fd34b50d31204e702e611
2018-05-09 16:33:27 -05:00
Ryan Beisner a38b758a46 Sync charm-helpers
Change-Id: I51e661cc54b10e05d3bff9c3b303f521351a0eee
2018-02-21 14:07:08 -06:00
Billy Olsen 6034ca406a Sync charm-helpers
Sync charm-helpers to pick up the updated InternalEndpointsContext
which removes the need to provide a package.

This essentially reverts commit 005c548a in favor of an alternative
approach to selecting volume catalog endpoint information.

Change-Id: I18183908e9ca54b7ea0a1d309bb7f02d96d3edc0
Related-Bug: #1733566
2018-02-08 18:28:30 -07:00
Ryan Beisner 6577c50185 Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: Ic9ca0350a238cb0c8f23f4335c7ea487a6662b20
2018-01-19 16:48:05 +02:00
Edward Hope-Morley 005c548af9 Sync ch and update InternalEndpointContext
Change-Id: I3184a8fb66496bf5b2697bc71d8d7c1fae94c3e0
Partial-Bug: 1733566
2017-12-08 10:17:08 +00:00
Ryan Beisner 276b1a3e01 Add Bionic and remove Zesty series and tests
Bionic, being the next LTS, is important to enable for dev
and test as early as possible ahead of 18.02.

Zesty goes EOL in Jan 2018. The next stable charms release (18.02)
will not provide Zesty series support, as it was an interim
(non-LTS) release.

Change-Id: Iedbc70eac999dcb72d24237199790585792ba3e7
2017-12-05 05:26:58 +00:00
Andrew McLeod c744a97fb4 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I58bd0b7d6c92a784b38b2abc17f6c739c067c8c9
2017-11-21 11:59:21 +13:00
Liam Young 904aa0d604 Fix test_303 for pre-mitaka
test_303_nova_ceilometer_config_check_endpoint was recently
introduced but it expects ceilometer-polling aganet to be present
which it is not on pre-liberty releases. This change fixes that
assumption and updates the expected keyword for earlier releases.

Change-Id: I1d6cb06433f70a2c0225cafb77f3a2cbbfe703b7
Closes-Bug: #1729346
2017-11-03 07:55:39 +00:00
Zuul 3cd4ec843a Merge "Fixed ceilometer-agent template" 2017-10-02 10:32:36 +00:00
Evgeny Kremenetsky c79168a924 Fixed ceilometer-agent template
Changed "os_endpoint_type=internal" to
"interface = internal" to support communication
by internal urls.

Signed-off-by: Evgeny Kremenetsky <ekremenetsky@dev.rtsoft.ru>

Change-Id: Icc637f4125e76b28d85b4d253ccf9c6be4bd172c
Closes-Bug: #1700111
2017-09-20 13:28:21 +03:00
Ryan Beisner 03bd32eb74 Sync charm-helpers
Change-Id: Ied9d6155e9b1dd71adea87f7cd3b840e75b8d8e4
2017-08-24 16:45:20 -05:00