Commit Graph

24 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
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 9206e58333 Fix creating plan with invalid provider and no parameters
When we create a plan with using invalid provider, it return
success if we do not specify parameters. This patch will fix
it.
Closes-Bug: #1829163

Change-Id: I9755949343b73702fd00f5407b5d01b82c4a0963
2019-05-15 19:47:54 +08:00
liushuai b68009787a fix check parameters error
Closes-Bug #1822537

Change-Id: I2955a83b8c9e525b810aa5f17f9ee0f677d9bcec
2019-04-18 06:53:50 +00:00
liushuai a69cd9b3e3 Add support to update plan description
Change-Id: I03f19534613796a1180f8cbc2614a0f40ddc8f87
2018-12-02 23:18:37 +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
yaofenghua 7824d9a432 Remove redundant format check of plan id
Change-Id: Iad5f82a75766e7d7eb132e15c6f2d72ab6fb1443
2018-11-27 18:14:52 +08:00
liushuai 2be6e2a496 Fix raise error in create plan process
Change-Id: Ied5885670b0a9e401865d47e5f1ba598403b1351
2018-11-27 13:45:59 +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 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 10de69e32d Add try catch exception for plan destory before quota reserve
Change-Id: I6004b3705e5f7488e897154452a24af8694f38b6
Implements: blueprint support-quotas-in-karbor
2017-11-06 15:08:07 +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 105f68fa36 Fix the unit tests about policy and the DocumentedRule description
Change-Id: I419dab4bfee11cbba3779d11dbb188cb048a488e
Partial-Implements: blueprint policy-and-docs-in-code
2017-10-11 16:33:20 +08:00
chenying 83f97e4c41 Add default policy in code for the plan resource
This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
karbor/policies/, and then added to the list in
karbor/policies/__init__.py.

The sample file about default policy will be generated as yaml using
cmd 'tox -e genpolicy' in this patch.

A new context.can() method has been added for policy enforcement of
registered rules. It has the same parameters as the enforce() method
currently being used.

The patch add default policy in code for  plan resource in karbor.

Partial-Implements: blueprint policy-in-code
Change-Id: I88ce31ee7cff9263055cfb51f6b5da5c333c50f2
2017-09-26 19:18:31 +08:00
Yuval Brik c76eb1020f Ignore plan parameters for unloaded plugins
Karbor dashboard sends empty parameter for unloaded plugins. The Plan
api tries to validate the parameter, but the plugin is not loaded and
thus the plan creation fails.

Change-Id: I262af49e6860703931bbfe4b21e4807b82b4b24d
2017-08-09 12:43:01 +03:00
Jenkins c24b80e8ce Merge "Add a verification about the protect property of plan's parameter" 2017-05-24 13:05:29 +00:00
chenying 919712f3b2 Add a verification about the protect property of plan's parameter
The protect properties of plan's parameter have not been checked.
The protect property value should be one of the properties in
options_schema of the plugin.

Change-Id: I47cbcae98f9e3c06caa47e9fbe7b1a4f4cbcf372
Closes-Bug: #1686404
2017-05-24 19:27:55 +08:00
Yuval Brik dca5ff046a Remove redundant ctor super calls, add missing
Change-Id: Iad10fe2d520a056a66bda85951c02d80f49020a4
2017-05-14 12:10:31 +03:00
chenying 6d54ebcccf Add extra_info field to the resource database table of plan API
Add the extra_info field to the resource database table of
plan API datamodule. User can save the extra_info of resourece
instances to this table.

Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>

blueprint instances-extra-info
Change-Id: I2efa0df5489ce7dc7ef9dff1c187536d8fe27af5
2017-04-06 17:53:49 +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 c90c99e072 Support fuzzy filtering for the list API of Plan
Fuzzy filtering can be supported by the name and description
fields of the plan list API

Change-Id: If4a2bcdb1fea341f3eaf701a24f9f9c47da6b8e6
Closes-Bug: #1644949
2016-11-28 12:51:05 +08:00
chenying 3ff885f97d Add a description field for resource plan
Change-Id: I8fb4a89f285005a8e553cc831505a183812576df
2016-09-19 11:18:27 +08: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
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