Commit Graph

89 Commits

Author SHA1 Message Date
Corey Bryant b6b29ce894 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 and .zuul.yaml
* update build-on and run-on bases

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1062
Change-Id: Ie2fdfae9a2304fd6cb55edd4c1b93f1fdbe4014d
2023-08-03 20:53:48 -04:00
Felipe Reyes 0628e02983 Add kinetic support
Summary of changes:
- add kinetic to metadata.yaml
- add 21.10 to run-on in charmcraft.yaml
- add kinetic-zed testing bundle

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1014
Related-Bug: #1972730
Change-Id: I28c1f16bdbe2032e678f7c92caee5ddd3fcd4a7f
2023-02-27 15:44:32 -03:00
Felipe Reyes 375060fcf2 Update bundles to use yoga
This change reconfigures the bundles to use OpenStack yoga, the last
version that supports Focal and Jammy.

Change-Id: I8975f04ef03a7a1ff445771bacdb0fc6ed9d8267
Closes-Bug: #1991528
2022-10-17 21:56:32 -03:00
Alex Kavanagh 23da3d2257 Revert "Add Kinetic and Zed support"
This reverts commit 527261db5c.

Reason for revert: I'm not sure that this should have been merged; it removes support for focal, and that's needed on the 2.4 branch; thus this couldn't be a clean cherry-pick to the stable/jammy branch.

Change-Id: I5b53d552961d39bda91ef97f425123c1bab7e349
2022-08-31 11:40:07 +00:00
Corey Bryant 527261db5c 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: I1a250a0591c15971840bbd6130c7cff3822eed4f
2022-08-26 18:40:35 +00:00
James Page bbe25222e0 Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata

Change-Id: I518bc0212fadd3dc78b8bb21d229ee00e6b9a375
2022-04-05 15:37:58 +01:00
Alex Kavanagh ecceb52f33 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: I4ebaac856ddda643804454288961924c1c256aa9
2022-02-15 16:20:13 +00:00
Alex Kavanagh 127d176b2b Migrate charm to charmhub latest/edge track
Change-Id: I5a4bb25ab1a249b5a790695da1baaa32343db568
2022-01-27 20:23:05 +00:00
Corey Bryant 357f995438 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: I51ed5c7fdb98dcbea72298da956a66b411fed03f
2021-11-20 08:31:11 -05:00
Corey Bryant cc493c3ff5 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: I7cce3b8034bcc118cb0765cfb00c050e9c55f847
2021-11-09 10:27:03 -05:00
Alex Kavanagh b4efe9dc4b 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: I1f99e0d8e70ce29b647707f7e3b53a59ba93fe05
2021-09-23 14:37:28 +01:00
Alex Kavanagh 7431fd21f1 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libaries 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: I84c6210e0db2596cb4ba12ba641b56b6e73b5419
2021-05-06 10:15:26 +00:00
Alvaro Uria 457f88eda6 Adjust quorum after node removal
Add an `update-ring` action for that purpose.
Also print more on various pacemaker failures.
Also removed some dead code.

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/369
Change-Id: I35c0c9ce67fd459b9c3099346705d43d76bbdfe4
Closes-Bug: #1400481
Related-Bug: #1874719
Co-Authored-By: Aurelien Lourot <aurelien.lourot@canonical.com>
Co-Authored-By: Felipe Reyes <felipe.reyes@canonical.com>
2021-03-11 17:24:01 +01:00
Billy Olsen 0c7bb189bc Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Iad1de0d43b18f96382f2b50827ba86b50520d252
2021-02-19 17:01:44 -07:00
Aurelien Lourot 2e799e5cf0 Fix install hook on Groovy
Also add Groovy to the test gate and sync libraries

Change-Id: If32560a88cfa6735bf5e502a70e6b84b0171f045
Closes-Bug: #1903546
2020-11-10 16:40:06 +01:00
Aurelien Lourot 05efe44407 Add focal-victoria to the test gate
Change-Id: I46946c9d6fb90a24eff991025ac9312842fbe340
2020-08-28 14:26:02 +02:00
Aurelien Lourot e43e1de8ca Add Victoria test bundles
Change-Id: I5af31091596098726e269a337f78955ec9b91d44
2020-07-15 10:17:50 +02:00
Alex Kavanagh 96a989d931 Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.  Note that this requires a modified zaza (to use the
force_deploy option).

Note that the func-test change below is to fix the zaza test that
assumes that all subordinates are hacluster; in focal, there is also a
mysql-router subordinate.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/241
Change-Id: I17b9617917a4e0e14817c97023a4676db57937c0
2020-04-20 12:53:50 +01:00
Alex Kavanagh 67453cf844 Remove disco support from the charm
Change-Id: Ie0d69851d640856cdbf2121d53e97c249fcbfb19
2020-02-18 18:18:38 +00:00
Liam Young d3512ef320 Stop HA services accross units for series upgrade
Stop HA services accross all units of an application when doing a
series upgrade to avoid the situation where the cluster has some
nodes on LTS N-1 and some on LTS N.

1) In the 'pre-series-upgrade' send a notification to peers informing
   them that the unit is doing a series upgrade and to which Ubuntu
   version.
2) Peers receive notification. If they are on a later Ubuntu version
   than the one in the notification then they do nothing. Otherwise
   they shutdown corosync and pacemaker and add an entry to the local
   kv store with waiting-unit-upgrade=True.
3) In the 'post-series-upgrade' hook the notification is removed from
   the peer relation. waiting-unit-upgrade is set to False and
   corosync and pacemaker are started.

The result of this is that when the first unit in the cluster starts
a series upgrade all cluster services are shutdown across all units.
They then rejoin the cluster one at a time when they have been
upgraded to the new version.

I added the waiting-unit-upgrade key to deal with the situation where
the first node clears the notification after it has successfully
upgraded, with out the waiting-unit-upgrade the peers would not know
they were in a mixed Ubuntu version cluster.

Change-Id: Id9167534e8933312c561a6acba40399bca437706
Closes-Bug: 1859150
2020-01-31 07:16:21 +00:00
Xiyue Wang df5f114ae1 Port hacluster tests from Amulet to Zaza
Closes-Bug: #1828424
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/148

Signed-off-by: Xiyue Wang <celia.wang@canonical.com>

Change-Id: I0c0447680f89e2378f9bca3b8322a9bfa50ffd46
2019-12-19 02:54:10 +00:00
Corey Bryant 155749ef7d
Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ic3375c957ded388935e2b435fbf6a477bf172b1d
2019-10-24 12:57:11 -05:00
Camille Rodriguez 8767086714 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: Icc28a2fcecc41b7479d62fd6e3bed8e53d89299b
2019-08-26 17:34:43 -04:00
Chris MacNaughton 8527adaae0 Sync charm-helpers
Change-Id: I56e04d87484bff31e7800642b4355cbeca7cd581
2019-07-16 07:06:05 +00:00
Frode Nordahl 1f2e910ae9 Enable bionic/stein and disco/stein functional tests
Change-Id: Id2e6ee5019481c28dd9db09bdbe4c138508a85a0
2019-04-09 06:40:58 +02:00
Ryan Beisner a737bbcc03
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I7c5001cd7506932ef9168126e9f62f3ca0b3fe66
2019-02-06 14:48:31 -06:00
Ryan Beisner f05e118963 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I9aafb4f4fb5ca4b6b04294e69405202a412d056d
2018-10-03 11:41:20 -05:00
Ryan Beisner 598ecc81b4 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I5949c9620fb775b0c11cd13b51b7f94a8a010bea
2018-09-19 13:26:42 +02:00
Ryan Beisner 55d11c8e76 Update functional test definitions
Change-Id: I7e1104d787895410bd94c11ba9f682d159ca086d
2018-08-27 18:14:58 -05:00
Ryan Beisner 61a5f7e4c2 Update functional test definitions
Change-Id: I820568316188df557fc73e2cc2023e0aa02ef070
2018-07-18 18:36:09 -04:00
Zuul 40fdca982f Merge "Added actions status and cleanup" 2018-07-17 22:42:41 +00:00
Chris MacNaughton ac30227081 Sync charm-helpers to ensure Rocky support
Change-Id: I40de4c97207ab4bd5c3a64e6cf7dff7edf4c051a
2018-07-13 15:54:54 +02:00
Ryan Beisner 1ac9828186 Remove deprecated functional test targets
Change-Id: I70eabdbab83d18bc2a6a13c2341155c9a1188859
2018-05-09 16:35:56 -05:00
David Ames 6ebcc30d77 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I3d7c36b5728dfdf62e48507aa4f7e05c8fb54c48
2018-05-08 11:59:23 -07:00
Drew Freiberger c2caa65570 Added actions status and cleanup
Closes-Bug: 1688019
Change-Id: I9cddaa6b18991080ef91be68af761caa046a47c6
2018-04-06 06:27:42 +00:00
James Page 6fc85dc5a2 bionic: ensure crmsh package is installed
pacemaker no longer Recommends crmsh so explicitly install it
for all Ubuntu series as its required for charm operation.

Also enable bionic amulet test as part of a full gate recheck.

Change-Id: I06e0dcfec0a787f85655c89bf36e18253c75de2e
2018-03-16 10:54:49 +00:00
Liam Young a2e655cbf3 Fix up amulet for queens
* Fix up amulet tests to use keystone v3 clients.
* Remove admin_* and auth_* for Queens l3_agent and metadata
  config files as they no longer appears to be used.
* charm helper sync

Change-Id: I880b7f710fa6b5ba480fb41d4095871fd9dabed7
2018-03-02 20:29:50 +00:00
Ryan Beisner 57a7dd86f5 Sync charm-helpers
Change-Id: I49b73bae7379dc50027b8c9ec8beee926dce927c
2018-02-21 14:08:39 -06:00
Ryan Beisner 9422937917 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: Ia244151bbb74ddecd30ea2005d741c072b5ace9a
2018-01-19 12:08:51 +00:00
David Ames fe46216882 CH sync for bionic support
Sync charm-helpers for Bionic support.

Change-Id: I597e774d9bdcc50fe9fe3d3da27e4c541519de39
2018-01-03 16:19:24 -08:00
Ryan Beisner 657547e730 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: I71a05a94d98f92b38744988e0a77702c554ef936
2017-12-05 05:28:22 +00:00
Andrew McLeod d6c5ecdd34 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I325902a23d1c72a743417261139d7542a8fa5e2e
2017-11-21 12:17:36 +13:00
Ryan Beisner 3cd7048023 Sync charm-helpers
Change-Id: I4004108a9a3c1bd6221a4e983852b15dd37c3381
2017-08-24 16:53:35 -05:00
Ryan Beisner 8ce86fd0bf Remove deprecated series metadata and tests
Change-Id: I256d755f6ae6bab62a7b3a534804a3b70308cd91
2017-08-23 09:53:11 -05:00
Felipe Reyes e95488afa0 Add maintenance-mode configuration option
This config option allows syadmins to set pacemaker in maintenance mode
which will stop monitoring on the configured resources, so services
can be stopped/restarted and pacemaker won't start them again or
migrating resources (e.g. virtual IPs).

Change-Id: I232a043e6d9d45f2cf833d4f7c4d89b079f258bb
Partial-Bug: 1698926
2017-08-16 17:44:44 +00:00
Andrew McLeod 66271fc28c Modify tests.yaml which specifies bundletester config params
with the following key:value pairs:

- reset_timeout: 600

Change-Id: Ida6ebcc283f6a8bd7b3e1ef486a2a3eb7f1df6bf
2017-08-09 10:07:31 -06:00
David Ames 3101266105 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Ibe6fffd7f615e43342b73258bde870dee9dcc5ad
2017-05-05 15:31:42 +00:00
Alex Kavanagh e1018cf3b2 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: Ib42a1e976c05a164f134ea54e4bd390b7d79d55c
Related-Bug: #1659575
2017-03-29 17:51:58 +01:00
David Ames f58b1d3018 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve trusty amulet test failures.

Change-Id: Ie191a57b33dd6b349e190686cb5b8a9a5b3075d1
2017-03-21 17:46:09 +00:00
David Ames f37ae6bc76 Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I52f64f37a16d7869a4cd8e310bd20cc0b26bf1d7
2017-02-14 14:59:00 -08:00