| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The built in 'resource' module is used in order to apply process
resource limits. This is not available on Windows.
For the moment, we'll ignore this argument and log a warning
message. In the future, we may provide a portable implementation
for this feature.
Change-Id: I6a82916eb68fbf8737b45a65f71cae1f835d12d1
Closes-Bug: #1627766
(cherry picked from commit 9ac99b675eae255b660b03d3a1e61599d09f8316)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original commit adding support for process limits only wired
up address space, max files and resident set size limits. This
is not sufficient to enable nova to protect qemu-img commands
against malicious images.
This commit adds support for the remaining limits supported
by python: core file size, cpu time, data size, file size,
locked memory size, max processes and stack size.
Related-bug: #1449062
Change-Id: I164c4b35e1357a0f80ed7fe00a7ae8f49df92e31
(cherry picked from commit 8af826953d1ad2cab2ecf360e0c794de70a367c3)
|
|
|
|
| |
Change-Id: Ic6cf38f038e73ecfd628787bfe7b18ef6766d1f5
|
|
|
|
| |
Change-Id: I75291c595d1ba84b6d899788981474e958477e38
|
|
|
|
| |
Change-Id: I92c636228a83b1dbf54558b1a65a71bf36a59d2f
|
|
|
|
| |
Change-Id: I8e64fac1066db44ba612c9b24bd841fa5698d309
|
|
|
|
| |
Change-Id: I535d094e5097b3b20cba25828df860f643b84fa4
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Serialising/deserialising exceptions in python follows the protocol
defined by pickle. It relies on the base Exception.__init__ setting
self.args, and later resurrects exceptions with class(*args).
This change rewrites processutils.ProcessExecutionError so it survives a
pickle.dumps/loads round-trip.
Change-Id: I9b8d104f60df868be7b808c72c932d08f1752777
|
|/
|
|
| |
Change-Id: I34f0b21afc4eba3a2503e3021ac121180d588948
|
|
|
|
| |
Change-Id: Ibeffb23a0ef4f94d2f8f18f2fdebb491f88b3943
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a new oslo_concurrency.prlimit module which is written to be used
on the command line:
python -m oslo_concurrency.prlimit --rss=RSS -- program arg1 ...
This module calls setrlimit() to restrict the resources and then
executes the program. Its command line is written to be the same than
the Linux prlimit system program.
Add a new ProcessLimits class processutils: resource limits on a
process.
Add an optional prlimit parameter to process_utils.execute(). If the
parameter is used, wrap the command through the new oslo_concurrency
prlimit wrapper.
Linux provides a prlimit command line tool which implements the same
feature (and even more), but it requires util-linux v2.21, and
OpenStack targets other operating systems like Solaris and FreeBSD.
Change-Id: Ib40aa62958ab9c157a2bd51d7ff3edb445556285
Related-Bug: 1449062
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.
This basically renames
oslo.concurrency/locale/oslo.concurrency.pot to
oslo_concurrency/locale/oslo_concurrency.pot. For this we need to update
setup.cfg.
Update also domain name in i18n.py.
Change-Id: Ie774c4252f8481f2541ed0a2cad565d149dfcc72
|
|
|
|
| |
Change-Id: I5d9484bae360143185fe6efbc2633ce9b01614b1
|
|
|
|
| |
Change-Id: I3396829a7b7d3c31e6cae816aefca222d1048cbc
|
|
|
|
| |
Change-Id: I26110041758b218b7ce93c884082042019ee1d0e
|
|
|
|
| |
Change-Id: Ia560a40275adf735f529c29c7ced64003ca2709b
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I0302364cb544b7e94ddb3f4f314ff0975a5b8ff2
|
|/
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I42faa1a3e1c6119c33301d83a64000dc32dceb9e
|
|
|
|
|
|
|
|
| |
We don't need two entries as fixtures is under oslo_concurrency
Hat Tip to @clarkb
Change-Id: Ifb2b5b761ec3832de42beaf0505510d30251efba
|
|
|
|
| |
Change-Id: Ie68b9a373cc0ed970cb4fd5c1b2dbe5a3914b47d
|
|
|
|
| |
Change-Id: Ie5b9073721623f11d6adebd1bdf769383a88bde5
|
|
|
|
| |
Change-Id: I5541e38ad5c9f9c23526b39798eedbf79004ff77
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Everything in this file is automatically generated by pbr. There
appears to be no good reason to keep it around.
Change-Id: I830530b18ff4c7cc87e8beb740d11808cca6683b
|
| |
| |
| |
| | |
Change-Id: I2f5de70cc6086af4b74c8c5a1266d06c60728a9d
|
|/
|
|
|
|
|
|
|
|
|
|
| |
It seems we provide (and projects use) the provided decorator
'synchronized_with_prefix' but we don't provide an equivalent function
to complement that function to clean up its created lock files.
Providing a complementary method seems pretty useful for projects
that actually clean up these lock files (if any actually do in the
first place).
Change-Id: I601ce3992411e6a2ddded13aba4ac068cf8f14e2
|
|
|
|
| |
Change-Id: I921e29d25e0cfb089028f780bc942a60c9712278
|
|
|
|
| |
Change-Id: I531dd958b014b614b567b53826748073a9fb37e6
|
|
|
|
| |
Change-Id: I5658b3ff8b7ec0c9556a1b368f532fe07c4e1f60
|
|
|
|
| |
Change-Id: I58d2d5717a6ea1823a3c7651eb0d67ac7407c165
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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: I5c4addd8be5797fec439b011d99c00a7801704cd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Document in which version new types and functions were added using
".. versionadded:: x.y". Document changes using
".. versionchanged:: x.y."
For watchdog module, add the versionadded tag in the module top
docstring, not on each type/function.
Add docstring to ssh_execute().
I used "git blame" + "git tag --contains=SHA1" to find these version,
and then I checked manually each version.
Change-Id: I56a7d8a4335833e9b49eedab026d20adfeedf942
|
|
|
|
| |
Change-Id: I1c0877c5a80b1ac657103a8445dc7789cda3c5e7
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: Ibc27f809c8c1e7a7aa2e3c05c8a8660320c10f27
|
|
|
|
| |
Change-Id: Id263a4dcd9bf5a4e870d93a7adcd0a7b0d609ee6
|
|
|
|
| |
Change-Id: Icce6e2e54276c253eb3bbb678a9154c5d125afaf
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I700b6de69411330b2a0fd8f2cdafa4026f85f1c7
|
|/
|
|
|
|
|
|
|
|
| |
A number of configuration errors prevent the successful creation of code
coverage. This corrects the .coveragerc source/omit setup and the tox
package name generation.
http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html
Change-Id: If85385ac8b0817e9e5d167940ace37e733cacd41
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I7d65353af7de58234ff6ac06a5374dcc379475d8
|
|
|
|
|
|
|
|
| |
This seems to better match what the other oslo
libraries are calling this section, so we might as
well call it that to.
Change-Id: I4a486d0ca61f81413ea398d5955b4027d66ce360
|
|
|
|
|
|
|
| |
Add automatically generated documentation for the configuration options
using oslo_config.sphinxext.
Change-Id: If7eb94b268bb82e0fcfbac9dfd231ea25ff53b24
|
|
|
|
|
|
| |
Needed for coverage 4.0
Change-Id: If3bca5810ef046a7e8bb984945eb9c70a1ea27b1
|
|
|
|
| |
Change-Id: Ibfbd714bf5b90faf19950423e5dff1219571d511
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I5cf17c569f01d44570b459bec0b6d0230d4ad987
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Iac6f4d860c220c653bbae17e7b1d69249259bd88
|