Commit Graph

65 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
Andreas Jaeger ee26961cfc Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Move constraints into deps
- Increase warlock dependency, glanceclient blocks version 1.3.0

Change-Id: I8feb2e86281f2250bdc379b7868c5e738c1a19e6
2020-04-21 09:44:39 +02:00
Ghanshyam Mann 401c9bca56 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Karbor is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: Id923a1e18a1ba2439eda11a88abab64a3b32cab1
2020-01-23 13:43:50 +00:00
Corey Bryant 799e5fe24d Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ia88c2460e015a5ad7b0631e5eece7d51de5788b5
Story: #2005924
Task: #34214
2019-09-08 14:30:06 +00:00
pandatt 5188e4810a Change openstack-dev to openstack-discuss
Change-Id: I58f525516c4b9cf4d1ab9afe43e8e606f6c5c89a
2018-12-04 14:25:08 +08:00
akhiljain23 b03585d2ca Add framework for karbor-status upgrade check
This commit adds the functionality of karbor-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I8b75d516725c7cdf169d558b1c4b6f92a695ab2e
Story: 2003657
Task: 26134
2018-10-22 08:11:33 +00:00
jiaopengju 60a81a1492 Fix default configuration files path not exist
Default configuration files like etc/karbor/karbor.conf and
etc/karbor/policy.json are not exist. api-paste.ini is under
'etc/' path. This patch fix it.

Change-Id: Ia42c434b612a005e8de3a1c975a7819c1877256d
2018-08-17 10:04:14 +08:00
Nguyen Van Trung c20e61d042 Add default configuration files to data_files
In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron and the glance metadefs as has
been mentioned in the related bug report.

Change-Id: I81b5c00ace7b6d5fab4f982f403149a87b3afbd0
Closes-Bug: #1718356
2018-04-12 04:53:08 +00:00
jiaopengju a9e872bfe1 Add backup volume by glance protection plugin
Change-Id: I60ef750c5d13fa7c3b033f963e13285ba5fb6684
Implements: blueprint backup-volume-data-to-bank
2017-10-17 19:58:46 +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
Jenkins 4b959d0e3e Merge "Add the pod with cinder volumes protection plugin" 2017-09-20 13:25:19 +00: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
Jenkins 89a995522b Merge "Add freezer protection plugin for karbor" 2017-09-14 15:42:04 +00:00
jiaopengju bf752c4a84 Add freezer protection plugin for karbor
Change-Id: I619b06ff33fb4339a5851098867a46298a9aeb51
blueprint: freezer-protection-plugin
2017-09-10 17:16:14 +08:00
chenying 45f20e0a39 Add kubernetes pod protectable plugin to Karbor
Because of lots of special requirements(hardware, software, network,
performance, etc) and manual configurations, the environment of
the k8s running on the openstack(devstack) nova instance can not be
deployed on the jenkin job node automatically. So fullstack tests
about pod protection will not be added. I will add guide doc about how
to deploy k8s and protect pod with karbor in future.

Change-Id: Iedf7b15e5a87fcafd3ca61694a49d68f2a5c643a
Implements: blueprint kubernetes-pods-protection-plugin
2017-09-04 21:18:04 +08:00
Jenkins 1b40dc8a80 Merge "Add trove database instance protection plugin for karbor" 2017-07-27 10:07:52 +00:00
Jenkins 1da45877cc Merge "Add trove database instance protectable plugin for karbor" 2017-07-27 10:04:26 +00:00
Yuval Brik a78fc9d545 Docs: Arrange Contributor Guide
Change-Id: Ibda21080a200e4ea552d74a197b33381a1dd8964
2017-07-26 13:42:59 +03:00
Yuval Brik 0324a8b108 Docs: enable warning-is-error, fix errors
Enable "warning-is-error" for sphinx, and fix multiple small warnings
which now appear as errors.
Change-Id: Ieb3598095338b6c5ba68a3ee21d6da04201917a2
2017-07-25 15:23:32 +03:00
Jenkins d7fd814768 Merge "Increase s3 bank plugin" 2017-07-19 07:57:16 +00: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
Luong Anh Tuan 72d15d3a00 Update URL home-page in documents according to document migration
Change-Id: Ic27ea162f361714a44a105ab703ba6e265ce6736
2017-07-14 15:31:28 +07:00
chenying b7a94c884d Add trove database instance protectable plugin for karbor
Change-Id: Ib3a9988ded4dadd35e0f1a1053b2700c3a53a555
blueprint: trove-database-proection-plugin
2017-07-11 18:04:11 +08:00
Jeremy Liu 9a4de48ca9 Do not maintain data_files in setup.cfg
These files are copied to wrong places when making RPM packages.

Change-Id: Ibd451cee8590503e293e4befc126ed5d81473015
2017-07-07 10:04:48 +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
chenhuayi2 5f5680fcb2 Implement neutron network protectable plugin
Closes-Bug: 1569998

Change-Id: Ie99bb1e7a6ba9e70e1f65ab7b252827cf783e6c5
2017-06-20 14:21:14 +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
Jenkins 7040031763 Merge "Switch crontab to calendar" 2017-06-02 03:22:03 +00: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 83f519c691 Add manila share protectable plugin for karbor
Change-Id: Ifd9039a1b0629983538cab4e1f1d53911eda6581
blueprint: manila-share-proection-plugin
2017-05-02 23:00:32 +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
zhangshuai 7731d6c144 Switch crontab to calendar
calendar is more exact.

Change-Id: Ia5d5484e5e0441acbca2937aff7dca5129429be1
2017-03-27 05:24:42 +08:00
bhavani b8f846b4af removed the older version of python
Change-Id: Ia3f243bbe682ec14fae054480a7b8ac3624535c3
2017-03-07 11:57:44 +05:30
Yuval Brik 668b5dc8e1 docs: build modindex, add plugins
Change-Id: I2b5bae0e5b836dfcdf929e5ad56a810b127033a0
2017-01-30 13:27:32 +02:00
Nam Nguyen Hoai 961387dc3e Delete support for py33
From Mitaka, Python 33 is not supported.
This patch set removes this.

Change-Id: I288ee16a0582cfbc1f0d59e7812aac190372eee5
2017-01-24 10:16:18 +07:00
Yuval Brik f1655d917d Update the Cinder Backup Protection Plugin
Adjust the Cinder Backup protection plugin to the protection plugin
API, using hooks.

Change-Id: Ie03b6555f16c990dadf14f00bf219bf68aa990b9
2017-01-05 17:13:41 +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
zengchen 968db961de Optimize time trigger: use instance of time format instead of class itself
Optimize time trigger in several aspects. This patch is the fourth
phase, which will use an instance of time format in time trigger
instead of class.

Change-Id: I9f7bff41d4b42a7f38e2d7dae17bbd3ba57dd736
Closes-Bug: #1611232
2016-11-22 14:22:35 +08:00
zhangshuai cc28e2e3d1 Support relative path
As the sake of software package, It is necessary to support relative path,
like kolla's setup.cfg

Change-Id: Ie05488b4805fd7e8cb6b7f41d287c6b722eac75a
2016-11-05 05:25:25 +08:00
zengchen 9b749a51c7 Add a new executor for Operation Engine service
Create a new executor implemented by eventlet.

Change-Id: I14c1cd778730e7a027e4fff1ecb852c8524bb097
Closes-Bug: #1608415
2016-10-13 10:40:52 +08:00
Jenkins b3921ccdde Merge "Support multiple executors to choose for scheduled operation" 2016-10-13 02:08:46 +00:00
Yuval Brik 715008b668 Remove setup.cfg version
Change-Id: Id0976eebee1dbbd83490b2b830639aedfd1521ca
2016-10-06 17:16:08 +03:00
Tony Xu 3137135c84 Update homepage with developer documentation page
Change-Id: I6d92e20325d4456408748c84e3da3278f82b55eb
2016-09-24 14:52:29 +08:00
zengchen fb42c1ada7 Support multiple executors to choose for scheduled operation
Change-Id: I9e557d50a7e8b4c76bb52a35ebd5f664a947f37d
2016-09-23 15:22:38 +08:00
Yuval Brik a24b9742c4 Add server plugin to setup.cfg, default provider
Change-Id: Iadee2a61d9e208ebfbc0045962b2d1bdc3285869
2016-09-21 13:23:00 +03:00
gengchc2 6900dbbe8d Add Python 3.5 classifier and venv for smaug
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the
convenience py35 venv.

Change-Id: Ic507f0a53f618671f1515800147a5d0970849f1f
2016-09-02 17:32:02 +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