Commit Graph

166 Commits

Author SHA1 Message Date
Andreas Jaeger ccd2d839eb Retire repo
This repo was created by accident, use deb-python-oslo.rootwrap
instead.

Needed-By: I1ac1a06931c8b6dd7c2e73620a0302c29e605f03
Change-Id: I81894aea69b9d09b0977039623c26781093a397a
2017-04-17 19:39:29 +02:00
yan.haifeng a46b731c8a Fix parameters of assertEqual are misplaced
Many assertEqual sentences don't follow assertEqual(expected, actual),
These misplaces have 2 impacts:
1, giving confusing messages when some tests failed.
2, mislead other developers, new test modules may follow these wrong pattern.

This patch fix all of them.

Change-Id: I4adfc98d6eecd5ea117d725775b2476b237212d9
Closes-Bug: #1604213
2016-08-02 14:25:52 +08:00
Sean Dague 37c2a041d3 always allow privsep-helper as a command
To support the seamless transition from oslo.rootwrap to oslo.privsep
across multiple projects: nova, neutron, cinder, and libraries os-vif,
os-brick we need to be able to execute privsep-helper as root from
rootwrap.

Rootwrap's use of etc (by default) for rules makes the upgrade path
very manual for operators. Given that every project is going to add
the same privsep-helper rule at some point over the next few cycles,
instead of making every project have to have a manual update process,
we just whitelist privsep-helper. This will immediately make it
available for all, and upgrades become far more seamless.

Change-Id: If8b60f2d671b9d12c58226019d787917efaedd9c
2016-07-20 15:56:31 -07:00
Yatin Kumbhare 5e5ed2e133 Add Python 3.5 classifier and venv
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: I7c1ce52e6d1427e797d4a002d0ee0543e11dd92b
2016-07-12 17:01:41 +05:30
OpenStack Proposal Bot 3a70d2ead1 Updated from global requirements
Change-Id: Ia4c6330cf6bd02e670b07e92353cf9559fa57637
2016-06-21 18:04:35 +00:00
OpenStack Proposal Bot 7ec1e73d6a Updated from global requirements
Change-Id: I39aadb58d8c75746d33cec62d7742415b92a1b68
2016-06-02 21:10:45 +00:00
OpenStack Proposal Bot cba9437bb2 Updated from global requirements
Change-Id: I7c5c5becf142b298bca604bcadeff64eee388511
2016-04-08 00:32:18 +00:00
OpenStack Proposal Bot 8e069b0cce Updated from global requirements
Change-Id: I0e54266218df3e5cf36d91a9c95be4350d7f6ae8
2016-02-19 18:55:44 +00:00
OpenStack Proposal Bot 5b0824e249 Updated from global requirements
Change-Id: Ib252e56cc056397ac4f48c6f1199846a299983d4
2016-02-11 07:43:48 +00:00
Ronald Bradford 6d104a3b41 Remove unused use-syslog-rfc-format option
Remove this option that appears ignored. For reference by similar name
only, this option is marked as deprecated and to be removed from oslo.log
in Mitaka. Refer to I9b77899fe437d359df2a15961866b194b564ca48.

Change-Id: I9a97b53d829a9ca6b92ee4b545f616a3bc5b25be
2016-02-04 18:37:40 +00:00
OpenStack Proposal Bot 22afa47ca7 Updated from global requirements
Change-Id: I453c08ffabab010db2a0fe1fba8071e262d334c5
2016-01-24 20:53:09 +00:00
OpenStack Proposal Bot 5965f979f3 Updated from global requirements
Change-Id: Ic0a5b3e29102579b8ed5bc85f2e64a7c597c982a
2016-01-16 03:31:25 +00:00
sonu.kumar 1fcd643f04 Removes MANIFEST.in as it is not needed explicitely by PBR
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.

Change-Id: Ib17ef621f8d71940d49aec4d9e0ca0eee9d91fca
2015-12-10 16:09:03 +05:30
ChangBo Guo(gcb) c644308296 Drop python 2.6 support
* Use weakref.WeakSet
* Use memoryview
* Allow test_graceful_death for eventlet

Change-Id: I46651c2e84e2ef0057d338841bf4981e61cdc257
2015-11-26 21:00:29 +08:00
OpenStack Proposal Bot 10b425ada9 Updated from global requirements
Change-Id: I34854b72ac27502030663d86878b734ba8118204
2015-11-19 15:51:48 +00:00
ChangBo Guo(gcb) fc2f47490e Remove python 2.6 classifier
Change-Id: I4adadfe3d16400d461ebd8fee34b713577d2e248
2015-11-17 15:00:59 +08:00
Davanum Srinivas bdbe0111cd Remove python 2.6 and cleanup tox.ini
* Remove support for python 2.6
* Remove skipsdist : Needs to be set only if 
  sdist is expensive
* Remove usedevelop : only needed when skipsdist 
  is set to True
* Remove install_command : We can just use the 
  default, we don't need to override
* Remove setenv : We can just use the default as
  we don't need any extra environment variables
* Remove requirements.txt from deps, as this is
  already added automatically


Change-Id: I5defad3ba70eac774a01b2137abbffcd812cd0d5
2015-11-16 00:16:47 +00:00
fumihiko kakuma a1725700ab Python 3: encode or decode i/o data of Popen.communicate()
In Python 3, input and output for Popen.communicate() is bytes type.
Therefore, encode input data and decode return data for Popen.communicate().

Change-Id: Id6d85eea4c771ac9756ef08ba80ebc09005fcc3e
Related Change-Id: I70f009e3366f0eeda5790652ea14f3627b934664
2015-10-19 14:02:52 +09:00
Victor Stinner 31cfdbd407 Fix Python 3 support for eventlet monkey-patching
Use eventlet.green.subprocess if eventlet is used and enable eventlet
tests on Python 3.

This change adds oslo_rootwrap.subprocess which is
eventlet.green.subprocess if eventlet monkey-patching is enabled or
if the TEST_EVENTLET environment variable is set, or subprocess of
the Python standard library otherwise.

When eventlet is used (with monkey-patching or not), it's more
reliable to use eventlet.green.subprocess instead of using directly
subprocess from the Python standard library.

On Python 2, it "works" to use directly subprocess: subprocess.Popen
calls os.pipe() and os.fdopen(fd) which are both monkey-patched. On
Python 3, it doesn't work because subprocess uses os.pipe() and
io.open(fd), and the io module is *not* monkey-patched at all.

Change-Id: Ib859bebe52612b35f0f1f53aedf76222683795e7
2015-10-13 21:51:47 +02:00
Victor Stinner 6f424f73cd Fix Python 3 issues in tests
* get StringIO from six.StringIO to support Python 2 and Python 3
* Replace "__builtin__.open" with "six.moves.builtins.open" to mock
  open()
* Workaround a Python 3.4.0 regression: get the log level directly
  from logging._nameToLevel instead of using logging.getLevelName().

Replace Python 3.3 with Python 3.4:

* tox.ini: replace py33 test environment with py34
* setup.cfg: replace "Programming Language :: Python :: 3.3"
  classifier with "Programming Language :: Python :: 3.4"

Change-Id: Ied495f5867f47eee57b64ab35c0423913ee17d6e
2015-10-12 10:07:53 +02:00
Davanum Srinivas 38e738e313 No need for Oslo Incubator Sync
We can remove openstack-common.conf as we don't
sync any code from oslo-incubator any more.

Change-Id: Iade4382e50a60186b67b09273918e529c51baa09
2015-10-04 19:40:10 -04:00
Jenkins fd421602d4 Merge "Python 3: Don't use BaseException.message attribute" 2015-10-04 23:19:53 +00:00
Doug Hellmann 1334f3e9ec move usage instructions into main docs
Pare down the readme by moving most of the usage instructions into the
main documentation. Clean up the results so they render nicely.

Remove the duplicate copy of those instructions by removing
doc/source/readme.rst.

Fix up the documentation and readme titles to make them consistent.

Change-Id: I63f711bb28f3003d7b991d1526fd4b373b530143
2015-09-25 17:50:47 -04:00
Jenkins 09f93a5165 Merge "docs - Set pbr 'warnerrors' option for doc build" 2015-09-25 19:57:56 +00:00
Davanum Srinivas d2282acf42 docs - Set pbr 'warnerrors' option for doc build
By setting this pbr option in setup.cfg, the doc build will fail in case
of any warnings or errors occur during the build process.

Change-Id: Idc4a670f019a399d7bfee1c4431f29ce396c0c23
2015-09-24 21:46:09 -04:00
Davanum Srinivas 68d4d7dc0a Add shields.io version/downloads links/badges into README.rst
Change-Id: Iba6e6bd98d0c92b9e4dfb03098f703db96936ed6
2015-09-24 20:53:36 -04:00
Jenkins 33fce42868 Merge "add pbr-generated release history to the documentation" 2015-09-24 23:47:25 +00:00
Doug Hellmann 2c7661fa34 add pbr-generated release history to the documentation
Change-Id: I8444a86b284739b5eb8e83cff09e7840fbe72452
2015-09-24 20:25:02 +00:00
Zhao Lei 1c5842fa30 Fix some spelling typo in manual
explicitely -> explicitly
priviledges -> privileges
for README.rst

Plus some source comment fix.

Change-Id: Ibbe08d01e0cd380604fbd43786c8adb0ac9765f1
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
2015-09-24 17:53:40 +08:00
OpenStack Proposal Bot 5c5d58ec89 Updated from global requirements
Change-Id: Ide59b4239bc74c202b1cc3078752f448ebf782fe
2015-09-17 12:16:11 +00:00
fumihiko kakuma 6af1b2178f Python 3: Don't use BaseException.message attribute
In Python 3, BaseException.message is removed.
So we use args attribute instead.

Change-Id: I8f97c0b0452f348acef20e9d248f02b83cec2562
2015-08-26 16:40:42 +09:00
Pádraig Brady e5f9a393ce Handle renamed executables with KillFilter
A running process may refer to a renamed executable
referenced by /proc/$pid/exe, which happens with
updated executables on RPM based systems.
In that case we defer to the path in /proc/$pid/cmdline
if it exists.

Change-Id: I113f2f8ebd56f3b05c420310c4b1e84ba6f17fcf
Closes-Bug: 1482316
2015-08-18 15:33:14 -07:00
OpenStack Proposal Bot 6775cdf26a Updated from global requirements
Change-Id: Ie21126c60fce195967598622a0290f454660a103
2015-08-04 00:48:26 +00:00
OpenStack Proposal Bot a7926af494 Updated from global requirements
Change-Id: I1368c1896bd62a9d5fb9d7d1a23522635d9958d0
2015-07-29 03:50:06 +00:00
OpenStack Proposal Bot 0174d73fed Updated from global requirements
Change-Id: I97fdea06b8d27807de66aeea8a23e81f39a694d5
2015-07-22 04:59:07 +00:00
OpenStack Proposal Bot 0620403562 Updated from global requirements
Change-Id: Iea42750cda396cafe32bc018176983ec61add739
2015-07-17 16:17:03 +00:00
OpenStack Proposal Bot 2458ab2c36 Updated from global requirements
Change-Id: I6d2e53a38da7e34ef1b94a917cd2405295d79fd9
2015-07-15 01:36:43 +00:00
OpenStack Proposal Bot c532fc8182 Updated from global requirements
Change-Id: I8196b8de6464bacce539c4b15cfd044ff69eb9a9
2015-07-12 15:21:38 +00:00
OpenStack Proposal Bot abf1b8b594 Updated from global requirements
Change-Id: I98a0fa63acdb892a98331882192595794c4adeef
2015-07-02 13:46:32 +03:00
Yuriy Taraday 97b936debc Remove test-requirements-py3.txt
eventlet is already available for Python 3.x so no reason to
keep requirements for Python 3.x special.

This should also fix failing I98a0fa6.

Change-Id: Ib56f93f6749846c730c9a765217f3d15df4a6971
2015-07-01 22:59:43 +03:00
Jenkins ed34fada9a Merge "Add tox target to find missing requirements" 2015-06-30 01:14:37 +00:00
Davanum Srinivas 143030e2fd Add tox target to find missing requirements
Change-Id: If202cafb98b4f5f339f16ac4a03fba3d5f4fdff9
2015-06-26 07:31:57 -04:00
Jenkins 62ea46f625 Merge "daemon: avoid raising UnboundLocalError to callers" 2015-06-25 13:31:25 +00:00
Ihar Hrachyshka e0bf7767da daemon: avoid raising UnboundLocalError to callers
If something in the daemon_start() function fails before server variable
is initialized, we get the following exception:

UnboundLocalError: local variable 'server' referenced before assignment

We should not attempt to close connections or kill all threads for a
daemon that failed to start (or that hasn't even reached the moment of
the start).

Closes-Bug: #1465350
Change-Id: I7769e40c13e3bd740d5b8a949a61d1bcc127f137
2015-06-23 13:21:12 +02:00
OpenStack Proposal Bot aabd9196bb Updated from global requirements
Change-Id: Ifcdb7a7226238aa3d61e11454466e2c8ff43e995
2015-06-22 19:59:50 +00:00
Jenkins 6d6639eee3 Merge "Updated from global requirements" 2015-06-22 12:49:52 +00:00
OpenStack Proposal Bot f34ee8a3f5 Updated from global requirements
Change-Id: Ied82c59bcd5f2766f497da35990cf5eca5dc9617
2015-06-22 08:27:14 +00:00
Jakub Libosvar 29f46a4a15 Log that rootwrap was spawned after check
If rootwrap daemon fails to spawn then it's still logged as if it was
spawned due to process is wrapped by sudo that is actually spawned. That
is confusing when debugging. This patch moves the logging message after
it's re-checked whether process was actually spawned.

Change-Id: I1b60e727e5dc90335dabf96877a60e685b7e9a2d
2015-06-19 16:08:19 +02:00
Jenkins 293def2d23 Merge "Remove oslo namespace package" 2015-06-03 15:36:25 +00:00
Jenkins 2335e634f2 Merge "Remove run_cross_tests.sh" 2015-05-13 20:08:21 +00:00