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
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
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
When specify --concurrency=4 in the stestr command, we can
not execute a specify test case. This patch remove it.
Change-Id: I7cf40faf7c7ca1f458000c418d509c159fa69614
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>
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>
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
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
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
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
It's hard to maintain karbor.conf by hand, let's switch to use
oslo-config-generator and follow OpenStack convention.
Change-Id: I0dd0a63267e14321ff723d32bd6d90db07cc5f95
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
In order to execute someone specific test case
Change-Id: I4e91176402f9fbaff7d6dbc5073071367c56e33d
Co-authored-by: xiangxinyong <xiangxinyong@huawei.com>
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
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
Pin tox environments to upper-constraints to avoid conflicts with
library releases.
Change-Id: Ib00098823d017eb604733026a879fa7ce97117a9
Closes-Bug: #1628597
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
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
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
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