karbor/karbor
Yuval Brik a80b9cc283 Stabilize Protection Plugin API
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
2016-12-19 15:09:55 +02:00
..
api Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
cmd cross platform support 2016-11-11 03:52:20 +08:00
common Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
db Support fuzzy filtering for the list API of Plan 2016-11-28 12:51:05 +08:00
objects Remove cfg import unused 2016-11-28 14:46:47 +07:00
services Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
tests Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
wsgi Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
__init__.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
context.py Restore: initialize heat client using current login tenant by default 2016-11-09 19:14:57 +08:00
exception.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
i18n.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
loadables.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
manager.py Fix typos in manager.py & test_common.py 2016-09-21 09:18:21 +00:00
policy.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
resource.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
rpc.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
service.py test: make enforce_type=True in CONF.set_override 2016-09-05 20:29:29 +08:00
utils.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
version.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00