45 Commits

Author SHA1 Message Date
Corey Bryant
66ad9918f6 Add zed:quincy to UCA mapping
Change-Id: Idcfa9d755d46e39dc6b2b9b3818c1fce1dce8854
2022-08-16 09:57:11 -04:00
Zuul
c4cdbf9d77 Merge "Modify the keys used for package installation in cinder plugins" 2022-08-10 16:02:15 +00:00
Felipe Reyes
20cfba9021 Add property ConfigurationAdapter.charm_instance
This patch adds a new property to match with the documentation that
claims the ConfigurationAdapter keeps a weak reference to the charm
instance.

Change-Id: I692a2a2b4ba50fc5833fb9781609ea7e9f114ae3
2022-07-21 17:21:58 -04:00
Felipe Reyes
cf182d849d Fix unit tests.
The type `bool` is incorrect, it should be `boolean` instead, also now
the `ops` package does a more strict check of the type of the values
passed via update_config() so this change replaces 'True' with True, and
'False' with False.

Change-Id: I2fcbfb4f3cebd0819ca1d79a6cbec378a9dedc00
2022-07-21 17:11:27 -04:00
Samuel Walladge
35237c71f4 Remove duplicate on_config hook register
CinderStoragePluginCharm should not register self.on_config
as a hook, because the parent class method already will call this
on config changed (OSBaseCharm._on_config).

(also add new tox test targets to keep zuul happy)

Change-Id: I202ad2134e6d56881213a63899e7afda1cc0de00
2022-06-10 08:41:17 +09:30
Zuul
96107db929 Merge "Implement mandatory configuration parameters" 2022-03-31 17:45:15 +00:00
Chris MacNaughton
36be3c3322 Add support for Ceph Pacific and Quincy
Change-Id: Ic0cf5c0abcd7dd12cb3b999ced127bd3a3747e02
2022-03-07 14:47:33 +01:00
Gustavo Sanchez
c6b3544ae3
Fix backend_name and section name mismatch
Change-Id: I16a56250dfea62630bcc096fcda194b81316da48
2022-03-02 10:45:06 -04:00
Luciano Lo Giudice
e3f29ac758 Implement mandatory configuration parameters
This patchset adds a class attribute that specifies which configuration
parameters are mandatory, setting the charm's status to 'blocked'
if any of them aren't present (and informing which ones are missing).

Change-Id: Ifcaea22a31f6f5af5edacd2ba5a3e901e7a37225
2022-02-10 20:06:58 -03:00
Gustavo Sanchez
ad443c2d8e
Fixes typo on cinder config filename
Change-Id: If646b8e9df4adabdf7f782eb4e447ef385a90a4c
2022-01-06 10:33:32 -04:00
Luciano Lo Giudice
afef2f68f3 Modify the keys used for package installation in cinder plugins
This patchset changes the keys used for package installation in
the model config. The keys used are now 'driver-key' and
'driver-source', much like what the reactive cinder classes did.

Change-Id: I8736717d3856afba1bc3f7eb9f2de21643006c25
2021-12-06 19:52:21 -03:00
Luciano Lo Giudice
0cf56a3bb2 Create a base class for cinder plugins
The purpose of this new class is to ease development for existing
and upcoming cinder plugins, for instance, the cookiecutter and
solidfire ones. This class makes development much more in line with
the existing reactive libraries.

Change-Id: I55a849dd11e83e5b2b23efcece6ff8dfa511c96f
2021-12-02 19:50:43 -03:00
Aurelien Lourot
79c3414d77 Report non running services in unit status
Depends on https://github.com/juju/charm-helpers/pull/658

Change-Id: I655251eb582ead491c61c4f2672d1e6d25991ba5
2021-11-25 16:12:58 +01:00
Aurelien Lourot
eb21629e5f Fix config option setting in unit tests
Since https://github.com/canonical/operator/pull/635
harness.update_config()'s behavior has changed and
validates that the config options being set do exist
on the charm.

Change-Id: I2fee2ecb61bf51e7412de74cf1b030114ec3b8dd
2021-11-25 15:28:57 +01:00
Liam Young
2057e90e46 Support charms without pause/resume actions
Change-Id: Idc3435743105af3e4d702e73d59d7b141afd2d26
2021-06-07 12:08:11 +00:00
Aurelien Lourot
da6fd2ed21 Add support for Victoria
Change-Id: Ic0676eadd7516284c4ddc1d306c9872cfcdb4db6
2020-11-10 09:19:50 +01:00
Liam Young
856de78964 Add BaseCephClientCharm class
Add BaseCephClientCharm class for charms that act as a ceph
client to inherit.

Depends-On: Ib40fa3b46cc629d5b3e5b199a70cff22451661ee
Change-Id: Id04426c564b9413d50c5c28a49bce9511142a801
2020-10-27 15:43:55 +00:00
Liam Young
ffbfa581c6 Refactor custom status checks
Refactor custom status checks to allow the charm specific class and
the inherited general charm type classes to specify status checks.

Change-Id: Ib40fa3b46cc629d5b3e5b199a70cff22451661ee
2020-10-27 14:22:50 +00:00
Liam Young
288e712c0a Use '_stored' not 'state'
As per issue 7 *1, switch to variable name '_stored'

*1 https://github.com/openstack-charmers/charm-ceph-iscsi/issues/7

Change-Id: I52513ce2c25b03f2015835b96cccb3766806bceb
2020-09-02 08:11:20 +00:00
Liam Young
ca9ec6c729 Add zuul and gitreview
Change-Id: Ic10e1d020f79ffa87994391caf5e036dcc965529
2020-09-01 13:27:58 +00:00
Alex Kavanagh
ea51b43ec2
Merge pull request #5 from gnuoy/add-setup-tools
Add setup tools
2020-07-31 15:48:03 +01:00
Liam Young
04b6edb480 Fix unit tests 2020-07-31 13:46:38 +00:00
Liam Young
cb2d095aea More setuptool fixes 2020-07-31 10:42:47 +00:00
Liam Young
ee397c9d86 Add setuptools config 2020-07-31 08:13:24 +00:00
Dmitrii Shcherbakov
460b389811
Merge pull request #4 from gnuoy/stop-using-ModelBackend
Stop using ops.model.ModelBackend
2020-06-30 12:33:27 +03:00
Liam Young
80ee46b16e Stop using ops.model.ModelBackend
ops.model.ModelBackend has been marked private *1 so fallback to
using charmhelpers to get the runtime config.

*1 https://github.com/canonical/operator/blob/master/ops/model.py#L952
2020-06-30 08:57:49 +00:00
Dmitrii Shcherbakov
9f86eece9a
Merge pull request #2 from openstack-charmers/lourot/fix-unit-tests
Fix unit tests
2020-06-15 14:51:43 +03:00
Aurelien Lourot
49c6d53926 Fix unit tests 2020-06-15 13:41:52 +02:00
Liam Young
5195b2b8cb Remove testing workaround 2020-05-11 07:51:05 +00:00
Liam Young
18b8f1fcfe Make it easier to override install and promote custome checks 2020-05-01 07:20:02 +00:00
Dmitrii Shcherbakov
2ef02f14d6
Merge pull request #1 from gnuoy/add-unit-tests
Add first set of unit tests
2020-04-24 19:52:17 +03:00
Liam Young
eb1be7070e Tidy up following feedback from dshcherb 2020-04-24 14:25:49 +00:00
Liam Young
6760bd9d7f Add first set of unit tests 2020-04-23 12:04:38 +00:00
Liam Young
58c9f3093e Improve status message 2020-04-14 09:03:05 +00:00
Liam Young
3e0e41f403 Add support for custom status checks 2020-04-14 08:59:31 +00:00
Liam Young
bef6f2161b Fix pause status bug 2020-03-31 12:11:37 +00:00
Liam Young
f203311d46 Use aliases and include a module name when obtaining a logger 2020-03-25 09:09:02 +00:00
Liam Young
e4cfb975aa Add series upgrade support 2020-03-17 16:54:52 +00:00
Liam Young
0d650e2896 Fix accessing options in templates 2020-03-16 15:32:33 +00:00
Liam Young
2bb403f7ad Class selector and pep check 2020-03-16 11:57:55 +00:00
Liam Young
764fcf1b22 Updates for release class selection 2020-03-16 10:05:24 +00:00
Liam Young
3c1ba3c3f2 Add adapters 2020-03-12 11:12:16 +00:00
Liam Young
e8903fbe58 Update status after install 2020-02-29 14:59:49 +00:00
Liam Young
ac8f8762e0 Add required relations 2020-02-29 14:47:48 +00:00
Liam Young
518b4fbdc4 Initial commit 2020-02-29 12:31:57 +00:00