399 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
e735fd1cbd Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I5cf17c569f01d44570b459bec0b6d0230d4ad987
2015-09-16 18:41:58 +00:00
Jenkins
24cf100546 Merge "Use int enumerations for log error constants" 2015-09-14 19:09:30 +00:00
Joshua Harlow
ed7472e954 Use int enumerations for log error constants
Change-Id: Iac6f4d860c220c653bbae17e7b1d69249259bd88
2015-09-01 12:49:08 -07:00
Claudiu Belu
efb6c06557 Removes unused posix-ipc requirement
Change-Id: I5602fdd7b9d864853bcfec27abb88113e807b0af
2.6.0
2015-09-01 13:03:19 +00:00
OpenStack Proposal Bot
2d1164a3e3 Updated from global requirements
Change-Id: I25cf2d4388417f512fe08419c0df9f8bc112b461
2015-08-27 04:18:02 +00:00
OpenStack Proposal Bot
53d8389d0a Updated from global requirements
Change-Id: Ib7a6ce3f5ee766d8776f3a7c623aa6b1a8d3c065
2015-08-26 14:05:00 +00:00
Jenkins
03df698990 Merge "Use oslo_utils reflection to get 'f' callable name" 2.5.0 2015-08-17 18:10:41 +00:00
OpenStack Proposal Bot
6564190574 Updated from global requirements
Change-Id: I8a8413e63f09d789eb9fbb1b070b381ef69cf847
2015-08-13 20:20:52 +00:00
OpenStack Proposal Bot
fc3f3cd54a Updated from global requirements
Change-Id: If20d0f6296fe568630349954abdd1085be6f44d9
2015-08-11 22:16:53 +00:00
Joshua Harlow
3aaa63986c Use oslo_utils reflection to get 'f' callable name
Using the utility function gets a better name.

For example:

$ python

>>> from oslo_utils import reflection
>>> class A(object):
...   def m(self):
...     pass
... 
>>> z = A()
>>> reflection.get_callable_name(z.m)
'__main__.A.m'

Versus:

>>> z.m.__name__
'm'

Change-Id: I2daadd969383aaf49ad87876ba108dd80dd56f08
2015-08-09 00:07:41 +00:00
Davanum Srinivas
ca1a4c217a flake8 - remove unused rules
Change-Id: Icbf1ddd8d9d6c8b24a9938f3d31a59ea70360074
2015-08-08 11:37:30 +00:00
OpenStack Proposal Bot
4ff6635921 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I744b48292f4f901a9dee474d315d7cb67317a8f1
2015-08-04 06:27:25 +00:00
OpenStack Proposal Bot
9febe3030b Updated from global requirements
Change-Id: If90f38b24af03f43e91628b0352524ae68a0b86b
2015-08-04 00:48:08 +00:00
OpenStack Proposal Bot
23abc338c6 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie1a5b5af32177f7123cf26ca2ac18b3c611798b4
2.4.0
2015-07-29 06:35:32 +00:00
OpenStack Proposal Bot
bd9a786797 Updated from global requirements
Change-Id: I257f5f78f99ede0a8727aab0549f470e08dc19c5
2015-07-29 03:49:49 +00:00
OpenStack Proposal Bot
c45851966f Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Id5193f5afae859b80b86b8f50d74639f3e2d9943
2015-07-23 06:11:00 +00:00
OpenStack Proposal Bot
d23ce719f4 Updated from global requirements
Change-Id: Ibbaa894ed43aadca48bffead45aade251bb0f5e8
2015-07-15 01:36:25 +00:00
OpenStack Proposal Bot
2c3a8aa89b Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I4ba9650070f96bacddbb05d99fae01768c949b0d
2.3.0
2015-07-09 06:14:26 +00:00
Davanum Srinivas
36fb964f0c Allow preexec_fn method for processutils.execute
If the user specifies preexec_fn, we should call that in
our existing _subprocess_setup. On windows, we silently
drop this preexec_fn as subprocess.Popen raises a ValueError
if we do pass it in.

Change-Id: I0176c66fa2de001aa14f0d928d06fd894de55511
2015-07-07 10:12:58 -07:00
OpenStack Proposal Bot
45ff557138 Updated from global requirements
Change-Id: I37b00f173bc67c3cedc39347b09835ff628334cd
2015-07-07 09:36:59 +00:00
Jenkins
7243f58810 Merge "processutils: ensure on_completion callback is always called" 2015-07-06 21:22:17 +00:00
Dirk Mueller
43722464b5 Use pypi name for requirements.txt
posix-ipc is an alias of the actual pypi name posix_ipc.

Change-Id: I1bf767dd0592a3c2e38e0fbf47344b692885e85e
2015-07-03 14:17:17 +02:00
Daniel P. Berrange
ab78480659 processutils: ensure on_completion callback is always called
If the subprocess.Popen.communicate method raises an exception,
the on_completion callback is never invoked. If a caller is
trying to use on_execute + on_completion to track lifecycle
of a process this creates a problem, as they cannot reliably
detect completion.

Change-Id: I22b2d7bde8797276f7670bc289d915dab5122481
Closes-bug: #1470868
2015-07-02 17:34:57 +01:00
OpenStack Proposal Bot
bc0235eb97 Updated from global requirements
Change-Id: I3a02320dd5ebaef8b324e5851053cdf50d373031
2015-06-30 20:02:06 +00:00
Jenkins
180b53b16e Merge "Add tox target to find missing requirements" 2015-06-30 19:05:27 +00:00
Steve Martinelli
e29cc549e1 Remove redundant fileutils
fileutils no longer seems to be used, remove it instead of
carrying it around.

Change-Id: Idac62aa3dbf1d6897f1b7405b094cab0f9f79912
2015-06-30 13:46:16 +00:00
Davanum Srinivas
eecaaeddaa Add tox target to find missing requirements
Change-Id: I2cfa6c2f5f763d710b2ac2f07bdf5aa80bc4a408
2015-06-26 07:18:38 -04:00
Jenkins
5f5bc73049 Merge "Ensure we 'join' on the timer watchdog thread" 2.2.0 2015-06-24 17:17:20 +00:00
Jenkins
c7bf8ee266 Merge "Use better timing mechanisms instead of time.time()" 2015-06-24 11:53:31 +00:00
OpenStack Proposal Bot
f93aeed9dd Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I4134d26d2459671b64c7d6f5f5976596bb791d2d
2.1.0
2015-06-23 06:14:54 +00:00
OpenStack Proposal Bot
df3a3004f5 Updated from global requirements
Change-Id: Ic56900bb1edb1010ed91902e6ca1906b864bdee3
2015-06-22 19:59:36 +00:00
Joshua Harlow
68a82f29f1 Ensure we 'join' on the timer watchdog thread
This object is just another thread and its cancel method
does not join on itself, so we should make sure that we do
to avoid leaving threads lying around.

Change-Id: I37e3170b58627dee93513ec222f9a55001389dad
2015-06-22 17:35:13 +00:00
Joshua Harlow
a0fabfc688 Use better timing mechanisms instead of time.time()
To ensure we show accurate timing information about
lock acqusition and release times use a timing mechanism
which can not/should not move backwards.

Change-Id: I9559b20cf7de67fc474e6e17eda23791ecc4122e
2015-06-22 10:34:30 -07:00
Jenkins
2fc22f9a30 Merge "Fix LockFixture docstring" 2015-06-22 13:37:29 +00:00
OpenStack Proposal Bot
2db9a21426 Updated from global requirements
Change-Id: I1c2882ec6c9b99aa3c4d5d371f8649522968a913
2015-06-22 08:26:55 +00:00
Jenkins
68929efcad Merge "Add 2 callbacks to processutils.execute()" 2015-06-17 09:13:33 +00:00
Tony Breeds
d8307005bf Add 2 callbacks to processutils.execute()
Add optional on_execute and on_completion callbacks to allow callers of
procesutils.execute() to track process completion asynchronously.

This could be used to cache the pid of long running tasks associated
with an instance and then clear the cache when the process completes.
While the tasks are running should it be required the pid retrieved and
the process can be signaled.

Co-Authored-By: abhishekkekane <abhishek.kekane@nttdata.com>
Change-Id: Ifc23325eddb523f6449ba06a2deb0885a8a7009d
2015-06-17 10:39:36 +10:00
OpenStack Proposal Bot
40f9025d0c Updated from global requirements
Change-Id: I4d8b1ed23ed96aa3c1a5df687f2661bca493b0c4
2015-06-16 19:22:12 +00:00
IWAMOTO Toshihiro
98c3227f91 Fix LockFixture docstring
Fixtures.useFixture takes a class instance, not a class type.

Change-Id: I48fff3f1a25b28e9ba15f79cbe18ea4c9582bd5c
2015-06-16 18:16:45 +09:00
Jenkins
4ac9247be5 Merge "Switch badges from 'pypip.in' to 'shields.io'" 2015-06-15 17:24:45 +00:00
OpenStack Proposal Bot
b0033d87bb Updated from global requirements
Change-Id: If678cb0796df57154d5f2c7812772ee2a1958d73
2015-06-15 03:12:09 +00:00
Joshua Harlow
fce7ef460d Switch badges from 'pypip.in' to 'shields.io'
The badge hosting at 'pypip.in' has been broken for a while
now, it was supposed to be fixed in the following PR(s):

- https://github.com/badges/pypipins/issues/39
- https://github.com/badges/pypipins/issues/38
- https://github.com/badges/pypipins/issues/37

That does not appear to have actually happened and/or is not
getting addressed, so switch to a more reliable badge hosting
site that provides the same badge information.

Change-Id: Ie327176665d286d22c84fa826a9be905c8a5f29d
2015-06-11 20:39:32 -07:00
OpenStack Proposal Bot
d6b9ed2def Updated from global requirements
Change-Id: I9dc5573004a6ee3648ab64b2fefe769c69ae8fbc
2015-06-10 23:49:28 +00:00
Joshua Harlow
9f22c45397 Replace locks and replace with fasteners library provides ones
The fasteners library (extracted from this library and a couple other
variations) provides the interprocess lock logic and the reader writer
lock logic so we can remove the local version and we can just use it
from that library instead.

The tests that were ensuring the internals of this file lock have
now moved to the repo where that library is (for the time being),
currently travis is testing that repo against py2.6, py2.7 and py3.4.

https://github.com/harlowja/fasteners/tree/master/fasteners/tests

Docs also exist at:

http://fasteners.readthedocs.org/en/latest/

Change-Id: I98565b22e68358efe28fea62f74f8ebfcc438ff7
2015-06-06 00:44:22 +00:00
Jenkins
ff18c14e5d Merge "Remove oslo namespace package" 2.0.0 2015-06-04 23:19:56 +00:00
Doug Hellmann
b9e8f9f9ae Remove oslo namespace package
Blueprint remove-namespace-packages

Depends-on: Iae62b48993eef3b31420f8cc245a55f5e303c4fc
Depends-on: If927fc7d70c625faa072dc8905a7e044f08aad33
both for designate

Change-Id: I60ac791560c49514d3a25e2b58b39a12d3da5d00
2015-05-29 19:16:00 +00:00
OpenStack Proposal Bot
9a963a9555 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I1482778ae774059867d06e0a40bbbbeb7c70fe5f
1.10.0
2015-05-28 06:05:57 +00:00
Davanum Srinivas
b01e2a9cc8 Sync from oslo-incubator
Copy fileutils.py changes from change id(s):
I369226f619895299c62f22a1debd0d4d120c912d
I7decb7bf5f3185f7d26ad99b0cb3475a88d3ec99

Also fix the openstack-common.conf to the correct package name

Change-Id: Ic77262bf94408395e720490264bcf7022461fe4d
2015-05-16 16:00:51 -04:00
Jenkins
bf419a381f Merge "Updated from global requirements" 2015-05-12 03:14:22 +00:00
OpenStack Proposal Bot
24033d3cd9 Updated from global requirements
Change-Id: I30118c812f7bdeca984301a35d620e5ddb621064
2015-05-11 14:03:20 +00:00