Commit Graph

110 Commits

Author SHA1 Message Date
Alex Kavanagh 994906e324 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: Ic2ed85c2c4465179cf3a7c7e7d78c16a699147a1
2024-02-24 19:54:12 +00:00
Jorge Merlino 2cfb486f41 Add support to configure scheduler_default_filters
Add new config option: `scheduler-default-filters`.
This is unset by default, so manila retains the default value for
scheduler_default_filters.

Closes-Bug: #1998200
Change-Id: I82eddf8f54d954f6d930265ec8612398f4cc90a0
2024-01-30 16:15:07 +00:00
Alex Kavanagh d0ad23950f Fix local/remote assumptions in manila charm
When the remote plugin was developed it made the assumption that the
`enabled_share_backends` included the remote backends. This assumption
is wrong, and it should only contain the locally defined drivers; i.e.
ones that have a [driver] section in the manila.conf file. The cephfsnfs
driver doesn't have a local configuration as the share-server is runs on
the manila-ganesha unit and so shouldn't be local.

This patch splits the config in local/remote and then uses the local and
remote config in the correct places.

Closes-Bug: #2012457
Change-Id: I436452208aaeaf08d1655da4fccbd7a89549b404
2023-09-29 09:52:46 +01:00
Corey Bryant 16923c49ce 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/edge

Change-Id: I68c138a89e60d945e7642b2989ef383af599f5ad
2023-08-03 13:58:54 -04:00
Neil Campbell 7e2a03b11e Fix standard_extenstions typo in manila.conf templates
Closes-Bug: #2011786

Change-Id: I05de34774892419a8bae1e1ebf4c018222495337
2023-05-02 13:40:20 +01:00
Corey Bryant 7bd535068d 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: I57df3d1f01049a9b4b12c970cf83abffb7b4ed64
2023-03-29 21:01:49 +00:00
Corey Bryant 108f38724f 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: Ic8c57d74f26b788a923d08eb3b88882dfc142bf7
2023-03-08 15:42:42 +00:00
Chris MacNaughton eb6437174a Ensure that local and remote plugins can be used concurrently
To ensure that it works, this change also updates the functional
test bundles to include manila-netapp and manila-netapp-dhss in
the gate.

This change also picks up a drive-by change to fix a tox
dependency change.

Closes-Bug: #1996962
Change-Id: Ic5a2b2fcced129220b70a16539b41813b0feb3be
2023-02-24 09:50:26 -05:00
Chris MacNaughton 78fa85e7f0 Fix charm for tox4 compatibility
Related-Bug: #2002788
Change-Id: I90f0631363ee72a8bbe07c262875dcbd987a062b
2023-01-20 12:15:51 -05:00
Corey Bryant e9c09f4313 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

Depends-On: https://review.opendev.org/c/openstack/charm-manila/+/858765
Change-Id: I4cae0a313230a8617beac36a2dbfe0c019c5e0de
2022-10-04 11:51:23 +00:00
Corey Bryant 10524b6ed3 Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

This patch also updates manila.py to align with
charm-interface-keystone commit
9ad5cade97e14b672ac859d34040353c3a40c7aa.

This patch also drops the impish bundle.

Change-Id: Ib3aea3fb26aa3e6282989b2758bdf4913ef58c28
2022-10-04 00:20:22 +00:00
fdesi f2ab722fe8 Add config-flags option
As per the bug report, add config-flag paramiter to config.yaml to add desired
options to the DEFAULT section of manila.conf

Closes-Bug: #1952320
Change-Id: If1a314119c59212f4fb885ef9af411d1ab05b1e2
2022-07-15 15:10:59 +00:00
Felipe Reyes 8517f58019 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

Change-Id: Icced48103310c873574b47d2900066bd05c5a2dd
2022-05-05 18:21:29 -04:00
Corey Bryant 7ad7f5254f Remove policy.json for Wallaby and above
Adjust the previous patch to remove policy.json starting in
Wallaby rather than starting in Xena.

Change-Id: I14bb55927fa7ce0148c3a4d9477c2a15021a41a0
2022-04-04 13:50:24 +00:00
Corey Bryant bc86824524 Remove policy.json file in favor of policy in code
This is a work-around for a package bug. The policy.json file
was deprecated in the wallaby release in favor of using a
policy.yaml file to override the default policy in code.
Therefore the policy.json file is not needed.

Closes-Bug: #1952763
Change-Id: I4b424869a23f28e8eb66ef6bfc42603b863afc40
2022-03-15 15:42:26 +00:00
Alex Kavanagh 9f3caabb33 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: I7e48c6515f48e77a4045bc5f899e8ca963e1671a
2022-02-01 20:23:10 +00:00
Alex Kavanagh 51e8193d01 Migrate charm to charmhub latest/edge track
Change-Id: If50bf1a3448cf94bae69d8492dd3558306aafe0d
2022-01-27 20:40:57 +00:00
Corey Bryant 9fe1f89618 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: Iaea730e035c4671d83fa65c7d74a2b31f59680cd
2021-11-24 13:42:58 -05:00
Alex Kavanagh 745fa81330 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0
- updates from for templates' bug links
- gate on focal-ussuri instead of bionic-stein

Change-Id: Iaa0345ee9b6e0a16c9b6d07b54bea1eeb3a4d664
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-07 11:55:15 +02:00
Zuul b75e6ed3ce Merge "Adds NRPE checks for services" 2021-09-09 13:32:53 +00:00
Gustavo Sanchez 88def9dcea
Adds NRPE checks for services
Adds the nrpe-external-master layer and checks for services managed by
this charm.

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

Closes-Bug: #1925977
Change-Id: I2536e0b95d9b7568e8c20b6f6eedc2c92eca0603
2021-09-09 02:03:05 -04:00
Gustavo Sanchez 2511bce6b7
Fix keystone authentication
Changes project_domain_id and user_domain_id to *_name in manila-plugin endpoint

Closes-Bug: #1911424
Change-Id: Ia289d4899e3e802197853a61e8e36b7ad87d0fd8
2021-08-30 10:56:55 -04:00
Aurelien Lourot e7ed915d2b Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Ie3883de81d5856742abcba04194fa88a6b0372fb
2021-07-22 14:56:19 +02:00
Liam Young 6c749e8be9 Remove duplicate backend from manilla.conf
Change-Id: Ied3af7ada58271f9a2d042fe5725807752b9553a
Closes-Bug: #1929939
2021-06-29 11:59:29 +00:00
Aurelien Lourot 91e4dcfe4f Add impish to metadata.yaml
Change-Id: I66ae659bc5a23a17cbf53d27e2310f762c4018bd
2021-06-03 11:16:40 +02:00
Alex Kavanagh 26311f3674 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: Ia3cc21f2c3165fe013cf311ba15348245cb1a6af
2021-05-03 16:06:52 +01:00
Alex Kavanagh f5dff58d92 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I2a20459c7aee21bc1c2df77b1868b65029329982
2021-04-03 20:27:45 +01:00
Ionut Balutoiu 37819cd9f3 Fix multi-backend configuration
At the moment, the enabled backends' names list is written in the config file
as a space-separated list.

When using multi-backend, the current Manila charm crashes because the config
`enabled_share_backends` needs to a comma-separated list of backend names instead:
https://docs.openstack.org/manila/victoria/admin/shared-file-systems-multi-backend.html

Change-Id: I881d12ad4cea044e232b9f997a4dfc4b2f38e9c8
2021-03-17 08:38:02 +00:00
Alex Kavanagh 405519c9f4 Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: I623bdfe6496404b4c10d51d398fdd6564078115d
2021-03-02 20:58:04 +00:00
Zuul 6fdca439df Merge "Prune gate tests" 2021-02-23 09:59:52 +00:00
Billy Olsen 5de4b9f551 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ife7c622d58a9ddfbd930ed1bdcfb0554f59e660d
2021-02-19 17:02:28 -07:00
Billy Olsen 9f22f1d0dd Ensure that endpoints are updated when tls config changes
When tls settings change, the endpoints need to be updated on the
identity-service relation in order for keystone to update the service
catalog with the new endpoints. This change follows the behavior of
other reactive charms and performs this update within the handlers
code.

Func-Test-Pr: https://github.com/openstack-charmers/zaza/pull/424
Change-Id: I201fc382f044111e6f28a13c64a55e2f79c1d6aa
Closes-Bug: #1901589
2021-02-19 15:33:59 +01:00
Aurelien Lourot f51a259d5c Add Groovy to the test gate
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/481
Change-Id: I20326cba665f57256c261ddfaac83be7e239fb46
2021-01-29 15:38:18 +00:00
Alex Kavanagh 0a9b3b9cf9 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: I21ce3edf5412e22970c0f34d6c28d179352add19
2021-01-15 16:31:14 +00:00
Aurelien Lourot 32352c5c5a Remove Disco and Eoan bits
Change-Id: I044f3f03664dba27b7b8252677d0d951d91dc138
2021-01-12 13:57:44 +01:00
Aurelien Lourot 6bae869743 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: I05b5547d1c548c01c05bcaa794795c67960cd44e
2020-12-11 13:57:20 +01:00
Aurelien Lourot 00711ff675 Add focal-victoria to the test gate
Change-Id: I56ad05c6c2a98588670351ffdcf066eef3dfdb17
2020-08-28 14:26:40 +02:00
Alex Kavanagh 6b294e6037 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: Ibc2632c8371eb82b43278d8477fc29c8850211ce
2020-07-27 20:54:20 +01:00
Corey Bryant 60376802ca Add ussuri and victoria package versions
Change-Id: I1885afdf762a71f23ce8301f2ee8ff0b799c003e
2020-07-13 19:09:49 +00:00
Zuul 9f8d07e7eb Merge "Add Victoria charm bundles" 2020-07-13 17:57:41 +00:00
Zuul 339c837b7f Merge "Stop to use the __future__ module." 2020-07-13 05:45:59 +00:00
Aurelien Lourot 94684e5996 Add Victoria charm bundles
Change-Id: Ic3314606d1a64b03983dee214b06233500c89b6e
2020-07-10 16:45:20 +02:00
Alex Kavanagh f7140f9c64 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/355
Change-Id: Ia2fbdac07df0a430741be69d02942c899bb89e45
2020-07-09 11:23:07 +02:00
Hervé Beraud 9015785f01 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ia065d209d91046d67081ec528b275db9d0ece592
2020-06-02 19:55:36 +02:00
Zuul 1b575378b6 Merge "Move WSGI configuration template" 2020-05-20 13:53:57 +00:00
Frode Nordahl b1a20a21f2
Move WSGI configuration template
The charm currently provides the ``manila-api.conf`` in the
pike templates folder, but attempts to use it for all
supported releases.

Move the template to the earliest supported release to avoid
hook errors.

Change-Id: I16135e6535f8cabe9caa6693a6ee8a228dcb4b65
Closes-Bug: #1879337
2020-05-19 11:04:42 +02:00
Alex Kavanagh e89f3ba763 Enable focal and ussuri as part of the gate tests
The func-test-pr is to add retries to the instance pinging as it's
too optimistic to expect it on the first one every time.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/279
Change-Id: I92f7b921718cd30290856b878f7d3e77fe4d6425
2020-05-18 07:32:56 +01:00
Chris MacNaughton 4f5c6a9712 Enable HA with Manila
An indirect requirement of enabling HA with Manila
is migrating from directly using WSGI to using
mod-wsgi with Apache.

Change-Id: I1f501283db3db1338d47a89a7688cf5035d08a7a
Closes-Bug: #1867358
2020-04-01 15:20:05 +02:00
David Ames c1c2278530 Update peers with API addresses
Use default_update_peers which will publish admin, internal and public
addresses to peers.

Change-Id: Ic9b25431c1f5574bad855731d0210a9dbedacfc7
Closes-Bug: #1858132
2020-03-27 14:57:54 -07:00
Chris MacNaughton b7b55b3a34 Migrate charm-manila to use Zaza
Additionally, this change corrects a template to ensure
that Manila can run on slightly older releases

Change-Id: Ie7eb9613f6b264ce4a681b89f68d1034a1c61f11
Closes-Bug: #1828424
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/182
2020-02-26 09:16:16 +01:00