Re-organise interface to allow multiple interfaces to share
common code. The idea being to add ceph-mds to this code base.
Change-Id: Ie53ef7e5fc7a461dca8e53d9f91b332399a70076
Minor refactor to ensure that the get_current_request method
actually exists for the requires part of this interface.
Misc drive by fixes for CI scaffolding as well.
Change-Id: I26e9585df2a84c336d9f01115c6208d7ef994b3c
Added create_replicated_pool to match the charm-helpers
deprecation of create_pool. I didn't make a
create_erasure_pool.
Piped create_pool through create_replicated_pool to
mirror charm-helpers.
create_replicated_pool can now be called multiple
times to create multiple pools
Related-Bug: #1824035
Change-Id: Iaa421ff152dc40bf446200cabc19d99f5b04bbe9
This reverts commit e4997e5ab8 and
288bab66dd.
This is necessary as this change does not verify that there is not an
existing request to do this in the queue, and will end up creating
infinite create_pool requests on the ceph-mon
Change-Id: I76305181ddba83eca414d9e08bbd58408d2b01ce
Refactor create_pool to allow future methods to easily access
the existing request. This change also includes two changes in
behaviour:
* If an existing request is invalid due to invalid json or missing
ops attribute then the exception is now propagated rather than
logged and suppressed. If an existing request is corrupt then
fail early otherwise bad things will follow.
* The existing implementation only allows for a single create_pool
request. Any additional requests would overwrite previous ones.
This change allows for multiple pools to be requested in a
single broker request.
Change-Id: I61998c2ce70325cb904add8c51cbc9c34b3c9564
When a charm requests a pool in cannot specify the weight atm as
the create_pool function forces it to None.
Change-Id: I40a85cf5c0e943aef0b4ec507d8c9b3a24ba09a8
Add parsing of munged data presented by the ceph-proxy
charm in the ceph-public-address relation key; this
includes dropping the addition of the port to the values
added to the list of monitor hosts - this is not required
and the ceph-proxy may provide that data as part of the
ceph-public-address.
This change brings this interface inline with existing
ceph context support in the openstack charm helpers.
Change-Id: Id4d7b5df711c378763d5adb54269a3ede344dd45