Commit Graph

188 Commits

Author SHA1 Message Date
Alex Kavanagh ba3ac4a1dc 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: I5d15739f7f0804323ec61629fea53fc13f638f34
2024-02-12 18:18:57 +00:00
Corey Bryant d06c3a5e9f 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: Ied0a22bcd255d9dd2d253db2a64e549963ce942d
2023-08-02 14:20:26 -04:00
Corey Bryant 9246a92b98 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: Ieacd818299773e3ffee55ab3f7f052e2f57dd74a
2023-03-29 21:01:47 +00:00
Corey Bryant 14f6801933 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: I57e1fec8537d95b1035aa809ab30378fb44973da
2023-03-07 20:07:52 +00:00
Liam Young dd8a9aae8a Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Id697fb2ae78af9c4e111d419b88ada2c98134f80
2023-01-16 13:40:03 +00:00
Nobuto Murata ba21da64f6 Re-enable AppArmor enforcement
Ensure tests are run with aa-profile-mode=enforce. So we should be able
to notice any future behavioral changes in the upstream or additional
rules required for nova-compute AppArmor profile in the functional
tests.

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

Depends-Onː Id2db3a70b8d1287bda006f1bbc5442038f7070f1
Related-Bug: #1979812
Related-Bug: #1939389

Change-Id: If658d9e8ee11248ef09e774f3e21fe0f801dc066
2022-09-04 10:04:11 +09:00
Corey Bryant cdc2fc738f 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: Ie133bc41bf789e07d4d777e128617b21d822de30
2022-08-26 18:40:29 +00:00
Gabriel Adrian Samfira 024de3783f Add nova section
Cinder sometimes needs to communicate with nova,
for example to notify VMs when live-resizing a disk.
Under certain circumstances,
the autodetected authentication details don't work,
so we must add a dedicated section in the config
for the nova client with proper credentials.

This issue has been observed on victoria and newer,
hence the addition of cinder.conf for victoria.

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

Closes-Bug: #1939389

Co-authored-by: Samuel Walladge <samuel.walladge@canonical.com>

Change-Id: I6d44223b7c2863c6d9c62b46a41275fd360f92d1
2022-06-27 13:30:18 +09:30
Alex Kavanagh 8903fdca5e 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: Ic7cf54d7669219f4a42e08c8a1e2adb786a16af6
2022-02-17 12:30:05 -05:00
Alex Kavanagh 7c551e4dfa Migrate charm to charmhub latest/edge track
Change-Id: Ida0ad9ac927de7ed8f9206521014404b38187cd6
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-01 12:52:13 +01:00
Corey Bryant dcbce12bef 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: If7019d54b67c10407c0db5fac098aa9cee993f1c
2021-11-19 08:25:29 -05:00
Alex Kavanagh e0dc05f247 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: Iff97425a8d0c9bd6db4bfb821cfb74467db78a47
2021-09-22 10:31:35 +01:00
Alex Kavanagh 8743a4c81e 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: I273ac839e051ef86f75ae91778ffbf2baebb0838
2021-05-05 11:55:18 +00:00
Billy Olsen b5fb7ec1f4 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Iea76f697caac86fb8adb396e795ede9d3480181d
2021-02-19 17:00:22 -07:00
Aurelien Lourot 33110e8192 Add Groovy to the test gate
Change-Id: I9460ea2d117ad5630fb8826b5a4e5417c0635757
2020-11-05 12:45:13 +01:00
Aurelien Lourot 9337c9acdc Add focal-victoria to the test gate
Change-Id: I176e83f5f907938f0ef30ed51e954f9ad8d2f76c
2020-08-28 14:24:58 +02:00
Aurelien Lourot b62b12bbbb Add Victoria test bundles
Change-Id: I3aded8fbce45192a784bab657e465e1d699128be
2020-07-14 11:41:39 +02:00
Alvaro Uria 71f968faf1 Ensure API not configured on volume-only units
COMMON_PACKAGES included haproxy and apache2. However, enabled-services
can request a unit to only run cinder-volume. Cinder API related
services should not run or get monitored.

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

Change-Id: I69f15c3fd164f7114f5498d100b2832caf93fb00
Closes-Bug: #1779310
2020-07-01 10:50:03 +02:00
Zuul 1b82ca14a9 Merge "Enable focal testing and support" 2020-04-15 15:35:07 +00:00
Alex Kavanagh ab2959b14f Enable focal testing and support
This patchset adds support for focal to the charm, enables the
bionic-ussuri and focal-ussuri bundles which verify that the charm works
and tests on focal with ussuri.  In order for the tests to land,
serveral dependent changes to other charms are needed (see links) just
so that the charms will run on focal.  Also, cinder needs to use local
block devices, and due to the related error, a change to
charm-test-infra model-defaults is needed for the charm to pass its
tests.

Links:

 - disable vdb in charm-test-infra
 - placement charm focal support
 - neutron-openvswitch charm focal support
 - rabbitmq-server charm focal support

Change-Id: I99ce6888a9570b34e1a171242a787ed93abdf82d
charm-test-infra: https://github.com/openstack-charmers/charm-test-infra/pull/42
Depends-On: If43d096c6bd5c57d00d92c54bc0ce464ba50bfa1
Depends-On: Ie744c1ff4c6651633d12dcd4de28d5e7a3e8646f
Depends-On: Ia239b7c2f0ed2383e220cf0fa4ade443149a3b32
2020-04-09 14:12:47 +01:00
Zuul 5754387fbf Merge "The Cinder icehouse tests did not deploy Cinder" 2020-04-09 08:54:45 +00:00
Alex Kavanagh 7a98ea3daa Add juju storage support to the charm
This feature adds juju storage support to the charm.  This is largely to
deal with the related bugs, but also makes the charm more useful.

Release-Note: https://review.opendev.org/#/c/718410/

Related-Bug: #1801349
Change-Id: I056967f4e83f4c99a4aac1090056dd4f320c03f5
2020-04-08 14:15:02 +01:00
Chris MacNaughton a38f885f0a The Cinder icehouse tests did not deploy Cinder
Additionally, this resolves a configuration issue
in the icehouse bundle by updating cloud:trusty-icehouse
to distro.

Change-Id: I156e0181a969823b681e4309516cc2dac0b96f5f
Closes-Bug: #1870227
2020-04-02 16:02:20 +02:00
Alex Kavanagh 01be476c20 Remove disco support from the charm
And remove old cosmic entry which has no bundle.
Change-Id: Ia62e9f94e0e6588da93d2cb69449c1766dbe4fdc
2020-02-18 18:41:53 +00:00
Corey Bryant e239208298 Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ia6578d6454266099fb0c97001e56e2180be1ce87
2019-10-22 14:10:49 -04:00
Alex Kavanagh 6ee32006e5 Policyd override implementation
This patchset implements policy overrides for cinder.  It uses the
code in charmhelpers.

It also fixes several bugs in the bundles where the actual version of
cinder that was being installed was the distro default rather than the
one that the bundle described.

Change-Id: Ic979dcb96ddb931fadb1fa4a4b36108244ddf306
Closed-Bug: #1741723
2019-10-14 15:11:13 +01:00
Chris MacNaughton b0c758a466 Sync charm-helpers
Change-Id: Iaf76a655e96386608f01d7eba2281ac94d1e85b8
2019-07-16 07:06:03 +00:00
Liam Young 691bb92310 Switch to using zaza for functional tests
Change-Id: I21c472b579e865078eb58d1576f4c3c3ec845903
2019-05-24 06:00:09 +00:00
Frode Nordahl b549dede62
Enable bionic/stein and disco/stein functional tests
Change-Id: I97af4205615532f2a10959ac6c60302dbe6ad518
2019-04-08 13:06:18 +02:00
Chris MacNaughton ec1f933f6b Sync charm-helpers for Stein release
As a part of the Stein release, we need to ensure
that charmhelpers is up to date.

Change-Id: Ice230232c8e2a6c31a1bbd2ed16d3290b59d36e9
2019-04-05 11:52:44 +02:00
Chris MacNaughton eb30d95f3f Add security-checklist action
Change-Id: Iec48205fd98c67b9f1d4ddf68bcbefb68c10102f
2019-03-13 10:32:25 +01:00
Corey Bryant efb1a1e2d9 Update rabbit driver config options
The stein version of python-oslo.messaging (9.0.0+) has removed
the following config options from the [oslo_messaging_rabbit]
section:

rabbit_host, rabbit_port, rabbit_hosts, rabbit_userid,
rabbit_password, rabbit_virtual_host rabbit_max_retries, and
rabbit_durable_queues.

The above change requires a sync from charm-helpers.

Additionally the transport_url directive has been moved to the
[DEFAULT] section.

These have been deprecated since Ocata, therefore this change
will be provided to pre-Stein templates in order to drop
deprecation warnings.

See release notes at:
https://docs.openstack.org/releasenotes/oslo.messaging/index.html

test_300_cinder_config is also removed in this change as amulet
tests no longer need to confirm config file settings.

Change-Id: Ia93be49430e8d95c38ed521d08bbb62f47e13e59
Closes-Bug: #1817672
2019-03-05 15:26:24 -05:00
Zuul 4ca1bbab37 Merge "Add policy to allow owner to force delete volumes" 2019-02-12 12:44:31 +00:00
Chris MacNaughton 26c0dec5f3 Add policy to allow owner to force delete volumes
The default in cinder is to only allow the admin to
force delete a volume; this change allows the
admin_or_owner to force delete a volume.

This was previously authored by Chris MacNaughton in change
I703a21b68186059a63f0d06d88cd2528e821f3d3
And then reverted in change
I77f9351da8516e5af40fea57400101e6dd16b528

This change includes gating on the OpenStack version.

Change-Id: I35599bae8a94724869a36c555ebfc6bf94384bd4
Co-Authored-By: Chris MacNaughton <chris.macnaughton@canonical.com>
Closes-Bug: #1782008
2019-02-08 07:32:20 -08:00
Ryan Beisner 4d985804b1
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: Ia2d5bee9903796b9788fe2e8320b4037c697d608
2019-02-06 14:47:50 -06:00
Ryan Beisner b1bfc915a6 Sync charm-helpers
Change-Id: Id12bd8d56b79e706ecb90fc817837ba723942d25
2018-11-10 09:19:16 -08:00
Ryan Beisner bca33c0f9f Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I4898218e3d8647d174ceff7212de798450790eb8
2018-10-03 11:40:40 -05:00
Zuul 82ac621a00 Merge "py3: Switch to using Python 3 for rocky or later" 2018-09-21 10:19:54 +00:00
Ryan Beisner bdda25cc91 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: Iff25c42c760ff39ab941444cf8cb0aab958ce365
2018-09-19 13:25:14 +02:00
James Page e31d5eb0a4 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.

This change also switches to using the cinder-manage binary in
preference to using the internal API of Cinder to query and manage
services in cinder, avoiding the need to continue to have python-cinder
installed for charm usage.

Change-Id: Ie8f7d2d7e1ef7b3065d6d9ed244e5fd05e2f613b
2018-09-18 12:24:27 +02:00
David Ames c5e835db33 Enable Rocky testing
Change dev-gate-bionic-rocky to a gate.

Change-Id: I138fc9cbea66138147e0fd0e30fc323d52514158
2018-08-27 15:45:01 +00:00
Nicolas Pochet f8bc692b11 Remove `nova-compute:shared-db` relation
The relation between nova-compute and databases is not needed anymore.

Change-Id: I6c4ca52b58de9496e6ab14ee9ff18c17f0b2b325
See: https://review.openstack.org/499823/
2018-08-02 17:50:19 +02:00
Zuul 229e5ffccf Merge "Revert "Add policy.json to allow owner to force delete volumes"" 2018-07-30 16:04:05 +00:00
Chris MacNaughton (icey) 79f9ff5c70 Revert "Add policy.json to allow owner to force delete volumes"
This reverts commit 4ddea990d0.

Change-Id: I77f9351da8516e5af40fea57400101e6dd16b528
2018-07-30 15:19:47 +00:00
Zuul 79f6c78a97 Merge "Add policy.json to allow owner to force delete volumes" 2018-07-27 16:17:50 +00:00
Chris MacNaughton 4ddea990d0 Add policy.json to allow owner to force delete volumes
The default in cinder is to only allow the admin to
force delete a volume; this change allows the
admin_or_owner to force delete a volume.

Change-Id: I703a21b68186059a63f0d06d88cd2528e821f3d3
Closes-Bug: #1782008
2018-07-27 13:18:35 +02:00
Ryan Beisner f00b3c2153 Update functional test definitions
Change-Id: Id7f93b098a856bde65c7af4b9043a8a6228fdb08
2018-07-18 18:35:11 -04:00
Chris MacNaughton cef0c23583 Remove old nova-compute / mysql relation
Change-Id: I4880ed1d6f7dbdcb3db7a2c22ba5294b60c6e1f8
Closes-Bug: #1713807
2018-07-18 10:36:28 +02:00
Chris MacNaughton 14ca6cedc0 Sync charm-helpers to ensure Rocky support
Change-Id: Ib850fcd688c65febe331c7f8210893ed330ffd3f
2018-07-13 15:53:05 +02:00
Ryan Beisner 51e524bcf8 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: Iba67b8711bfddf1dea3ea02c1667224fc5662e3b
2018-07-11 14:03:53 -05:00