Getting the messages from Karbor like:
- Plan create/update/delete
- Checkpoint create/update/available
- Restore create
- Scheduled Operations create/delete
- Triggers create/update/delete
This should add and send the desired messages to RabbitMQ with the
start and end identifiers for each message
(e.g. karbor.plan_create.start, karbor.plan_create.end). The
notification code was done in a similar fashion than the
notifications from the Trove project.
Implements: blueprint karbor-event-notifications
Closes-Bug: 1797462
Change-Id: I0d7ffaa0873d192aeb24c17191683d705044644c
When we create a plan with using invalid provider, it return
success if we do not specify parameters. This patch will fix
it.
Closes-Bug: #1829163
Change-Id: I9755949343b73702fd00f5407b5d01b82c4a0963
This patch adds a base jsonschema framework which will be used
by other subsequent patches for adding jsonschema validation
support for Karbor V1 APIs.
This patch adds jsonschema validation for Karbor Plans API.
This patch follows the Cinder-Schema-framework:
https://github.com/openstack/cinder/tree/master/cinder/api/validation
Change-Id: I5a552f33608a924b0a410fdf1b83b7f5c4759aae
Partial-Implements: bp karbor-json-schema-validation
The quota API is intorduced to karbor using manila protect
as a reference.
Change-Id: I630b501445608dfa5c67ce7fdb7afa3a594d4294
Implements: blueprint support-quotas-in-karbor
This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
karbor/policies/, and then added to the list in
karbor/policies/__init__.py.
The sample file about default policy will be generated as yaml using
cmd 'tox -e genpolicy' in this patch.
A new context.can() method has been added for policy enforcement of
registered rules. It has the same parameters as the enforce() method
currently being used.
The patch add default policy in code for plan resource in karbor.
Partial-Implements: blueprint policy-in-code
Change-Id: I88ce31ee7cff9263055cfb51f6b5da5c333c50f2
Karbor dashboard sends empty parameter for unloaded plugins. The Plan
api tries to validate the parameter, but the plugin is not loaded and
thus the plan creation fails.
Change-Id: I262af49e6860703931bbfe4b21e4807b82b4b24d
The protect properties of plan's parameter have not been checked.
The protect property value should be one of the properties in
options_schema of the plugin.
Change-Id: I47cbcae98f9e3c06caa47e9fbe7b1a4f4cbcf372
Closes-Bug: #1686404
Add the extra_info field to the resource database table of
plan API datamodule. User can save the extra_info of resourece
instances to this table.
Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>
blueprint instances-extra-info
Change-Id: I2efa0df5489ce7dc7ef9dff1c187536d8fe27af5
Fuzzy filtering can be supported by the name and description
fields of the plan list API
Change-Id: If4a2bcdb1fea341f3eaf701a24f9f9c47da6b8e6
Closes-Bug: #1644949