According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I9d22be39bec67fc17841367a0ef0ac439143af6c
As per the community goal of migrating the policy file format from JSON
to YAML [1], we need to do two things:
1. Change the default value of '[oslo_policy] policy_file' config option
from 'policy.json' to 'policy.yaml' with upgrade checks.
2. Deprecate the JSON formatted policy file on the project side via
warning in documentation and release notes.
[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: I9ca5459a6968d93dee1bf24b3e0012a4cc7020b5
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.
Change-Id: I185cdeefe513eb5247e18b775bba106931bb98e3
Babel is no longer a requirement for OpenStack projects. We can remove
it and save some disk space.
Change-Id: I83a8632b004b6b94d5a99e00f9f4e193081eaba9
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Change-Id: I24adccf508750f3c07fe610a53362fd24c64d632
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: Ib2fc9304a6db9f01eb6d0eb82363906fd322612f
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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build; fix build warnings
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Raise oslo.utils version, 3.36.5 introduced uuidsentinel.
Change-Id: I8c81e0c1944c239e460befbf886993270902ee04
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.
Move hacking tests to another subdir, import hacking failed since the
subdir was called hacking as well.
Change-Id: I684f0e4be28e529ae2c9d6f4bef5bd840adc8787
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: I84e64e1ba60341408c400bef7c351ec0ebab2ef1
This patch adds microversion support so that it is possible to make
minor changes to the APIs as required to fix Launchpad bug #1740091.
Change-Id: I7ea48be72897a77fc8424a57f4ce2d4798daf4eb
Related-Bug: #1740091
Blazar called placement to delete reservation inventory on reservation
resource provider *before* blazar asks nova to delete the instance.
This caused inventory in use 409 conflict error in placement.
This patch re-orders it to call placement after instance delete and
adds a function to ensure the deletion is completed not to cause the
error.
Change-Id: I3b4a892a783140b4a25810aeed71c79f6207e155
Depends-On: https://review.openstack.org/#/c/633408/
Closes-Bug: #1813252
When updating reservation values, the reservation ID is a required
parameter. However, if the value of "reservation.id" is set to an empty
string, null, or an incorrect UUID, Blazar currently returns a 200 OK
response instead of a 400 Bad Request.
This patch fixes it by raising an InvalidInput exception if an invalid
value is passed for reservation.id.
APIImpact: The response code is changed from 200 OK to 400 Bad Request
if an invalid reservation ID is passed to the Update Lease API.
Change-Id: I83e7c3cc0b6ca79aab2b8bb23ba82fceb96646e2
Closes-Bug: #1793743
This adds basic framework for blazar-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.
Change-Id: I6f40be87eb7e20fb396191e60af023923eb9019a
Story: 2003657
Task: 26121
Remove the nose dependency since its not being used anywhere.
Change-Id: I35ec4ca6075230b4425c8419e2d022ef28f66421
Signed-off-by: Chuck Short <chucks@redhat.com>
A previous patch [1] changed tox environments to use python3 by default,
which makes the pylint test fail.
This patch updates the pylint package version and fixes pylint errors.
[1] https://review.openstack.org/#/c/572948/
Change-Id: I93c4a0c6060960552cc914963f410188eac7f3f4
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.
Uncap eventlet at the same time to make the requirements match the
global list.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I3d4c66be32a7e5f1bae11fcba9491f9e26b59bb6
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>