'cls' should be used in classmethd, instead of 'self'.
This patch corrects this in the following places:
- karbor/services/protection/checkpoint.py
- karbor/services/protection/protection_plugins/network/neutron_protection_plugin.py
Change-Id: I70c5ae7d3ea79ef5868a222509e583d510d8607c
When listing checkpoints by plan or by date with marker,
the result is not correct. It is because that the marker
that generated in the process is not right, this patch
will fix it.
Closes-Bug: #1803409
Change-Id: I3d6c1a93e6408de1ca95552531d9ff2d2395afa2
Now when listing checkpoints by plan and doing filter
by start_date, it will fail with ValueError. It is
because the process of datetime is not right when specify
start_date and plan_id at the same time. This patch will
fix it.
Closes-Bug: #1803035
Change-Id: Ifa2c0e03a0b83d0e5a59e53425cec5be663e13fb
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
Object store interface has no difference between create and update.
Remove create_object from any Bank or BankSection. update_object can be
used instead in order to create and/or update objects.
Change-Id: I70bf5b7b4ffcc5ac43281d1be7f8ff10e5451b39
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
Checkpoint model had the 'Created_at' field, but it cannot
be shown in the CLI and UI, this patch is to add this field
to the API.
Change-Id: I332ae814848f0d5ee7ae9814df6f878ca461cff0
Closes-Bug: #1578563