nova/nova
Daniel P. Berrange c8ec9ebf37 virt: set address space & CPU time limits when running qemu-img
This uses the new 'prlimit' parameter for oslo.concurrency execute
method, to set an address space limit of 1GB and CPU time limit
of 2 seconds, when running qemu-img.

This is a re-implementation of the previously reverted commit

commit da217205f5
Author: Tristan Cacqueray <tdecacqu@redhat.com>
Date:   Wed Aug 5 17:17:04 2015 +0000

    virt: Use preexec_fn to ulimit qemu-img info call

NOTE(mriedem): The backport depends on raising the minimum
required oslo.concurrency>=3.7.1 which contains the prlimits
fix for this change, the code fails without it.

Depends-on: I157a6fc88836da73814ae46c8991ddefc5066c96
Closes-Bug: #1449062
Change-Id: I135b5242af1bfdcb0ea09a6fcda21fc03a6fbe7d
(cherry picked from commit 068d851561)
2016-06-10 17:21:27 -04:00
..
CA
api Merge "Added validation for rescue image ref" into stable/mitaka 2016-06-09 05:50:55 +00:00
cells Unavailable hosts have no resources for use 2016-05-31 09:16:03 -07:00
cert Move config options from nova/cert directory 2016-01-14 22:22:34 +00:00
cloudpipe Remove Deprecated EC2 and ObjectStore impl/tests 2016-01-08 06:30:20 -05:00
cmd Fail to start nova-api if no APIs were able to be started 2016-05-03 14:19:53 -04:00
common Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
compute Merge "Revert "Optimize _cleanup_incomplete_migrations periodic task"" into stable/mitaka 2016-06-09 05:04:19 +00:00
conductor Stop providing force_hosts to the scheduler for move ops 2016-03-25 20:35:28 +00:00
conf Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
console Fix invalid import order 2016-01-20 05:03:41 -08:00
consoleauth Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
db Archive instance_actions and instance_actions_event 2016-06-07 21:16:15 +00:00
hacking Hacking: check for deprecated os.popen() 2016-02-19 21:55:20 -02:00
image Fix retry mechanism for generator results 2016-03-21 14:37:22 +00:00
ipv6
keymgr Migrate from keystoneclient to keystoneauth 2016-01-28 10:55:29 -06:00
locale Imported Translations from Zanata 2016-04-26 07:10:04 +00:00
mks
network Only reset dns_name when unbinding port if DNS is integrated 2016-05-03 22:43:19 -04:00
objects Stop providing force_hosts to the scheduler for move ops 2016-03-25 20:35:28 +00:00
openstack Use imageutils from oslo.utils 2016-02-16 18:34:43 +08:00
pci libvirt: implement LibvirtConfigGuestInterface.parse_dom 2016-02-09 09:26:25 -08:00
rdp
scheduler Merge "Make force_ and ignore_hosts comparisons case insensitive" 2016-03-10 16:57:13 +00:00
servicegroup Add service binary/host to service is down log for context 2016-02-26 12:57:57 -05:00
spice
tests virt: set address space & CPU time limits when running qemu-img 2016-06-10 17:21:27 -04:00
virt virt: set address space & CPU time limits when running qemu-img 2016-06-10 17:21:27 -04:00
vnc config options: Centralise 'vnc' options 2016-02-03 13:36:20 +00:00
volume Check if a exception has a code on it before read the code 2016-04-09 18:24:35 +00:00
wsgi Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
__init__.py
availability_zones.py Merge "Config options: centralize options in availability_zones" 2016-02-20 04:49:15 +00:00
baserpc.py
block_device.py virt: refactor method compute_driver_matches 2016-03-10 00:27:13 +08:00
cache_utils.py Switch to oslo.cache lib 2016-02-02 08:20:13 -05:00
config.py Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
context.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
crypto.py Tolerate installation of pycryptodome 2016-02-13 21:29:28 -05:00
debugger.py
exception.py Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
filters.py Prepare filters for using RequestSpec object 2015-11-16 22:41:02 +01:00
hooks.py Deprecate nova.hooks 2016-03-01 11:52:52 +00:00
i18n.py
loadables.py
manager.py Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
netconf.py
notifications.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
opts.py Sample nova.conf file has missing/duplicated config options 2016-03-03 13:08:02 +01:00
paths.py
policy.py use graduated oslo.policy 2015-11-26 13:04:52 +08:00
quota.py
rpc.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
safe_utils.py Replace safe_utils.getcallargs with inspect.getcallargs 2015-12-11 10:15:37 -05:00
service.py Fix string interpolations at logging calls 2016-03-07 12:05:58 +09:00
signature_utils.py Fix sphinx warnings from signature_utils 2016-01-13 13:56:05 +00:00
test.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
utils.py Merge "Remove unused methods in nova/utils.py" 2016-03-07 18:15:24 +00:00
version.py
weights.py
wsgi.py config options: centralize section "wsgi" 2016-02-03 13:18:10 +00:00