Commit Graph

169 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
Felipe Reyes ef99e1eae4 Add pkg-config to build-packages
Closes-Bug: #2016922
Change-Id: Iff0ac6c30052bf8f00b88bb4f5f9b6eb71feeed7
2023-09-13 21:50:25 -03:00
Zuul d08e3b369f Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation" 2023-08-11 19:13:23 +00:00
Alex Kavanagh bb6bb37a4a Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: I8dbac80c0e714c8b639bdd0df1b64a7026894938
2023-08-04 18:47:58 +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
Alex Kavanagh 5a9f6d9bad Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Icadcc8df8006dc286f85e724ecfbe5aab2c2b14a
2022-05-09 15:37:38 +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
Hervé Beraud 0c1b1f1a50 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I38b8a9d40577e97bf7c5e73630fc044c3356c902
2021-12-15 09:45:22 +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
Zuul 8cfe99e4c0 Merge "Fix keystone authentication" 2021-09-06 08:51:43 +00: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
Gustavo Sanchez 310647c2bd
Fixes flacky unit test wih py36
When running TestManilaCharm.test_install() with py36 sometimes
test passes and sometimes throws and error while mocking methods.
Seems to be an async race problem mocking a super method first.

This was solved by avoiding mocking super method first.

Closes-Bug: #1940552
Change-Id: Iac55321599b4866784a0631639a93fc828780647
2021-08-20 11:12: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
Zuul 55f501e680 Merge "Add impish to metadata.yaml" 2021-06-24 12:24:18 +00:00
Aurelien Lourot 91e4dcfe4f Add impish to metadata.yaml
Change-Id: I66ae659bc5a23a17cbf53d27e2310f762c4018bd
2021-06-03 11:16:40 +02:00
Corey Bryant a6bf7d84f8 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I79c54a17503f234ce5989405e0e0cb7f43fa5746
2021-05-13 09:10:06 -04: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
Zuul 2ad334718f Merge "Add new osci.yaml" 2021-03-18 15:15:04 +00:00
Chris MacNaughton e7735e6e9d Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-03-18 07:20:07 +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
Alex Kavanagh 5c2538a26b Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: Icc926631567b6a3fc6c89645e36f8c58572590cf
2021-02-17 12:12:47 +00:00
Alex Kavanagh 1e42ff4c36 Rebuild to use charm-tools pre 2.8 release
Reverting to an earlier version of charm-tools to
resolve some building issues seen with latest 2.8.2
version.

Change-Id: I4ced093e659a77d17b8fca6cb1ebe6cd1c3079b6
2021-02-02 17:09:19 +00:00
David Ames 49ae8467ab Rebuild with udpated charm-tools 2.8.2
Validate the newest version of charm-tools: 2.8.2
https://github.com/juju/charm-tools/pull/598

Change-Id: I56700b05448aadc2799d808a0dbdd9946fbcd4f4
2021-02-01 14:09:08 -08: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 9b0750adaa Rebuild for haproxy address bug 1912505
Ensures that haproxy.cfg is written with the correct
space address for peer backends.

Related-Bug: #1912505
Change-Id: I4189c264fccb8392fb2bdcadb4562d15a338a205
2021-01-25 11:03:16 +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