Commit Graph

46 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 0764f5dab1 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0.1 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I6691687f0cd2fe4c9e7f2a76d333ca9eacb0cbf3
2020-05-13 19:20:28 +00: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
chenke 4108ed8260 Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html
2. https://github.com/openstack/nova/blob/master/tox.ini#L17

Change-Id: Ibf8ee07aa34096887e8e3a9b62176b7d3537055f
2019-09-09 09:30:41 +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
Andreas Jaeger e8199ce65f Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ib43e63ffdc58615f1ea2d273306c7170a1f97f1b
2019-07-29 09:55:45 +00:00
caoyuan 6f6ef74cc9 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4adc47322f3dff4c12c884c0f5464d92a041439e
2019-05-20 03:15:24 +00:00
jiaopengju 3283e4e2c5 Remove concurrency in tox.ini
When specify --concurrency=4 in the stestr command, we can
not execute a specify test case. This patch remove it.

Change-Id: I7cf40faf7c7ca1f458000c418d509c159fa69614
2018-10-06 15:19:25 +08:00
jiaopengju dfcd6ab7e1 Switch to using stestr
Change-Id: Ia70ef63f78c40fa60fc84e660c216ffbbadcfec9
2018-08-15 09:07:36 +08:00
Doug Hellmann 06f998b1fb fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I6941acb53a22f434947f8b40e6f86b8c14b57d5d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:00 -04:00
Doug Hellmann 40dd3ed7d3 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

Remove the cap on eventlet so the requirements match the global list.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I3d381fc2c614d5c0a9ca5cb0322c24c60887724b
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 16:26:33 -04:00
chenying 3b1c7a213e Fix the warning about test command 'rm' found but not installed
tox command shows WARNING message as follow.
"WARNING:test command found but not installed in testenv"
If we use "rm" command in tox.ini, we should put it in the
whitelist_externals. This patch changes fix it and remove the
Warning message.

Change-Id: Icaf76904d4ffb95894c32af9789d9fa4e962475c
Closes-Bug: #1719788
2017-09-27 15:13:29 +08:00
Jenkins 3f3df9b761 Merge "Add default policy in code for the plan resource" 2017-09-27 06:35:55 +00: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 0649f48309 Merge "Add 'rm -f .testrepository/times.dbm' command in testenv" 2017-09-26 02:55:29 +00:00
Luong Anh Tuan 9a4c7400a9 Indicating the location tests directory in oslo_debug_helper
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.

[1] https://docs.openstack.org/developer/oslotest/features.html

Change-Id: Ic5415281331406e865c4ab86a100b64b91d509c3
Closes-Bug: #1666560
2017-09-25 04:13:50 +00:00
chenying 0677ee1294 Optimize the execution time of karbor fullstack tests
Now the fullstack tests of karbor take too much time, this patch reduce
some repetitive actually resources(server, volume) backup and restore
tests.

Change-Id: Iaa38ff72d8d5acc7ee2ba10da23b8514278c70ff
2017-08-24 18:06:17 +08:00
yushangbin cdd4be738c Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Closes-Bug: #1565928
Change-Id: I83ee9e86844c1654ad438ab3e25f76ea5529db24
2017-08-13 21:55:33 +08:00
yushangbin 18c07ba43d Remove install-guide env which is no longer effective
The install-guide directory has been moved to doc/source directory
when migrating docs.

Change-Id: Iae911c2e5e863986077f30fb34c0f36137de1b0b
2017-07-31 16:09:16 +08: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
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
chenying 629d3d37b5 Fix fullstack gate error about 'Too many connections'
Change-Id: Icc3d21187fab1ac9d33e5158d97c694e7c6f9e3b
2017-05-02 15:30:27 +08:00
Jenkins ae2f2f9269 Merge "Add install-guide for karbor" 2017-04-25 01:52:21 +00:00
zhangshuai 23c3da4e5b Add install-guide for karbor
The heat install-guide structure is based on Install Guide
Cookiecutter [1].

[1] https://review.openstack.org/#/c/314229/

Co-authored-by: chenying <ying.chen@huawei.com>

Change-Id: Ie851bf6739bca301325f5adeaa12e73e09a65b5d
2017-04-22 15:47:13 +08:00
Jeremy Liu 0f06e40b79 Enable coverage report when testing coverage
Change-Id: I4fe481cc35e7fd4836e7111e6cce776367956a42
2017-04-18 07:10:49 -07:00
zhangshuai f538af85bc Update fullstack efficiency
Parallel exec fullstack test case

Change-Id: I3d91cf01f5867db7f61b2b11496e81dfaa8aae8f
Related-On: Ibf1d00647158828a0fed55ba8c1623f0673de6b0
2017-03-23 03:32:55 +08:00
bhavani b8f846b4af removed the older version of python
Change-Id: Ia3f243bbe682ec14fae054480a7b8ac3624535c3
2017-03-07 11:57:44 +05:30
zhangshuai 539e2c8bb0 Support to execute specific fullstack test
In order to execute someone specific test case

Change-Id: I4e91176402f9fbaff7d6dbc5073071367c56e33d
Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>
2017-02-14 08:16:25 +00:00
zhangshuai b69c6f53d3 fix scheduledoperation fullstack
Add create scheduledoperation fullstack and scheduled use case.

Change-Id: Idfa179df1c8de893f06a8d7810facea60c19a004
2016-12-23 08:23:27 +08:00
linbing ae4e1d2b8b Set local for tox
When tests are run it's important that we set the locale so that
variouse logs and tool outputs are readable by the entire team regadless
of host locale.

* Force LANGUAGE=en_US in test runs
* Force the value of LC_ALL to be en_US.UTF-8

Change-Id: I5cfbb72baab46f5d99e994c2c6075138e239e411
2016-11-16 10:29:42 +02:00
Jenkins 122778cedf Merge "Enable DeprecationWarning in test environments" 2016-11-11 02:42:34 +00:00
pawnesh.kumar ccb38fe96b Added release-notes for karbor
Change-Id: I873d652440fb3cb2491c5c1fee11143cd74b26fa
Implements: blueprint maintain-releasenote
2016-10-31 08:50:43 +00:00
Deepak f2321aba7c Enable DeprecationWarning in test environments
Many deprecations are triggered early (on imports, for example).
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: Ia4a90a76dced55f1477010a6b918d8dbb7b82093
2016-10-26 14:45:18 +05:30
pallavi 867e72244e Use upper-constraints for tox envs
Pin tox environments to upper-constraints to avoid conflicts with
library releases.

Change-Id: Ib00098823d017eb604733026a879fa7ce97117a9
Closes-Bug: #1628597
2016-10-05 16:46:30 +05:30
zhangshuai 87e9309f05 Add frame for api reference
- Adds an API Ref docs frame for karbor

Change-Id: Ie179f90c83e71a98cbfc197a170f5f55748f9e21
2016-09-14 01:54:23 +00: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
ChangBo Guo(gcb) 41fa4d4e7d Remove oslo-incubator related stuff
openstack-common.conf was used to keep modules synced from
oslo-incubator, and the directory openstack/common was used
to keep codes from oslo-incubator. We have retired oslo-incubator,
so don't need these any more.

Change-Id: I218d964c1623358be0818172c74a216cbe6f0f8f
2016-06-27 11:05:06 +08:00
zhangshuai d89b4a4b56 Add fullstack tests of the resource checkpoints RESTAPI
Change-Id: I7d99bb87995edbecebcaac321095aab3487a550d
Closes-Bug: #1578892
2016-06-15 08:10:58 +00:00
chenpengzi ff2f9857f1 Add fullstack tests of triggers
Change-Id: Ib902c45c8fdee35effa95908023ea68023077c84
Closes-Bug: #1578893
2016-05-16 04:27:59 +08:00
chenying cffccfa890 Add fullstack test to smaug
Change-Id: I75024a7d838882495f4b16ac46ca423fac5df3fe
Closes-Bug: #1571474
2016-04-20 15:49:03 +08:00
ting.wang 4b77c7c651 Clean flake8 ignore
There is no bad code violating PEP-8 and no need to ignore rules E123 and E125.
So clean the ignore list to do a more strict check.

Change-Id: Icab80c3d642acde01eabb13f402920e48f76edad
2016-01-14 18:50:02 +08:00
chenying b2a624c783 basic API service
Implement the basic boilerplate for the smaug APIs, using WSGI and
OSLO services.
Smaug-api service now can respond the request of the resource plans.

Follow these steps to using smaug API service:

1 download the source code form github.

2 install dependency libraries
pip install -r requirements.txt

3 install smaug API service
python setup.py install

4 start smaug API service
python /usr/local/bin/smaug-api --config-file /etc/smaug/smaug.conf

4 using the resource plans RESTAPI (now only available with auth_strategy  noauth )
http://10.229.46.128:8799/v1/55daed3cc6da42c6aa25e55d15bb1757/plans

Closes-Bug: #1514745
Change-Id: Id27c624714c1839818937b94c1ecd33f393ec282
2015-12-08 18:55:43 +08:00
Eran Gampel 34e58031e4 Initial Cookiecutter Commit.
Change-Id: Ic73d1bf464a3652a3b7f321e0eaf2708f5bb2707
2015-11-08 13:35:36 +02:00