Now when doing checkpoint copy failed, checkpoint
will be wait_copying status forever, and so we can
not do the restore anymore. So we should add an API
to support checkpoint status reset if we deeply knows
that the checkpoint is ok. This patch added API
support for doing checkpoint state reset.
Implements: bp checkpoint-status-reset
Change-Id: Iabaa98c9900fba554be2ad0833d438901e01147a
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
The quota data modules are intorduced to karbor using manila protect
as a reference.
Change-Id: I0db22031b2dc7b574d7779a1fa61d49d795f023e
Implements: blueprint support-quotas-in-karbor
Add VerificationsController to Karbor API. The verify action
of the volume backup plugin is introduced in this patch.
The verify aciton of other plugins will be introduced later.
Implements: blueprint support-verify-the-checkpoint-api
Change-Id: I2fb36fe836b23519aaf0a5219b4404f819f0dc36
In [0], some exceptions were removed, but this was sent before the
network protection plugin was merged. As a result, the network
protection plugin is using the old, removed exception.
Use the correct exceptions.
[0] https://review.openstack.org/467960/
Change-Id: I9a4e02fead2b7948b51eeb2d7ca305f3f0b24ccd
This API is a new one. After this API is merged to karborclient.
I will submit another patch about fullstack of it.
Change-Id: Idf67d5fdc5c2c4bb960212dae4c18294109a6fbf
blueprint: operation-log-api
There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 204, 300, 400, 401, 403, 404, 405, 409, 413,
415, 500, 501, 503 in karbor source code are replaced with symbolic
constants from six.moves.http_client thus improves code readability.
Closes-Bug: #1677241
Change-Id: Ic3a410b3fb375b0283906a4a9a3f2b572b219d2a
Protection plugin now needs to implement methods for each operation
(protect, delete, restore). Each protection plugin is created in the
context of the flow, while each operation is created in the context of
the resource.
A protection plugin is responsible for returning an Operation class for
each operation. Such Operation class defines the behavior of the
protection plugin by implementing these optional hooks:
- on_prepare_begin hook is invoked before any hook of this resource and
dependent resources has begun
- on_prepare_finish hook is invoked after any prepare hooks of dependent
resources are complete.
- on_main hook is invoked after the resource prepare hooks are complete
- on_complete hook is invoked once the resource's main hook is
complete, and the dependent resources' on_complete hooks are complete
HeatTemplate is now created and supplied from a task instead of being
created and passed to resource tasks before the restore operation began.
Change-Id: I847eec6990b2d24a66a12542d242fbfb682272fe
Co-Authored-By: Saggi Mizrahi <saggi.mizrahi@huawei.com>
Implements: blueprint protection-plugin-is-design
Also include the definition of table and the operation interface.
Partial Implements: blueprint checkpoint-scheduled-clean
Change-Id: Ia191d4a45cf12de3197e01f8e8e36d1117870bba
suspend interface will pause the operation and it will not be triggered;
resume interface will resume the operation to be triggered.
Change-Id: I2d3fb84d53d5bad783bc4b1236091b7fca6727d8
Closes-Bug: #1606467