Commit Graph

204 Commits

Author SHA1 Message Date
Alex Kavanagh 004576e82b 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: If3fd48454e7959fdd6e2e1708b80a97c76576063
2024-02-12 18:19:56 +00:00
Corey Bryant 16b009d743 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: I6893deebdd105fb794dc06907b9366354d3e4ce0
2023-08-02 14:18:10 -04:00
Corey Bryant be8600d97c 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: I18f3112b7fca0e6af35aa4f6231b9ca9a5414a3e
2023-03-29 21:01:49 +00:00
Corey Bryant 645ee87686 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: Iae257f880194aebfd8ba3002b7cf74a84fcfb9c9
2023-03-07 19:07:12 +00:00
Corey Bryant 29d03fc673 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: Idf4a6cd1e0888576f890b00aa5b343936900d6dd
2022-08-26 18:40:36 +00:00
Alex Kavanagh ebc532bde3 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: Ia2f3bcba500de242a93d9f0bf073a9c5c3aad89a
2022-02-17 18:22:09 -07:00
Alex Kavanagh 4d30bdd203 Migrate charm to charmhub latest/edge track
Change-Id: I6c63e64dd7a1150cc4a1a1dae680157e2c47b6a3
2022-01-27 20:30:46 +00:00
Zuul 24a263a14d Merge "Add CMR gate test for vault <-> keystone" 2021-12-15 22:15:43 +00:00
Liam Young cca2cb4b96 Add CMR gate test for vault <-> keystone
Add a gate test to check the keystone relating to vault via a
CMR.

Change-Id: Ife14892c69cf3ab2edcd7ade1346bb227ebe4250
2021-12-14 11:09:31 +00:00
Andy Wu 5d19a1fab3 Fix keystone charm path setting in test bundles
Set keystone charm path in test/bundle/*.yaml to "../../"

Closes-Bug: #1947793

Change-Id: I4d32c78ddf83f6deb86c5b84d359929d23b94ba5
2021-12-14 10:32:32 +00:00
Corey Bryant 5ba7d75df0 Additional test updates
* drop xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I6b5b33d17450361f9f11bbc21e0651c2e2d3c0cf
2021-11-17 14:47:35 -05:00
Corey Bryant 18afefd965 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: Ie5d197e42c8c1fff5a757400ed3edadb07caaa5f
2021-11-09 10:27:03 -05:00
Alex Kavanagh faeb5e7825 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
- Note that this depends on I7f17acb4cc4a83fc15655bf6e15c8ff3b3fe92ff
  to be able to land this as glance needs xena support to run in this
  charms functional tests.

Change-Id: Ieaed39e06a7454f71b1422c46c4fccd72fbe04af
2021-09-28 15:39:00 +01:00
Alex Kavanagh f8439f48ef Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Sync libraries

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: Id837ffa7bdc3ed4ed739824785d658522dc9e328
2021-05-06 10:12:40 +00:00
Billy Olsen 3aa0fcd393 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I73abd2607dd7408113b8a4be88b679f16e15b99f
2021-02-19 17:02:05 -07:00
Aurelien Lourot e8c74b9327 Add Groovy to the test gate
Change-Id: I3f45d051b352ad7a1b05b693c2349abc51bdb4b8
2021-01-22 17:35:51 +01:00
Aurelien Lourot 6ba782f61d Add focal-victoria to the test gate
Change-Id: I8eb5ceac5bb23ecc5419bf51349713ceecca995e
2020-09-14 18:41:57 +00:00
Aurelien Lourot 76efbf0037 Add Victoria test bundles
Change-Id: Ic0a245fea8e49efdc7bddbd0ff63aeed4128db72
2020-07-20 23:43:11 +02:00
Aurelien Lourot 8b46dfd637 Fix peer readiness detection
Sharing the admin password with peers over the 'cluster' relation
was needed in case the leader would die and the next leader would
then need that information. This was implemented years ago when
the leader DB didn't exist.

This led to a race condition described in the mentioned bug and
can now be safely removed.

Validated by deploying several keystone and glance units, then
removing the keystone leader, then adding a glance unit and
checking that this new unit gets its service credentials.

Also added useful traces, made linter happy and increased fernet
token expiration to avoid spurious test failures.

Closes-Bug: #1818113
Change-Id: I004903e50f51e190467d71691982de26518d7149
2020-07-16 22:56:46 +02:00
Alex Kavanagh 389a59cf4d Add yaml vars to focal-ussuri bundle
This brings it into line with the other charms that are part of the the
enable-focal topic.  This makes it easier to add a new bundle just by
changing a couple of variables.

Change-Id: If45c350bb782b5e3367e97153379f2706f8fe4c9
2020-04-02 11:31:54 +01:00
Alex Kavanagh 5244517d56 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).

The patchset includes a charm-helpers sync to bring in Py3.8 compatible
charm-helpers for focal support.

It also requires Py3.8 compatible versions of hacluster and glance
charms.  See:

 - https://review.opendev.org/#/c/711616/ - charm-glance
 - https://review.opendev.org/#/c/711617/ - charm-hacluster

Change-Id: I78569b8c51626177164084e4d1f5e18d40f4c3d8
2020-03-12 12:37:01 +00:00
Alex Kavanagh 9b6d5c9aac Remove disco support from the charm
Change-Id: Ie392ba049b097214d70182698ce7d10eec6617ff
2020-02-18 15:50:22 +00:00
Liam Young fca036ba24 Use get_managed_services_and_ports from ch
Switch to using get_managed_services_and_ports from charmhelpers.

Charmhelper sync included to bring in required
get_managed_services_and_ports method.

Change-Id: Ib2b1f3dead1dbb613591bdf3903ed56e8c14f45c
2020-01-29 08:02:13 +00:00
Sahid Orentino Ferdjaoui af06e0d356 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: I8cbc3d890e1fbeb05e2eef0354cdb60d849f20b4
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-16 15:31:54 +00:00
Alex Kavanagh 186769cc05 Policyd override implementation
This patchset implements policy overrides for keystone.  It uses the
code in charmhelpers.

Closed-Bug: #1741723
Change-Id: I187f4493392178d87ef7dbd67de841bbeae0c65d
2019-10-07 20:31:02 +01:00
Camille Rodriguez 1497395cde 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 minor adds:
- Changing naming convention for vip: 'Amulet' is deprecated.
- Passing OS env vars

LP Related-Bug: #1823719
Change-Id: I787248ad2983858c6db2e5a838270a128dae717a
2019-08-26 11:15:53 -04:00
Frode Nordahl 3d05252330 Update functional test definitions
Change-Id: If79038bb9b4e8de9bf073fb061568bc07cfa4082
2019-07-17 15:29:45 +02:00
Chris MacNaughton 35b4fc4a5f Sync charm-helpers
Change-Id: Iad76ecbb4850941bc9b184f4d0327f1a18b3770a
2019-07-16 07:06:04 +00:00
Chris MacNaughton 665ef98ba9 Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: I19c98b17087b6d1ff86aa749654a13a14e61c951
2019-05-01 17:04:38 +02:00
Frode Nordahl d882704fd3 Enable bionic/stein and disco/stein functional tests
Change-Id: I88230ec382ddaf567367bf09cb448c377afb354f
2019-04-15 08:55:27 +02:00
Chris MacNaughton 3bd0997bf4 Add security checklist to Keystone
This charm adds the general ownership audits, as well
as keystone specific security checklist audits.

Change-Id: Iee093b36c54081f14a07c95e677ea08c72d72ca4
2019-03-07 06:54:40 +00:00
Ryan Beisner 07d798afa8
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: If68e9c5a6ddbc12176f22e9d777e5c8c76faf7c5
2019-02-06 14:49:43 -06:00
David Ames d720e537e3 Use hacluster for true HA validation
Currently the keystone zaza tests deploy multiple instances of keystone,
however, without hacluster.

The recent LP Bug #1801754 would have been caught if the tests ran a
true HA environment with hacluster.

This change adds hacluster and a VIP for keystone.

Change-Id: I7ebd7cd5c1961329080c9ddd7d7e574f925872ae
2018-11-08 14:52:13 -08:00
Corey Bryant 9cb5636eba 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 were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Also drop the python2 shebang from hooks/manager.py in favor of
specifying the interpreter on the subprocess call. The python
interpreter version must match the python version of the OpenStack
payload due to the keystoneclient library imports.

Depends-On: I18996e15d2d08b1dacf0533132eae880cbb9aa32
Change-Id: If973ebc2be3b32ee3ff2122b5874dad96cda9fec
2018-10-10 09:20:51 -04:00
Frode Nordahl 8da8061687 Sync charm helpers and enable Rocky func test
Change-Id: I4429687492dbac75dcbf9310d2144f8f6dcf9c79
2018-08-27 14:54:37 +02:00
Frode Nordahl 8b95e4c27f Optimize bundles for faster test execution
Give machine deployed for database unit more RAM.

Make sure machine used for database unit is deployed first.

Change-Id: I3a2f09396629fda52f9b72284d90756da9cc2536
2018-08-22 08:11:56 +00:00
Frode Nordahl 3c34a8520a
Switch functional test framework from Amulet to Zaza
Change-Id: Id55bf63cb34b6ccad876ddd47734b959c63ed742
2018-08-21 04:48:44 +02:00
Frode Nordahl 1e991dc28b
Add initial support for Fernet tokens
Starting OpenStack Rocky the currently used `uuid` token format
is no longer supported and we need to change to use `fernet` tokens.

This change provides basic functionalty to initialize fernet token
repository and distribute keys to non-leader units.

A configuration option is also added allowing change of token format
in a controlled manner prior to upgrading to OpenStack Rocky.

Further work is required to implement key rotation, actions etc. and
these topics will be addressed in separate commits.

The commit also fixes a instance of missing release check for writing
of `policy.json`, and a few places where writing of `policy.json`
previously was omitted.

Change-Id: I1d0ff22a5f091b02f5700412745572c246103e9e
2018-07-25 15:23:47 +02:00
Ryan Beisner f1a112c193 Update functional test definitions
Change-Id: Id4c8e57ce407870c6c358d60952878de98ff5fec
2018-07-18 18:36:25 -04:00
Ryan Beisner 6ff4ff9d04 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: I7fc1db909aa2059f039a09b694c1058322883f4a
2018-07-11 14:05:22 -05:00
Corey Bryant d7348a532a Sync charm-helpers for Rocky series support
Change-Id: Ibf8a509de4ce49700aa0207b9401dff43e4cb8fd
2018-06-21 18:40:40 +00:00
Liam Young 7cb9a1559d Add support for tls-certificates relation
Add support for keystone to request and receive certificates from
the ls-certificates relation.

Change-Id: I6222e5eb9c8a0a5f079ecc2e5e5c97abc1c39515
2018-05-15 14:10:31 +00:00
David Ames 97e2185517 Re sync charm-helpers
There was a mid-air collision with charm helpers syncs. The critical
piece is the removal of a second stats socket line from the haproxy
templates which breaks on trusty.

All other amulet tests that include keystone will fail on trusty until
this is landed.

Change-Id: Ide3b7cbda238b9a7b93f0625c21d43335bc10e81
2018-05-10 13:43:46 -07:00
David Ames ce8f8d2392 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I1cea7c9773a06eafa84ec6e4303cfc49219823a7
2018-05-09 09:33:56 -07:00
David Ames a240c520a5 Run identity client relations when db is complete
When keystone is deployed with multiple units but without hacluster one
off scenarios occur where one non-leader unit will fail to update its
client relations.

This change runs all identity client relations when the database
relation is complete thus guaranteeing all keystone units update there
identity relation data with clients.

Small timing fix to amulet tests.

Closes-Bug: #1761562
Change-Id: I338e500dbc155b75c75b9261a9b5b471bd73088a
2018-04-13 08:48:47 -07:00
sfeole a189c3da80 Don't ensure pki permissions for releases <= Pike
Openstack PKI token support was dropped in the Pike release.
The following update ensures that PKI token validation is
only run if the release is supported when the sync leader
broadcasts any service credentials to its peers.

In this case; if the release is <= pike. then we can sync
token certs and ensure the pki permissions are valid.
Otherwise this action will be skipped.

Closes-Bug: 1759403
Change-Id: I3d8ba6d3cac3a3505a3722a5082c3a6933a9ef67
2018-04-05 08:57:15 -04:00
Ryan Beisner 570be19cc0 Update amulet tests
Remove soon-to-be deprecated release combos from amulet tests

Change-Id: I425410a41a86138b9e6d77e9273a2b10d541e8cc
2018-04-03 22:02:26 -05:00
David Ames 7dd36238ed Create Keystone V3 Deployment Class
For Queens keystone v2 has been dropped. V3 is the only valid API
version. The charm has already made this change. This change is to
bring the amulet test up to match by creating a separate class.

Charm-helpers sync

Enlarging the amulet timeout value.

Change-Id: I822624bdf45bfb060dd75ba3b10e71984bc10e48
2018-02-20 14:24:33 -08:00
Ryan Beisner 0676e8cf80 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: Ia65aadc4b024802826d81953dec1183f3785a0eb
2018-01-19 16:30:04 +02:00
Zuul 2ba8a56a59 Merge "Remove deploy from source support" 2018-01-12 14:42:43 +00:00