Commit Graph

25 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
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
chenying 84f83a3d70 jsonschema validation: base schema framework and plans API
This patch adds a base jsonschema framework which will be used
by other subsequent patches for adding jsonschema validation
support for Karbor V1 APIs.
This patch adds jsonschema validation for Karbor Plans API.

This patch follows the Cinder-Schema-framework:
https://github.com/openstack/cinder/tree/master/cinder/api/validation

Change-Id: I5a552f33608a924b0a410fdf1b83b7f5c4759aae
Partial-Implements: bp karbor-json-schema-validation
2017-12-05 17:45:40 +08:00
chenying 9484795608 Add API controller for the quotas of Karbor
The quota API is intorduced to karbor using manila protect
as a reference.

Change-Id: I630b501445608dfa5c67ce7fdb7afa3a594d4294
Implements: blueprint support-quotas-in-karbor
2017-11-03 11:51:31 +08:00
chenying 9d7af44a04 Add tables and data modules for the quotas of Karbor
The quota data modules are intorduced to karbor using manila protect
as a reference.

Change-Id: I0db22031b2dc7b574d7779a1fa61d49d795f023e
Implements: blueprint support-quotas-in-karbor
2017-10-31 20:10:41 +08:00
chenying 22ed8a9d9f Add verification API for Karbor
Add VerificationsController to Karbor API. The verify action
of the volume backup plugin is introduced in this patch.
The verify aciton of other plugins will be introduced later.

Implements: blueprint support-verify-the-checkpoint-api
Change-Id: I2fb36fe836b23519aaf0a5219b4404f819f0dc36
2017-10-23 10:33:45 +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 33756861da Add data module for checkpoint verification API
Change-Id: If672a14b932b33a4254f21486d2e3fbe56198a73
Implements: blueprint support-verify-the-checkpoint-api
2017-10-17 10:02:30 +08:00
Yuval Brik 3a534f0fdd Fix neutron protection plugin exceptions
In [0], some exceptions were removed, but this was sent before the
network protection plugin was merged. As a result, the network
protection plugin is using the old, removed exception.
Use the correct exceptions.

  [0] https://review.openstack.org/467960/

Change-Id: I9a4e02fead2b7948b51eeb2d7ca305f3f0b24ccd
2017-08-13 16:08:30 +03:00
chenying 6cef7d51cf Update the exception class of the plugins
Change-Id: Id96edc25c12045453cc9c85c51bd826eaabda8e4
2017-08-02 17:55:46 +08:00
chenying 919333722a Add operation_log API for karbor
This API is a new one. After this API is merged to karborclient.
I will submit another patch about fullstack of it.

Change-Id: Idf67d5fdc5c2c4bb960212dae4c18294109a6fbf
blueprint: operation-log-api
2017-07-27 10:12:20 +08:00
jiaopengju 323d17b6fb Increase s3 bank plugin
Change-Id: I3ab61c9c6d22187d95205ef8235fe078d5d1592d
Implements: blueprint s3-bank-plugin
2017-07-18 13:51:39 +08:00
Jenkins 0898ad5c40 Merge "Fix the error about the translation of KarborException message" 2017-06-22 07:03:28 +00:00
chenhuayi2 d92876f7fa Implement neutron network protection plugin
Closes-Bug: 1572006

Change-Id: I304db6de21d16e8dbff695ffa2c76c8f8cc373ee
2017-06-21 13:06:29 +08:00
chenying 8b98ecd056 Fix the error about the translation of KarborException message
1, Introduce FaultWrapper from cinder to make exceptions into karbor's
wsgi faults. So that the messages can be translated, it can be shown
in a WSGI response.

2, Avoid Forcing the Translation of Translatable Variables[1]

[1]http://docs.openstack.org/developer/oslo.i18n/guidelines.html#avoid-forcing-the-translation-of-translatable-variables

Closes-Bug: 1698757
Change-Id: Id85871b3a4c9ec7049f42e15141a678dba7316c2
2017-06-19 19:44:54 +08:00
chenying df8c9e8af0 Add manila share protection plugin for karbor
Change-Id: If30ccc65fb31728597892f1b66e1367eecb95fed
blueprint: manila-share-proection-plugin
2017-05-25 20:16:08 +08:00
chenying f8ec771831 Extracted HTTP response codes to constants
There are several places in the source code where HTTP response
codes are used as numeric values.

Status codes 200, 202, 204, 300, 400, 401, 403, 404, 405, 409, 413,
415, 500, 501, 503 in karbor source code are replaced with symbolic
constants from six.moves.http_client thus improves code readability.

Closes-Bug: #1677241
Change-Id: Ic3a410b3fb375b0283906a4a9a3f2b572b219d2a
2017-03-31 18:01:03 +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 2d324ed911 Raise a HTTPNotFound 404 exception when instance can not be found
Change-Id: Ia3a24b24f2cd61bfbb21ce0dd5a5a6f9ce2d056d
Closes-Bug: #1655282
2017-02-07 20:05:08 +08: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
xiangxinyong 59e13c7ba4 Add checkpoint_records table of db
Also include the definition of table and the operation interface.

Partial Implements: blueprint checkpoint-scheduled-clean
Change-Id: Ia191d4a45cf12de3197e01f8e8e36d1117870bba
2016-11-14 14:29:25 +08:00
chenying 404d8d2d32 Fix the none error
The object is None. But we still get the property of the object.

Change-Id: I6cdc99b31c92f616b2cd47b28b16191d594b7783
2016-10-10 20:32:39 +08:00
zengchen 29fee84c52 Add suspend/resume operation interface in Operation Engine
suspend interface will pause the operation and it will not be triggered;
resume interface will resume the operation to be triggered.

Change-Id: I2d3fb84d53d5bad783bc4b1236091b7fca6727d8
Closes-Bug: #1606467
2016-08-30 11:12:00 +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