Add 'os-resetState' validation when reset checkpoint state,
This patch will optimize parameter verification.
Change-Id: Id31955dbb44694790bb2192eeb247792c9e295f1
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
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
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I8ec94b4a3e34257031af3eb7607806b66c6b832e
Partial-Implements: blueprint policy-in-code
As mentioned in [1], Port python 2 code about unicode to python 3
in karbor.
[1] https://wiki.openstack.org/wiki/Python3
Change-Id: Ie687b08fc66ac85fe53825c4954a3fc6b5550779
1) When the user call the create checkpoint API, the user need provide
a parameter provider_id, but the provider_id in checkpoint is not
checked with the value in plan.
Now the parameter provider_id of checkpoint is not same as the value
in plan, but the checkpoint also can be created.
2)The property `management_url` of novaclient is deprecated for
SessionClient. Use `endpoint_override` instead.
Change-Id: I2642af71e875500e125a85c9d32b2828f194b775
Closes-Bug: #1657636
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
If the tenants want to create a protection plan,
they need to list providers firstly,
so we need to list providers for tenants.
Change-Id: I3e9013a0e5214d72875256c066196fce412f6336