* Update charm-interface-ceph-client from branch 'master'
to d9f3b53ca0cf30e47347a68beab59da5c03ce4c7
- implement reactive.Endpoint.manage_flags to clear flags on departed hook
Change-Id: Ie2e6d8ec460311fa4e63335f322aaae07dca5842
* Update charm-interface-ceph-client from branch 'master'
to 3ca251fb01a7cd51d2a0ee2b9b66647c8ffe891f
- Send additional info to support CMR
Send application name and local unit name when talking to ceph.
This ensures that the response from ceph can be spotted by the
unit making the request.
This is already being done in the classic charms *1
*1 https://review.opendev.org/q/topic:%22bug%252F1780712%22+(status:open%20OR%20status:merged)
Change-Id: I0eb96ab8b1048bf209ffb011dd585af956ab779a
Closes-Bug: #1926667
* Update charm-interface-ceph-client from branch 'master'
to 72245e1d002fb9c65c9574d65b5952275b3411fb
- Switch from testr to stestr for unit tests
Change-Id: I2415dbae9c2a2ac5951b9e9176a514a1d1330ab0
* Update charm-interface-ceph-client from branch 'master'
- Allow passing keyword arguments to create_*_pool
The CephBrokerRq class will be used to validate the arguments
passed so that the caller will get immediate feedback if any
unknown arguments or invalid values are used.
Change-Id: Ideb142ead729977dedd2c00435e98846fc842da3
* Update charm-interface-ceph-client from branch 'master'
- Support MDS clients requesting addional pools
Allow MDS clients to specify additional pools to be added to the
FS being created.
Also drive-by fixes to calls to self.send_request_if_needed
Change-Id: Ib19e545fc676fa9e986f3fddcfb92cf99e778a3f
* Update charm-interface-ceph-client from branch 'master'
- Use properties correctly
Its not possible to call a method which is annotated as a property
so which to just using the property directly.
Its also difficult to patch a property during unit testing so
provide private methods for unit testing to allow properties
to be specified during testing.
Change-Id: Id9db6578e00fa412e4cf58e75bd89970b6e8e682
* Update charm-interface-ceph-client from branch 'master'
- Markup properties
Ensure that various data items are available via the relation
adapters in charms.openstack by marking functions as properties.
This equates to the auto_accessors lists in the ceph-client and
ceph-mds RelationBase endpoint implementations.
Change-Id: I240552158475635d6996c622bf17eb6dd73b5d81
* Update charm-interface-ceph-client from branch 'master'
- Add ceph-mds relation
This relation is very similar to the ceph-client relation so add
it to this repo so they can share code. This will retire the
seperate repo *1 and also require an update to the central
index of interfaces to point at the new location.
*1 https://github.com/openstack/charm-interface-ceph-mds
*2 https://juju.github.io/layer-index/
Change-Id: I9f438bb678da1b69d8161390aad2cf58907bc1b5
* Update charm-interface-ceph-client from branch 'master'
- Switch requires from RelationBase to Endpoint
Switch requires relation from the old api
charms.reactive.relations.RelationBase to the replacement
charms.reactive.endpoints.Endpoint.
Change-Id: I6fe7cab654d5768f521ffa4218ae5c3974ef4ae8
* Update charm-interface-ceph-client from branch 'master'
- Re-organise interface
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
* Update charm-interface-ceph-client from branch 'master'
- Merge "Add support for erasure coded pools"
- Add support for erasure coded pools
Add helpers to request erasure coding profile and pool creation.
Change-Id: I4512b9957722332fe0a311d09fedffb4d4e47fbd
* Update charm-interface-ceph-client from branch 'master'
- Re-enable unit tests
Re-enable and fix unit tests. Unit test check of set_local removed
as the json dump is not ordering dict keys and the set_local
calls will be removed by an imminent patch.
Change-Id: Id804e0e518c0013043db6f4b7cd44ccaa5499749
* Update charm-interface-ceph-client from branch 'master'
- 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.
Change-Id: I887adac6caebb327871d3709ed59f25e401b5600
* Update charm-interface-ceph-client from branch 'master'
- requires: Provide get_current_request method
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
* Update charm-interface-ceph-client from branch 'master'
- Merge "Adding support for multiple ceph pool creation"
- Adding support for multiple ceph pool creation
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
* Update charm-interface-ceph-client from branch 'master'
- Avoid pollution and false positives with tox.ini
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.
Change-Id: I72582997b86641c773686e4e04cedf7d1d11d9e1
- OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.htmlhttp://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
* Update charm-interface-ceph-client from branch 'master'
- Merge "Revert "Refactor create_pool." and "Add request_access_to_group method""
- Revert "Refactor create_pool." and "Add request_access_to_group method"
This reverts commit e4997e5ab8467f28902d4f8da3e45654033aa83c and
288bab66dd45a722622aa9d36d9cb02705eda546.
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
* Update charm-interface-ceph-client from branch 'master'
- update interface.yaml with ignores and maintainer
The ignores removes all files that are not relevant to
the interface from the built charm, and thus, the
runtime imports of the interface bits
Change-Id: I4d5c58fff7d05dc10eea54567fbabb579a9ddd71
* Update charm-interface-ceph-client from branch 'master'
- Refactor create_pool.
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