217 Commits

Author SHA1 Message Date
caoyuan
3a8f29ed71 Move doc related modules to doc/requirements.txt
Change-Id: Iedf201e211648452df29fa518c069ecf41a0acf3
2019-07-06 02:15:13 +08:00
Rodolfo Alonso Hernandez
3574210641 Pass correct arguments to six.reraise
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
1.33.1
2019-05-17 16:10:12 +00:00
Ben Nemec
5abc1e2bf2 Cap Bandit below 1.6.0 and update Sphinx requirement
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
2019-05-15 15:49:54 +00:00
Zuul
40519d380f Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-03 18:21:47 +00:00
jacky06
447b377f86 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Idd169dc8dbe07a17cbdf3e0834ccf3998badcfb2
Closes-Bug: #1826999
2019-04-30 13:27:01 +08:00
Zuul
eaba828d92 Merge "Add more usage documentation" 2019-04-24 12:54:14 +00:00
OpenDev Sysadmins
250c524a7c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
1.33.0
2019-04-19 19:48:27 +00:00
Thierry Carrez
6c3a6e27a6 Add more usage documentation
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
2019-04-12 08:42:30 +00:00
Rodolfo Alonso Hernandez
c9cec8e87b Convert dict keys received in _ClientChannel from byte to str
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
2019-04-04 11:06:08 +00:00
d84c76108b Update master for stable/stein
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
2019-03-18 14:46:01 +00:00
Eric Harney
e7e77096f2 Add sample_default for thread_pool_size Opt
When generating a sample config, this shows
the real default behavior rather than recording
a number at sample config generation time.

Change-Id: I39e5200f795b52e61ab424a5fda4749086e458e2
2019-02-27 14:51:50 -05:00
ZhongShengping
130d7155c4 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html
Story: #2004073
Task: #27440

Change-Id: I8089b68774129623f29ca049f36c9fd1e4fb32ac
1.32.1
2019-02-19 13:56:43 +08:00
ZhijunWei
b033c2f346 Update hacking version
update the hacking to latest, due to[1]

[1]: https://github.com/openstack/oslo.privsep/blob/master/HACKING.rst

Change-Id: I760d81aa7b19c8df15bf9f187de8ea4945579a9c
Closes-Bug: #1815714
2019-02-13 14:46:48 +08:00
Zuul
225e975abf Merge "Expose privsep options for config-generator" 1.32.0 2019-01-23 19:07:07 +00:00
Zuul
6b5bbbb148 Merge "Set unicode_errors handler to 'surrogateescape' in msgpack" 1.31.1 2019-01-15 18:47:14 +00:00
Ben Nemec
c913b972b7 Expose privsep options for config-generator
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
2019-01-10 19:56:24 +00:00
Zuul
ecb1870c29 Merge "Add futures as a requirement for Python 2" 1.31.0 2018-12-24 10:40:21 +00:00
Andreas Jaeger
16da910185 Use template for lower-constraints
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
2018-12-20 20:14:31 +01:00
Sam Wan
966cace7aa Set unicode_errors handler to 'surrogateescape' in msgpack
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
2018-12-18 21:33:26 -05:00
Javier Pena
a25a652d89 Add futures as a requirement for Python 2
[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
2018-12-17 08:58:31 +01:00
Zuul
7b31740c09 Merge "Use threads to process target function" 2018-12-12 15:35:40 +00:00
ZhongShengping
32da499c04 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I6163ec5d57943d4fb0a4616af28499a4cbb60603
2018-12-05 09:38:34 +08:00
TommyLike
f368430f13
Use threads to process target function
This patch takes advantages of threads to make privsep daemon process
concurrently.

Change-Id: Ib20b27d5ea07bd0af61891c7d8c0d352a393aa21
2018-11-02 09:28:34 -05:00
ZhongShengping
fc056e38c1 Clean up .gitignore references to personal tools
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
2018-10-15 11:51:03 +08:00
Vieri
ef4ea2ef99 Don't quote {posargs} in tox.ini
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
2018-10-09 13:36:18 +00:00
Chuck Short
9391cbf297 Replace assertRaisesRegexp with assertRaisesRegex
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>
1.30.1 1.30.0
2018-08-27 11:10:06 -04:00
Zuul
444679037e Merge "add lib-forward-testing-python3 test job" 2018-08-27 12:01:13 +00:00
Claudiu Belu
b1f50df3b1 Avoids calling ffi.dlopen(None) on Windows
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
2018-08-19 10:42:55 -07:00
Zuul
b033057372 Merge "add python 3.6 unit test job" 2018-08-13 06:37:56 +00:00
Doug Hellmann
dbb2be1c37 add lib-forward-testing-python3 test job
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
2018-08-11 18:20:15 -04:00
Doug Hellmann
c54ee39d2a add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 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: I0a868661a55b43ab59b505a373006c9a4c685ace
Story: #2002586
Task: #24322
2018-08-07 16:17:35 -04:00
Zuul
5d5a71f73a Merge "import zuul job settings from project-config" 2018-08-07 17:44:25 +00:00
wangqi
b9a644a5af Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.

Change-Id: Ib8abb0b9f7e02b71e294ed8a15c994874e77d53d
2018-08-07 05:56:11 +00:00
Doug Hellmann
616c62df79 import zuul job settings from project-config
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
2018-08-03 17:45:31 -04:00
Zuul
e3bb70fa17 Merge "Add that 'Release Notes' in README" 2018-08-03 12:27:33 +00:00
shupeng
52864742ca Add that 'Release Notes' in README
Change-Id: Ic1b4c92bab6474a7b07a867906e287039fe3e2cb
2018-08-03 11:46:17 +00:00
aea141ed58 Update reno for stable/rocky
Change-Id: Idfbeb3d9918304467d6d9d714b6327f3f502945c
2018-07-26 12:39:26 +00:00
Vu Cong Tuan
58ecafb104 Switch to stestr
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
2018-07-03 16:09:28 +07:00
Zuul
a5cfe50464 Merge "fix tox python3 overrides" 2018-06-07 10:54:42 +00:00
Doug Hellmann
8b24f73506 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: Ib592f5d76510dcb3303e954307066675838d58b8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 14:53:49 -04:00
Cédric Jeanneret
1117ac92c0 Added example blogposts
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
2018-06-06 07:15:13 +02:00
melissaml
bb0c7cb331 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: I93e71fa3bc447ff238633f938dc7cf93e9e22f05
2018-04-21 10:53:58 +08:00
Zuul
d510207740 Merge "set default python to python3" 1.29.0 2018-04-17 15:31:53 +00:00
Zuul
4ca3c98885 Merge "fix lower constraints and uncap eventlet" 2018-04-16 17:26:26 +00:00
Doug Hellmann
8e7936bf1e set default python to python3
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>
2018-04-13 16:03:45 -04:00
Doug Hellmann
d5d486faed fix lower constraints and uncap eventlet
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>
2018-04-12 14:33:57 -04:00
Pavlo Shchelokovskyy
ec396082c9 Skip unit tests in bandit scan
no need to enforce security for unit tests, they are not being run in
production installations.

Change-Id: Ib03d5b4b9c14cbfd9dca9a97db883d989b93e654
2018-04-12 17:08:42 +03:00
Doug Hellmann
682cc92aa7 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.

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>
2018-03-24 21:02:44 -04:00
OpenStack Proposal Bot
e89c12fbb4 Updated from global requirements
Change-Id: Id9bfc06b7d977f2b4b331eac203670cce8680b2e
2018-03-15 07:50:02 +00:00
OpenStack Proposal Bot
77c463a483 Updated from global requirements
Change-Id: I4914d38b06aa554c8c6d4f2a66c4e208f4639674
1.28.0
2018-03-10 13:43:27 +00:00