Commit Graph

151 Commits

Author SHA1 Message Date
Alex Kavanagh 959752f48c 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: Id88fe1d5e3b177099966c659d11b96e6d1fb4c4f
2024-02-12 18:21:35 +00:00
Corey Bryant b56c411c48 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: I59aba33be9d8031f437e860200c6e6a1902630dd
2023-08-02 14:19:50 -04:00
Felipe Reyes cc904247a2 Fix placement of vault unit.
Change-Id: I43048928cf319b5ca9a8af68000736ca26ffcf0e
2023-05-26 15:53:57 +00:00
Corey Bryant 9315fb5e5c 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: I46c1bb4a5c751d12435b6a42a59dd90413937d49
2023-03-29 21:01:50 +00:00
Corey Bryant dd8c4453b2 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: I236864fef58fb9b69a5298643a5c095fbfe2ca8e
2023-03-07 20:31:30 +00:00
Corey Bryant 448daa6fdf 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: I2cb698f719106e54b06009f24ea47259419e9cad
2022-08-26 18:40:42 +00:00
Alex Kavanagh c1cbacb9c2 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: Ifdf20eb653bf5a828a03e120018fa447310f043c
2022-02-15 17:05:06 +00:00
Alex Kavanagh 9b9aa438d8 Migrate charm to charmhub latest/edge track
Change-Id: I5efa7b6ceafb58a3915ada7b3d7e70e49814605e
2022-01-27 22:04:50 +00:00
Corey Bryant d94662f374 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: Ie287d7462b5e2cfcb1f91f25117eb61d93f59a1f
2021-11-19 15:49:59 -05:00
Chris MacNaughton 36c79b6179 Disable local overlay for CMR vault bundle.
When the local overlay is enabled, Zaza ends up deploying
a 0-unit openstack-dashboard into the Vault model, which
breaks the waiting for status as, generally, it is not
desired to have a 0-unit openstack-dashboard. We can
disable this local overlay with a key in the bundle in
question.

Closes-Bug: #1945786
Change-Id: Id11d0d00e45f2d332debdc9119ad4f5150e46a51
2021-10-06 06:23:06 +00:00
Alex Kavanagh 287126edf5 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: If3843b99a968f7cd55fd33a79fc8365ff0913256
2021-09-27 19:50:40 +01:00
Alex Kavanagh 861a4779db 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: Iea8564df7d5f1236864bc9bcbc719350384df1e7
2021-05-06 10:19:31 +00:00
Garrett Thompson 8e4dc4844a Add ENFORCE_PASSWORD_CHECK setting
This setting is a behavior change, requring the admin password
to be provided when changing the password of an admin user. Enabling
this setting by default adheres to the security recommendation
provided in the OpenStack security guide [0].

To enable this setting for Queens (the oldest supported OpenStack
release at the time of this commit), a new local_settings.py file was
copied from the Ocata template to ensure that any future versions will
inherit this setting until a new change is made.

Due to the security-checklist action currently failing [1], these have been
extracted to another class, and refactored in the zaza-openstack-tests
repo [2].

[0] https://docs.openstack.org/security-guide/dashboard/checklist.html

[1] 2ef404be75/zaza/openstack/charm_tests/openstack_dashboard/tests.py (L418)

[2] https://github.com/openstack-charmers/zaza-openstack-tests/pull/501

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/501
Closes-Bug: #1883196
Change-Id: Idfd8654732289481806aea8b47ffa28cf3f97697
2021-02-12 00:27:27 +00:00
Aurelien Lourot 9c1d038211 Add Groovy to the test gate
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/485
Change-Id: Iba6539941996aabb00b1bc8815e25af7e9a999c4
2021-01-19 12:18:23 +01:00
Aurelien Lourot ea804fcd93 Remove Disco and Eoan bits
Change-Id: I23390bfeb8eff7c43e8ff4df6b1d3cf2c518912a
2021-01-12 14:02:55 +01:00
Aurelien Lourot df02743dd0 Add focal-victoria to the test gate
Change-Id: I3888fcc268fc8fd5d6ee359398cfbd88c9ee7e7d
2020-08-28 14:28:22 +02:00
Liam Young b9905a9d32 Ensure that certificates are correctly managed.
When the certificates relation is ready before the
HA relation is clustered, the VIP symlinks will not
be created pointing at the correct certificates. This
change updates the HA handlers to ensure that the
certificate relation is handled after clustering,
if there are any certificate relations.

There was no functional test coverage for HA and TLS
deployments so this change also add a test for
those and CMR too. Having said that, the test
initialises vault once the deployments are
complete so is unlikely to trigger #1886077 the tests
to check there is no regression of exising
functionality.

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

Change-Id: I7c9c81318dbbcea618ac3781b8f19e8159e56bcb
Closes-Bug: #1886077
2020-08-20 15:36:40 +00:00
Aurelien Lourot 29e9aead25 Add Victoria test bundles
Change-Id: I990ddff0be85f38912f82078aa72fa159a973d87
2020-07-22 10:41:40 +02:00
Alex Kavanagh 700ebb14c7 Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.

Also, for focal, switch the install and upgrade-charm hooks to install
python3 modules rather than python2 modules.

Change-Id: I75dbf72eb4c2d7d2986730e0ada9a6c359f825d3
2020-04-03 16:50:58 +01:00
Alex Kavanagh 1e2515e13f Fix issue with plugins breaking packages
The core issue is that the plugin had no way to signal to the
principal charm what packages needed to be installed, and crucially,
which conflicted with the packages that the plugin needs to operate.
The referenced bug exhibits this issue in that, on install, a package
is removed by the plugin, but the principal charm "doesn't know".  Then
on upgrade, the principal charm re-installs the package, and breaks
the plugin.

This patch allows the plugin to signal which packages it requires to
operate via the dashboard-plugin interface.  This ensures that when
the openstack-dashboard charm upgrades it already "knows" what a
plugin needs and acts accordingly.  Equally, plugins can change their
requirements and this patch allows them to update/remove/install
packages as needed.

The local_settings.py is already controlled by the principal, and this
just shifts absolute control over packaging to the principal as well.
The plugin charm's purpose is to indicate packages and config to the
principal.

Note.  There should be no backwards compatibility issues with this
change. If a plugin doesn't notify the principal of any packages then it
won't take any action.  This does mean that the openstack-charm should
be upgrade prior to any plugins that gain this feature.

Also disable disco test as disco is EOL.

Change-Id: Ib3fc0b0525dabf70f45fd050af2ed05ba31129b9
Related-Bug: #1853851
2020-01-30 16:18:09 +00:00
Liam Young de4e9ec338 When resuming, exclude haproxy
When resuming services exclude those managed by hacluster, in
this case haproxy. If pacemaker lacks quorum it may shut haproxy
down which will cause this charm to error.

Charmhelper sync included to bring in required
get_managed_services_and_ports method.

Change-Id: I6f997df31922b6090e5b4b1daeec342a044be5c3
2020-01-26 07:47:02 +00:00
Alex Kavanagh 1b1e7c583c Policyd override implementation
This patchset implements policy overrides for octavia.  It uses the
code in charmhelpers [1] which has been modified to support the richer
and more complex approach to handling policy overrides.

[1]: https://github.com/juju/charm-helpers/pull/393

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

Change-Id: Ib51fd2c7c540c680083c2928eab4ce4df0d43e23
Closed-Bug: #1741723
2019-11-20 14:40:03 +00:00
Alex Kavanagh 830c3b2dd2 Implement zaza tests for openstack-dashboard charm
This patchset removes the amulet tests and ports them to using the zaza
framework.

This patcheset is dependent on PR#104 [1] to be able to merged.

[1]: https://github.com/openstack-charmers/zaza-openstack-tests/pull/104

Change-Id: I1af134a3d7346af77584949722ca23ff65107502
Closes-Bug: #1828424
2019-10-24 12:50:05 +01:00
Corey Bryant dda4bddce2 Enable functional tests for train
This patch also updates the smoke test to run train.

Depends-On: https://review.opendev.org/#/c/681927/
Change-Id: I1b6fb659ae3c655609bdbc360a2bf09f30577d0b
2019-10-18 21:25:33 +00:00
Alex Kavanagh 1ef2e6f49c Add stein gate test
This patchset adds the stein gate check and the changes necessary in
basic_deployment.py to get the auth to pass, as the app has changed
slightly since rocky.

Change-Id: I2dfde541ebcceb7b29a055fd75cd783e845839b5
2019-08-04 21:49:58 +01:00
Chris MacNaughton a0600b286e
Sync charm-helpers
Amend functional test for Stein onwards.

Change-Id: I2cfdee91a09809ab3037184b11142a67908ecc02
2019-07-17 09:19:16 +02:00
Chris MacNaughton 865e961067 Add security-checklist action
Change-Id: Ib9376aef02e1c8a53098a8bf6942cc71d78ea45d
2019-03-13 10:11:25 +01:00
Ryan Beisner 693d3c274d
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: Ifc4263a56a35e698421e02bad786a7d1bee13e90
2019-02-06 14:49:54 -06:00
Ryan Beisner 28af2db7aa Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I304d555dcbd86c75b8d84cb376ff4112bfbe0d68
2018-10-03 13:11:28 -05:00
Alex Kavanagh eca37a1dad Update charm to PY3 only code
This change upgrades the charm to PY3 only mode.
Note the changes to charm-helpers has also been made to support
Apache auditing code in PY3.

Change-Id: Idd347de5818ec57cb05f38170fe0d6536157a0da
2018-10-02 12:11:08 +01:00
David Ames f340e2102d Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I5ae677ece057ede71b227309eea0d1b635d55f7b
2018-09-22 20:21:33 +00:00
Ryan Beisner 2c188d97e2 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: I7c775abf0172bb17e047542c8b1fc728c56bdfe5
2018-09-19 13:32:57 +02:00
Ryan Beisner f9c822e901 Update functional test definitions
Update testing setup and config.
Fixes to policy.json

Closes-Bug: #1789961
Change-Id: Iac5da7cd02a5c87f3002dbabf6c21a5c2f936536
2018-09-04 10:14:33 -07:00
Ryan Beisner 6ba63148d0 Update functional test definitions
Change-Id: I2fd2188572dd7838ec066c810f6882e9274d25a5
2018-07-18 18:38:02 -04:00
Chris MacNaughton 6af10eb7ca Sync charm-helpers to ensure Rocky support
Change-Id: Ibd54b4a4e98caf5590f1a147de6b15c2dabf5849
2018-07-13 15:58:47 +02:00
Zuul 4566f20b4c Merge "Allow custom theme install" 2018-07-12 14:39:24 +00:00
Chris Sanders e5d9c95724 Allow custom theme install
Adds a setting custom-theme which operats similar to ubuntu-theme and
default-theme. The provided resource is placed in the themes folder and
apache is setup to serve static content for the theme. This leaves the
default theme untouched allowing the custom theme to override files
based on the built in horizon theme capabilities. For details on theming
capabilities see:
https://docs.openstack.org/horizon/latest/configuration/themes.html

gnuoy: retry logic for unrelated test updated after a number of CI
failures.

Closes-Bug: #1778284

Change-Id: I91ad19e8aad5c0e0773d42fa4f085cbcecb82458
2018-07-12 08:09:05 +00:00
Ryan Beisner 138d956efd 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: I1e0b7d0d0994fd229c15cf8c456b2b82bc4041e8
2018-07-11 14:07:15 -05:00
Zuul a0056fabd2 Merge "Sync charm-helpers for Rocky series support" 2018-06-28 06:05:15 +00:00
Frode Nordahl db9fac5f4b Use `manage.py migrate` for django versions >= 1.9
`syncdb` subcommand was deprecated in django 1.7
and subsequently removed in 1.9.

Use `subprocess.check_call()` so we catch errors.

Add `shared-db` relation and enable debug logging in deployment
used in functional test.  Add functional test that authenticates
through the dashboard.

Update unit tests.

Change-Id: I567461e57ec431fc470d7a2a31d3f16e9dc50e8b
Closes-Bug: #1777358
2018-06-22 12:57:15 +00:00
Frode Nordahl 293f297b09
Temporarily retry initial connect in test 400
There is a eluding issue that currently makes the
first request to the OpenStack Dashboard error out
with 500 Internal Server Error in CI.  Temporarilly
add retry logic to unwedge the gate.  This issue
should be revisited and root caused properly when time
allows.

Change-Id: Id828082416c7cbdd88247d9b6750c0f77467bc26
2018-06-22 09:32:15 +02:00
Corey Bryant 19a52d2c9f Sync charm-helpers for Rocky series support
Change-Id: Ib15aa2d76e009415f525132492bcc3679750bfd9
2018-06-21 18:55:46 +00:00
Zuul 62624ab35c Merge "Enable Bionic as a gate test" 2018-05-11 09:02:49 +00:00
Ryan Beisner 9699430d06 Remove deprecated functional test targets
Change-Id: I9170b428ad504664c6045f26ed2ad34d5159fcb3
2018-05-09 16:37:35 -05:00
David Ames 8a86e662b3 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I5e1214055d49a0ab170ad3ebc1c4fccca0eb7ebc
2018-05-09 09:34:42 -07:00
David Ames 0707590487 Charm-helpers sync to fix CA cert comparison
The comparison of bytes vs string of the CA certificate produces a
false negative. This leads to rewriting certificates and affecting
connectivity to services.

Read in the certificate as bytes as well for a bytes vs bytes
comparison.

Change-Id: I3b233a79689858db0962bafe71eba0a0667c2bf0
Closes-Bug: #1762431
2018-04-11 14:28:26 -07:00
Ryan Beisner eb9e0b8391 Add regression test coverage for conf file permissions
Change-Id: I8e7f986035935a742b4acb320f71887e23989dbb
Partial-bug: #1755027
2018-04-06 21:38:06 +00:00
Corey Bryant 8a7fb77ed9 Drop trusty-liberty test as its EOL.
Change-Id: I4265c92ad7ca8ce7c924b3b861d349b0cef7529e
2018-03-26 14:30:53 -04:00
Liam Young fe209e82d2 Enable Xenial Queens amulet tests at gate
Add the xenial/queens functional tests to the gate

Change-Id: I96dcbf2b4ab402a1918d1aa9073acb3467965bbc
2018-03-02 11:08:07 +00:00
Ryan Beisner 4c5204ee19 Sync charm-helpers
Change-Id: I296f081e9de99da2fefe5a581dfc2ffe5fba4429
2018-02-21 14:10:21 -06:00