Add optional content parameter for checkpoint interface, so that other
checkpoint bank plugin like database bank plugin can be introduced to
Karbor.
Change-Id: I4eaad0b3fe38cb95a668b83acba39cd831bbb7df
Closes-Bug: #1745909
The provider list API layer supports the filter parameter, but
in protection service it was not supported. This patch fixed it.
Change-Id: Ie98a3e8dda45757d98da9cc5b7383d76ecf0f09c
Closes-Bug: #1745058
Currently, providers API's parameters like 'limit' and
'marker' are not really used, but python-karborclient
use them. This patch will add the processing of 'limit'
and 'marker' in providers API.
Change-Id: I6a6206948adc1c417177a1b9c0f54aa2c0b8ef7e
Closes-Bug: #1717827
1. Add configuration option in provider configuration file to enable
or disable the provider.
2. Skip the protectable resources when get the dependent resources
failed.
Change-Id: Ie67fbacbebb887a76e57273c3dd36d1f333b615d
Closes-Bug: #1702907
we should avoid using six.iteritems to achieve iterators.
We can use dict.items instead, as it will return iterators in PY3 as well.
And dict.items/keys will be more readable.
In py2, the performance about list should be negligible
Change-Id: Ie3059edf2925b690191f628b32743bc6520a706d
When I create some checkpoints by "OS Infra Provider" and "Noop",
and I query checkpoints by one provider(such as "OS Infra Provider"),
it return all checkpoints include "OS Infra Provider" and "Noop".
Change-Id: Ia93d3131b2d9df8fea6a5d7a66027ae652d4cfa1
Closes-Bug: #1657394
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
ProviderRegistry used to return None when the provider was not found.
Change this behavior - ProviderRegistry raises ProviderNotFound, and
it is the caller responsibility to handle the exception.
Change-Id: I249875412c7307161f9022190807f8907e8f5f1e