Commit Graph

55 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 d6a1f810fb Summarize output of sample configuration generator
This is a patch to summarize output of sample configuration generator,
and it is necessary to add the configuration of 'oslo.log'.

Change-Id: I7bfcd5f929b3cfe8bc7236f0981c2a0cc76b4b65
2019-07-03 19:00:06 +08:00
ericxiett 1ae346683a Change the name of provider 'openstack-kubernetes'
Change-Id: I0cd4c6dc54c2347939555198d7c18dcc83b6f392
Closes-Bug: #1741803
2018-01-09 11:02:42 +08:00
chenying 5f69bb846c Add default policy in code for the operation log resource
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.

Partial-Implements: blueprint policy-and-docs-in-code
Change-Id: Ie52d55eb0554b4e202143864c3bf1737797fb887
2017-10-10 17:55:25 +08:00
chenying 2c08b82537 Add default policy in code for the scheduled operation 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: I049aac17063543d3c32bd193e9c81fb0da26d79f
Partial-Implements: blueprint policy-in-code
2017-09-28 19:32:56 +08:00
chenying 6afc133e7a Add default policy in code for the trigger 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: I713f8d944e3e206f4542fa0dcb55b3a48d033bb7
Partial-Implements: blueprint policy-in-code
2017-09-28 17:10:02 +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 0c5ef4aacd Add default policy in code for the protectable 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: I330cdede9ea5e359a262510e054c79b068500c02
Partial-Implements: blueprint policy-in-code
2017-09-27 16:33:02 +08:00
chenying c31902b8d9 Add default policy in code for the restore 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: I8eb8db315766afba3e199809a7bc9041b52638cd
Partial-Implements: blueprint policy-in-code
2017-09-27 15:17:58 +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
chenying 34e99f82bc Add the pod with cinder volumes protection plugin
Change-Id: I254a1900b7c67cdf7f0f4779195123319771fd17
Implements: blueprint kubernetes-pods-protection-plugin
2017-09-19 20:24:53 +08:00
Yuval Brik 04a43d449c Install some providers on devstack only
Change-Id: I9dc402f2b83e3f77bae13b8dad53876467585c0b
2017-07-28 20:56:58 +03:00
Jenkins 1b40dc8a80 Merge "Add trove database instance protection plugin for karbor" 2017-07-27 10:07:52 +00:00
Jenkins e54447f580 Merge "Add operation_log API for karbor" 2017-07-27 06:24:08 +00: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
Jenkins c8a03e5a34 Merge "Fix glance image restore error" 2017-07-26 16:19:03 +00:00
jiaopengju 0e56552b24 Fix glance image restore error
1. Currently, when doing image restore if the chunks num of an image
file is bigger than 10000, the restore will fail. It is because that
without 'full_listing=True', swift client can list 10000 objects at
most by default. So this should be fixed.

2. Fix a bug in image_protection_plugin when updating the chunk num

This patch fixes the above issues.

Change-Id: I40e89745c5fc0ae60ab3dc699abda4872bed08ff
Closes-Bug: #1703301
2017-07-26 16:30:10 +08:00
Yuval Brik 525457d8fb Docs: Arrange Configuration Guide
Change-Id: Iaea6ac7645150d72a50fed0813b265152c2510e5
2017-07-25 19:14:28 +03:00
Jenkins fbab1ba09b Merge "Add option to enable or disable providers" 2017-07-20 08:33:36 +00:00
jiaopengju e402bb9056 Add option to enable or disable providers
1. Add configuration option in provider configuration file to enable
or disable the provider.

2. Skip the protectable resources when get the dependent resources
failed.

Change-Id: Ie67fbacbebb887a76e57273c3dd36d1f333b615d
Closes-Bug: #1702907
2017-07-19 21:52:03 +08:00
jiaopengju 323d17b6fb Increase s3 bank plugin
Change-Id: I3ab61c9c6d22187d95205ef8235fe078d5d1592d
Implements: blueprint s3-bank-plugin
2017-07-18 13:51:39 +08:00
chenying 19154111ec Add trove database instance protection plugin for karbor
Change-Id: I29c11db4fb80525445c8339c2af6945fd1773f64
blueprint: trove-database-proection-plugin
2017-07-14 18:02:52 +08:00
Jeremy Liu dba51806f2 Generate the karbor.conf.sample with oslo-config-generator
It's hard to maintain karbor.conf by hand, let's switch to use
oslo-config-generator and follow OpenStack convention.

Change-Id: I0dd0a63267e14321ff723d32bd6d90db07cc5f95
2017-07-03 18:12:13 +08:00
Jenkins 0898ad5c40 Merge "Fix the error about the translation of KarborException message" 2017-06-22 07:03:28 +00:00
chenhuayi2 5f5680fcb2 Implement neutron network protectable plugin
Closes-Bug: 1569998

Change-Id: Ie99bb1e7a6ba9e70e1f65ab7b252827cf783e6c5
2017-06-20 14:21:14 +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 6a549fcf06 Add Cinder snapshot plugin implementation for karbor
Change-Id: I432b48e4e4017c56b8bc452f44ecad171542fb4d
blueprint: cinder-snapshot-protection-plugin
2017-06-14 22:03:09 +08:00
Jenkins a6fd008301 Merge "Add a fullstack test for the file system based bank" 2017-06-06 08:32:45 +00:00
chenying c70e418365 Add a fullstack test for the file system based bank
Change-Id: Iffc2e6a5702f761e3d9a5b5a2cdad88edc18b1d6
Implements: blueprint file-system-bank
2017-06-05 14:14:59 +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 ecdfd06ce7 Add deploying karbor-api with mod-wsgi
This patch adds support to run karbor-api with mod-wsgi.
It provides wsgi app script files and an example Apache2
configuration file for using karbor API through mod_wsgi.

Closes-Bug: #1681500
Change-Id: I292894f59809b84dc1697767a5d3d59861faac84
2017-04-11 16:21:41 +08:00
xiangxinyong 90fc77dc8b etc/karbor.conf URL error
Modified karbor.conf url

Change-Id: Ie8ecd8d4fee20cecd892c3415440e1b12d4c624a
2017-02-15 06:55:10 +08:00
Yuval Brik a808a5bcf3 keystone: move to v3
Change-Id: I2bd316e52aede8ca207d364d247b2a0ffeccf9c4
2017-02-07 14:00:45 +02:00
Yuval Brik 52ccfe9056 noop: update name and description
Change-Id: Ifbcfd3c7fb31c71ad69a035ead1660a66e377c41
2017-01-30 13:43:40 +02: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
lichunyu 5c182f1335 fix Eisoo provider load error
For the reason that we haven't commit eisoo oracle
protection plugin, a 'Load protection plugin:
'karbor-eisoo-oracle-protection-plugin' failed.'error will occur.
To avoid this, we remove the attribute 'plugin' in eisoo.conf
temporarily.When we commit patches about protection plugin,we
will add it back.

Change-Id: Ic97e8144646608cfb1fd03c11918a89cff87b252
2016-11-28 15:54:58 +08:00
lichunyu 42affab4d0 add eisoo client factory
add abclient in requirements.txt.
add eisoo client factory to create EISOO
AnyBackup client.
add tests to eisoo client factory.

Change-Id: I60f88b0cbacc12e588bf1e57757cba727db86765
Depends-On: I6467a4b2f24c07c75789ab52f580d031d47c642f
2016-11-25 17:07:48 +08:00
chenying 56e611c957 Fix the authorization of swift when karbor is installed using devstack
The service's default password in local devstack and gate devstack
should be same.

Change-Id: If9b5c24a91d33e489c02177ea60f5adbb2321320
Closes-Bug: #1635140
2016-11-01 10:14:11 +08:00
Yuval Brik a24b9742c4 Add server plugin to setup.cfg, default provider
Change-Id: Iadee2a61d9e208ebfbc0045962b2d1bdc3285869
2016-09-21 13:23:00 +03: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
Daiki Kato 8ab461ab76 Add image protection plugin in openstack-infra.conf
Change-Id: Ia801976e72c0061921a2ce9d8938717a4728972d
2016-07-20 16:27:06 +09:00
Yuval Brik 4ef744db4f Fix default provider config for fullstack
Change-Id: I29c3c1f832c7df909edbf7b8c4b6088f566d825f
2016-06-14 16:37:40 +03:00
chenying c589534338 Fix bank and protection plugins not being successfully loaded
Change-Id: I51420082f78e790f4c22dbb06972fe8f59fd439f
Closes-Bug:#1587433
2016-05-31 23:55:57 +08:00
zengchen d54d6835d1 Implement RestAPIs of Scheduled Operation.
Includes create/delete/get/list APIs.

Change-Id: I5c2578a810cbbaf65847cdd048a6df6bb91176de
Closes-Bug: #1552130
2016-04-13 10:24:49 +08:00
zengchen d1d69da052 Implement RestAPIs of trigger.
Includes create/delete/get/list APIs.

Change-Id: I03deb689e48d30b44eadc6badf41f1b6d6f6c935
Closes-Bug: #1551569
2016-04-13 10:24:04 +08:00
Yuval Brik 7b24765f4a Split Provider configuration into files
Change-Id: Ie88895ceda3a620aa33999a980e04e144d8f32e6
2016-04-04 23:37:17 +03:00
chenying 61026e3d07 The RESTAPI of resource checkpoints
Change-Id: I819896be8f3463ef01ecf1c1d74ef92dd7e9216f
Closes-Bug: #1550682
2016-03-08 16:35:39 +08:00
chenying 22f613d845 The RESTAPI of resource providers
Change-Id: Ia2ec297e66c85d7d24bdd92c315fe9d4f8881878
Closes-Bug: #1550598
2016-03-07 20:17:17 +00:00
chenying 97621c9c9e The RESTAPI of resource protectables
Change-Id: I690d88a92c31e7567110f5fd8d90cc8a4d42868d
Closes-Bug: #1550305
2016-03-07 18:11:51 +00:00
chenying 62d11cc0cc The RESTAPI of resource Restore
Change-Id: I5441cabb2b947c4cd59c45adb31ffb9af2292f7d
Closes-Bug: #1549324
2016-03-02 17:47:37 +00:00