Commit Graph

4 Commits

Author SHA1 Message Date
James Page 462582e4f3 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
2020-05-04 10:19:09 +01:00
Chris MacNaughton (icey) a39dd3b9da Revert "Refactor create_pool." and "Add request_access_to_group method"
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
2019-02-28 16:18:40 +01:00
Liam Young e4997e5ab8 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
2019-01-08 11:33:03 +00:00
James Page 0e191799fc Add initial requires 2017-07-03 15:17:35 +01:00