nova/nova/virt
Daniel P. Berrange 6bc37dccec 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 (kchamart) [stable/liberty]: Add a check for the presence of
'ProcessLimits' attribute (which is only present in
oslo.concurrency>=2.6.1; and a conditional check for 'prlimit' parameter
in qemu_img_info() method.

Upstream discussion[1][2] that led to merging this patch to
stable/liberty branch.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-September/104091.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2016-September/104303.html

Closes-Bug: #1449062
Change-Id: I135b5242af1bfdcb0ea09a6fcda21fc03a6fbe7d
(cherry picked from commit 068d851561)
2016-09-22 13:35:24 +02:00
..
disk virt: Fix AttributeError for raw image format 2015-07-02 23:50:57 -07:00
hyperv Fix serial console worker blocking Nova 2016-05-12 12:17:24 +00:00
image Fix typo in model doc string 2015-07-03 00:11:55 -07:00
ironic [Ironic]Match vif-pif mac address before setting 'vif_port_id' 2016-03-09 06:06:28 +00:00
libvirt Merge "Fall back to raw config drive if not found in rbd" into stable/liberty 2016-06-07 20:52:39 +00:00
vmwareapi <VMWare> Allocate free bus for new SCSI controller 2016-04-10 23:24:19 +00:00
xenapi XenAPI: Workaround for 6.5 iSCSI bug 2016-02-26 09:28:55 +00:00
__init__.py Removed copyright from empty files 2014-02-27 14:27:54 +02:00
block_device.py Refresh stale volume BDMs in terminate_connection 2015-12-16 09:46:24 -08:00
configdrive.py objects: convert config drive to use ImageMeta object 2015-09-07 17:11:02 +01:00
diagnostics.py Diagnostics: add validation for types 2014-08-05 01:49:17 -07:00
driver.py Merge "Set autodoc_index_modules=True so tox -e docs builds module docs again" 2015-07-31 22:21:08 +00:00
event.py Add 'suspended' lifecycle event 2015-04-03 03:59:20 +03:00
fake.py libvirt:Add a driver API to inject an NMI 2015-07-27 23:59:55 +00:00
firewall.py Switch nova.virt.* to use the object dot notation 2015-03-03 08:08:16 -05:00
hardware.py Correct Instance type check to work with InstanceV1 2015-09-29 16:09:34 +08:00
imagecache.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
images.py virt: set address space & CPU time limits when running qemu-img 2016-09-22 13:35:24 +02:00
interfaces.template Fixes interfaces template identification issue 2014-12-07 17:52:34 +02:00
netutils.py Only work with ipv4 subnet metadata if one exists 2015-07-20 15:44:23 -07:00
opts.py Set autodoc_index_modules=True so tox -e docs builds module docs again 2015-07-30 17:11:47 -07:00
storage_users.py Use oslo.log 2015-02-22 07:56:40 -05:00
virtapi.py Deprecate and remove agent_build_get_by_triple() 2014-06-25 07:18:19 -07:00
volumeutils.py nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00
watchdog_actions.py Add watchdog device support to libvirt driver 2014-03-03 14:59:58 -05:00