six.reraise input arguments are:
six.reraise(exc_type, exc_value, exc_traceback=None)
This information is provided by sys.exc_info() and stored
in self.communication_error.
Trivial-Fix
Change-Id: Ibe68d8e36ca424da61a0a9eea20e622440c79464
Bandit 1.6.0 accidentally changed how the exclusion list option is
handled and breaks our use of it. Cap to the previous version until
Bandit has fixed the problem.
Sphinx 2.0 no longer works on python 2.7, so we need to start capping
it there as well.
Change-Id: I24a66b454a28d00f96867fa1b24dd408591b41be
Reference: https://github.com/PyCQA/bandit/pull/489
The documentation was a bit too dry. Take some information
from mikal's blogposts and expose them in the user doc section.
Change-Id: I93a91c12e78c5d56913b0953c5a9cfa16e45a265
When executing in debug mode, the arguments passed to [1] are stored
in a dictionary populated with bytes instead of strings. When in [2]
"record" is created and updated [3], the values contained in "msg[1]"
are not updated in "record"
This patch converts all keys in byte format to string (Python 3).
[1] 130d7155c4/oslo_privsep/comm.py (L128)
[2] 130d7155c4/oslo_privsep/daemon.py (L210)
[3] b5409dacc4/Lib/logging/__init__.py (L415)
Change-Id: Idec9ecc9fcc8c5b6779e0194a16cd861c7895d7e
Closes-Bug: #1816804
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: I32e9980724205383bfc9272db92c3605c2dd90f6
Sem-Ver: feature
When generating a sample config, this shows
the real default behavior rather than recording
a number at sample config generation time.
Change-Id: I39e5200f795b52e61ab424a5fda4749086e458e2
We were missing the oslo-config-generator entrypoint in this library,
which meant there was no way to include the privsep opts in a
service's sample config file.
One complication is that it is possible to override the group name
for the opts. I assume this was done to allow services to run
multiple privsep daemons with different levels of permission, but
it means that the service will have to document any additional or
different group names that it may use.
Change-Id: I1ef30cb14d365f4bbfa580e75afc3580910d6fcf
Small cleanups:
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Change-Id: Ied822fc3723e95663aea5c0fd0ed8e8bde157a35
Needed-By: https://review.openstack.org/623229
External calls may return non-unicode data which cannot be encoded, eg:
'\udc82'. As a result, we need to set a handler for unicode_errors.
Change-Id: I8d913c12cc78b69957a750323cf229bc648c8927
Closes-Bug: 1806842
[1] added futures as a requirement for Python 2, but did not include
it as part of the requirements.txt and lower-requirements.txt files.
[1]- https://review.openstack.org/593556
Change-Id: I741f406ac348a09dc0ea08396a1f7242652fde6f
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss
Change-Id: I6163ec5d57943d4fb0a4616af28499a4cbb60603
Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools.
To this end, remove the long-standing sections for "Mr Developer"
and "Editors" since their mere existence here sends the signal that
we welcome (and have time to review) additions for any old tool
someone ever might happen to try. Also add a comment block
explaining this, for clarity.
We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks called from tox,
documentation and packaging builds, et cetera).
This change is a port of I1b41efac219fca44e2548fc36633724d0ecfc0cb
from the openstack-dev/oslo-cookiecutter repository.
Change-Id: Ief8b0db4e3020a853f8b4e32ac5fa49c01af59e4
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: Ie3c26ca1fab0d6248b49c74d7643d8cffcaec3d3
This replaces the deprecated (in python 3.2) unittest.TestCase method
assertRaisesRegexp() with assertRaisesRegex().
Change-Id: Ic1aad86680f4b2d6b4e694f8427c6c21c2393590
Signed-off-by: Chuck Short <chucks@redhat.com>
ffi.dlopen(None) cannot work on Windows and it is a
known issue [1]. This patch avoids this call on Windows
hosts.
[1] https://bugs.python.org/issue23606
Change-Id: I44436146cdc402087f33f4b99054176134ec5b81
Closes-Bug: #1788025
This is a mechanically generated patch to add a functional test job
running under Python 3 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ic3910c813e20d6aab578d238d20a4817b3ea9c66
Story: #2002586
Task: #24322
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I592ece9ea6475d1aad394c9b916f2994d224466c
Story: #2003250
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: I06d7b72fcaa4ce1f8764fd51635ae8239ea649b2
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: Ib592f5d76510dcb3303e954307066675838d58b8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The usage of privsep isn't really clear nor easy - adding examples
is a good way to avoid bad practices, especially since those two
entries actually provide hints for a common, clean way to use this
library.
Thumb up to Mike Carden for those precious links.
Change-Id: If051ef284ad06aaf44a5eb81242b90af31fdcc06
Set the default python to python3 except for the py27 environment. We
have to set that explicitly to override the new default.
Change-Id: I76c2528d825a5f66d34c21a02abf099b8dc547ec
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Fix the lower constraints values to match the expected values.
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.
Update msgpack to >=0.5.0 because 0.4.0 is no longer available on PyPI
and we need the lower bound to match the lower constraint.
Change-Id: Ic692cc024bc60b1913fb9eac60be92f7dd353a89
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.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Id1ebd6dc1b5178643646a3278a413ab25baef260
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>