52 Commits

Author SHA1 Message Date
Corey Bryant
3ffa87d996 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: I94720ca160e4c220e9f0ab777e59ad150e5b4ac6
2022-08-31 19:53:59 +01:00
Zuul
194e8312f0 Merge "Updates to enable jammy and finalise charmcraft builds" 2022-04-12 12:28:13 +00:00
Alex Kavanagh
2616e9fcdb 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: Ib55bfdbdb00b327c3907255a6cf5a5ca1a386ffa
2022-04-11 11:03:37 -07:00
Liam Young
1705f540ae Only send netapp_pool_name_search_pattern when set
netapp_pool_name_search_pattern is optional and if it is unset
then the option should not be rendered. So do not send this
option to the principle if it is unset.

Change-Id: I92a5da7cab4c212cae0f48008e852d82a7b4ce89
2022-03-29 20:32:54 +00:00
Corey Bryant
cc44a9c785 Use the correct names for the overlay variables
The overlay was pointing to incorrectly named variables in the
zosci-config repo.

Related-Bug: #1948507
Closes-Bug: #1948475
Change-Id: I5c8d160eb5c23fd5e64b7c88529e4cdec22d980e
Depends-On: https://review.opendev.org/c/openstack/charm-cinder-netapp/+/826656
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/658
2022-03-15 22:09:25 -03:00
Alex Kavanagh
944f24b239 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: I976d4e043161d3ecdb6e7bc32cc3685f46efcaa6
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-03 09:24:58 -05:00
Aurelien Lourot
f885450724 Add CI boilerplate
Change-Id: Id8cc08a0951f7347250a2aaa703438e3adfb5e95
2021-10-21 17:23:13 -03:00
Luciano Lo Giudice
6dd0c1313e
Merge pull request #7 from rodrigogansobarbieri/netapp_config_pool_fix
Remove netapp-storage-pools config over netapp-pool-name-search-pattern
2021-10-06 20:25:46 -03:00
Rodrigo Barbieri
4b51db7bf5 Remove netapp-storage-pools config over netapp-pool-name-search-pattern
- The config option has been deprecated long time ago [0][1]
- netapp-pool-name-search-pattern is shared by ONTAP and E-series
- E-series always uses iSCSI protocol so the config
  netapp-pool-name-search-pattern should not be tied to the
  netapp-storage-protocol config

[0] ab0313e356/cinder/volume/drivers/netapp/options.py (L165)
[1] ab0313e356/cinder/volume/drivers/netapp/eseries/library.py (L1692)
2021-10-05 16:16:10 -03:00
Luciano Lo Giudice
214654971e
Merge pull request #6 from rodrigogansobarbieri/netapp_config_fix
Remove cluster config option and comments, fix pep8 issues
2021-10-01 15:42:12 -03:00
Rodrigo Barbieri
c649b02958 Remove cluster config option and comments, fix pep8 issues
Upon further discussion with the NetApp driver team and in
light of [0] merging, the cluster-cinder-volume config has
become non-functional for the moment as the driver does not
support ACTIVE-ACTIVE [1] and the cinder code will not allow
the driver to start in a clustered mode without supporting
ACTIVE-ACTIVE [2].

[0] https://review.opendev.org/811472
[1] 93fb8fbe16/cinder/volume/driver.py (L391)
[2] 93fb8fbe16/cinder/volume/manager.py (L313)
2021-10-01 10:50:04 -03:00
Billy Olsen
8f8fd25f5f
Merge pull request #5 from lmlg/update-readme
Remove references to 'actions' in the README file
2021-09-30 15:17:53 -07:00
Luciano Lo Giudice
c89b1cf0bc Remove references to 'actions' in the README file 2021-09-30 15:23:00 -03:00
Luciano Lo Giudice
0483c82f75
Merge pull request #4 from rodrigogansobarbieri/netapp_config
Add extra config options and allow to configure clustering
2021-09-30 14:20:59 -03:00
Rodrigo Barbieri
b481b858ce Add extra config options and allow to configure clustering
Added netapp driver 2 config options:
- netapp-pool-name-search-pattern
- netapp-lun-space-reservation

Added "cluster-cinder-volume" config option to control
clustering of cinder-volumes for this backend.

NOTE: existing clustered deployments will be affected
on upgrade as the default value of 'cluster-cinder-volume"
is now False.
2021-09-24 16:15:43 -03:00
Aurelien Lourot
dfe0795429
Merge pull request #2 from lmlg/netapp-curated
Curate charm
2021-09-24 16:56:31 +02:00
Luciano Lo Giudice
e3ffd83bec Add missing 'focal-xena' bundle in tests.yaml 2021-09-24 11:53:10 -03:00
Billy Olsen
fa6fce1940
Merge pull request #3 from lmlg/delete-tox
Remove the .tox directory
2021-09-23 13:32:44 -07:00
Luciano Lo Giudice
b3abbe159a Remove the .tox directory 2021-09-23 16:12:42 -03:00
Luciano Lo Giudice
5a486290ea Add the focal-wallaby bundle and update the tests.yaml file 2021-09-23 13:20:44 -03:00
Luciano Lo Giudice
77d93bb338 Add bundles for focal-xena and impish-xena 2021-09-23 12:20:15 -03:00
Luciano Lo Giudice
f9174a205b Update test bundles 2021-09-23 11:52:05 -03:00
Luciano Lo Giudice
d1719223c5 Add a symlink to src/README file in top directory 2021-09-23 11:47:22 -03:00
Luciano Lo Giudice
f770c8311b Use backquotes instead of double quotes in the README file 2021-09-23 11:47:06 -03:00
Luciano Lo Giudice
501597a803 Update the README files 2021-09-22 15:33:35 -03:00
Luciano Lo Giudice
ae6863c2c2 Remove the .zuul file 2021-09-22 15:18:40 -03:00
Luciano Lo Giudice
ad99e7cf0f Streamline the layer.yaml file
Base it off the cinder-purestorage one.
2021-09-21 16:58:35 -03:00
Luciano Lo Giudice
f3237cfd1a Fix test class path 2021-09-21 16:48:20 -03:00
Luciano Lo Giudice
36b666bb88 Copy over files from release-tools
Instead of doing piecemeal modifications to the old files of this
charm, use the readily available files from release-tools.
2021-09-21 13:53:10 -03:00
Luciano Lo Giudice
5e16c9568c Remove the .zuul and osci files
This is needed in order for the opendev/project-config pipeline
to pass for this branch.
2021-09-20 11:36:55 -03:00
Luciano Lo Giudice
7c384dc3d3 Add the .zuul and osci YAML files needed for CI 2021-09-15 15:39:24 -03:00
Luciano Lo Giudice
18f98fa9ab Use the expected name for the overlay file
Instead of using a non-standard name and have the user specify
the overlay by hand, make it so that 'tox -e func' can pick it
up by virtue of using a specific name.
2021-09-15 14:31:58 -03:00
Luciano Lo Giudice
e202a4f507 Standardize functional tests bundles
Make the bundles more in line with what's already being used in
the cinder charm. Also, add a few variables that don't belong in
the overlay back in the YAML files.
2021-09-14 17:37:57 -03:00
Luciano Lo Giudice
aa2850bc54 Update the tests.yaml file with the new functional tests bundles 2021-09-13 13:59:51 -03:00
Luciano Lo Giudice
3a3a3f9f2a Add the bundles and overlay for the functional tests
This charm requires an overlay to properly set the access
and credentials to connect to a NetApp instance. Additionally,
add the functional bundles following the blueprint set by
the cinder charm.
2021-09-10 23:56:50 -03:00
Luciano Lo Giudice
99c9478131 Update unit tests 2021-09-10 23:48:00 -03:00
Ubuntu
7541c10cb4 Modify YAML test files
The changes in the layer file is needed so that tests are included
in the build directory, whereas the modifications for the bundle
file set the proper variables to connect to NetApp.
2021-09-09 21:46:14 +00:00
Luciano Lo Giudice
7cfcd26c24 Add copyright and metadata files 2021-09-07 16:29:00 -03:00
Luciano Lo Giudice
b72fa0904c Add .gitignore file 2021-09-07 16:28:51 -03:00
Luciano Lo Giudice
67fe4e93da Write unit tests
These set of tests will check for various configuration settings,
since the charm is mostly configuration-only.
2021-09-07 16:28:18 -03:00
Luciano Lo Giudice
8541bd7078 Make the implementation file PEP8 compliant 2021-09-07 16:28:03 -03:00
Luciano Lo Giudice
32a1eefa7f Update tox.ini file
Add the 'build' rule and also update the needed dependencies
for tests to properly run.
2021-09-07 16:27:26 -03:00
Luciano Lo Giudice
d9427bffe1 Update dependencies
Many required libraries defined in test-requirements.txt,
requirements.txt and wheelhouse were unneeded and/or used
deprecated versions.
2021-09-07 16:26:31 -03:00
Billy Olsen
f384b817f3
Merge pull request #1 from narindergupta/master
Merge the change from Narinder Repo which is working onsite.
2020-12-17 15:03:02 -07:00
narindergupta
f0b186a304 added the certs and as per latest test 2020-12-11 00:38:51 -06:00
narindergupta
1de90260be added the transport type and also include certificates layer 2020-12-01 14:44:24 -06:00
narindergupta
81c6f86293 fixes the deployment issue on ussuri 2020-11-23 17:33:20 -06:00
narindergupta
a63df4ddae adding nfs as per latest guide. Adding support for focal as well 2020-11-08 23:27:12 -06:00
narindergupta
e6275038bf rename netapp.svg to icon.svg 2020-09-26 07:34:07 -05:00
narindergupta
eb15f68857 added latest requirements file 2020-09-26 07:17:33 -05:00