Commit Graph

28 Commits

Author SHA1 Message Date
Kendall Nelson 353f75eca0 Retire Karbor
As announced on the openstack-discuss ML[1], Karbor is retiring
this cycle (Wallaby).

This commit retires this repository as per the process defined in
the project-guide[2].

Thank you to all the contributors of Karbor for your hard work!

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html
[2] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Depends-On: https://review.opendev.org/c/openstack/project-config/+/767030
Change-Id: I972ffb299f93863c4e34b1f504b002095661e6af
2020-12-21 11:51:02 -08:00
wangyu 4355859cf5 Optimize jsonschema validation when reset checkpoint state
Add 'os-resetState' validation when reset checkpoint state,
This patch will optimize parameter verification.

Change-Id: Id31955dbb44694790bb2192eeb247792c9e295f1
2019-10-22 17:40:19 +08:00
genevieve-nantel e96ec2726c Implements karbor events notifications
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
2019-07-03 10:52:56 -04:00
jiaopengju 829948b328 Add quota support for checkpoints resource
Change-Id: I68bbc48ce6fb1638455d2bf67027d497f34fea64
Implements: blueprint support-quotas-in-karbor
2019-05-17 18:37:01 +08:00
jiaopengju ecc6b64f4a Add support to reset checkpoint state
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
2018-12-03 14:02:01 +08:00
helei 18dcda1ee0 Remove redundant limit param check in API
limit param has been checked in get_pagination_params
method before calling _get_all method

Change-Id: I987f88981bcca7219142aeed4a8c730832f00348
2018-11-28 10:55:44 +00:00
jiaopengju abab99c0eb Add all tenants support for checkpoints listing
Change-Id: Ic02a60a0eec1e7d3b0ca7b1a355a5d62d5c0046c
Implements: bp checkpoint-all-tenants
2018-11-19 09:35:33 +08:00
chenying 947dc8f982 Remove repetitive body schema check for karbor API
Change-Id: Ifa669b0ef07871dc84eb5db973a2d4a017887a04
Partial-Implements: bp karbor-json-schema-validation
2017-12-26 20:27:20 +08:00
chenying f4b59d9bf2 Add jsonschema validation for checkpoint API
Change-Id: Ia8b2e015ca7e9edd9987b980e06960099a88ce53
Partial-Implements: bp karbor-json-schema-validation
2017-12-14 17:48:12 +08:00
jiaopengju fde94b28e3 Add tenant isolation of checkpoints
Change-Id: Iaae21b4c7339f6453c391cb958fb828694b083fd
Implements: blueprint checkpoint-tenant-isolation
2017-10-20 09:22:38 +08:00
chenying 7900222b5d Add default policy in code for the provider resource
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
2017-09-27 17:54:26 +08:00
chenying 3f062aad83 Add the extra_info parameter when checkpoint being created manually
Change-Id: I7795485c027a0cb481271cdc249b4c9472fde7d0
2017-08-11 11:39:57 +08:00
Yuval Brik dca5ff046a Remove redundant ctor super calls, add missing
Change-Id: Iad10fe2d520a056a66bda85951c02d80f49020a4
2017-05-14 12:10:31 +03:00
Jenkins 45ed881816 Merge "Fix: reference an undefined attribute of 'msg' of Exception" 2017-04-24 01:53:17 +00:00
zengchen a9edb7cfb6 Fix: reference an undefined attribute of 'msg' of Exception
Change-Id: Ie1b0d61ba9e9118ca92240fa844c025b98a42d82
Closes-Bug: #1676804
2017-04-20 21:01:19 +08:00
chenying 084caffb00 Replace (str, unicode) with six.string_types
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
2017-03-29 20:42:54 +08:00
zhangshuai 9b88f73b87 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I62bf3bda7a0769fc8ff941d8238222beb392cf68
2017-03-17 05:11:16 +08:00
chenying 9ee39b54b9 Add metadata parameter to checkpoint API
Co-Authored-By: zhangshuai <446077695@qq.com>

Change-Id: I34c3f2996b11a0597091276eedd120c5222073b4
blueprint smaug-checkpoint-metadata
2017-03-09 23:28:36 +08:00
chenying e12313b5b8 Add validation for the parameter provider_id in checkpoint POST API
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
2017-01-20 15:41:31 +08:00
Yuval Brik 04e2086ad9 Use parenthesis instead of slash for multiline
Change-Id: I4111fb46613cf44645cb2f276a21be685de865d8
2016-12-25 10:23:19 +02:00
Jenkins dc7aefed5d Merge "Stabilize Protection Plugin API" 2016-12-20 04:42:58 +00:00
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
chenying 0a57041db9 Add plan and date filter parameters for checkpoint list API
Change-Id: Ic6fe002c40808ae0164a4aa46407c19dd95001d4
Partial-Bug: #1569657
2016-12-16 11:27:26 +08:00
sloblee 2e4878b69a Add Created_at field to checkpoint list/show API
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
2016-11-30 16:51:09 +08:00
Jenkins 7e6d4bc9b6 Merge "List providers for tenants" 2016-09-14 14:53:13 +00:00
zhangshuai abf2b460b7 Remove hard code in api
use constants.XXXXXX instead of hard code in api.

Change-Id: Idf3037c68632dd068da44c38c64c988126f4b707
2016-09-14 09:16:30 +08:00
xiangxinyong 4e700f9c64 List providers for tenants
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
2016-09-13 11:29:01 +08:00
chenying 1c60dac7fa Change Smaug to Karbor
There was a decision in the community to change the project name.

Change-Id: I8b3d538b9573ebaa2a873f4696e1f1a500c941a8
2016-08-18 22:55:34 +08:00