nova/nova/tests/unit/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 nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00
hyperv Merge "Hyper-V: Implements attach_interface and detach_interface method" 2015-09-22 02:22:14 +00:00
image virt: introduce model for describing local image metadata 2015-06-04 13:46:59 +01:00
ironic [Ironic]Match vif-pif mac address before setting 'vif_port_id' 2016-03-09 06:06:28 +00:00
libvirt virt: set address space & CPU time limits when running qemu-img 2016-09-22 13:35:24 +02: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
test_block_device.py Merge "Detach and terminate conn if Cinder attach fails" 2015-09-18 17:15:24 +00:00
test_configdrive.py objects: convert config drive to use ImageMeta object 2015-09-07 17:11:02 +01:00
test_diagnostics.py
test_driver.py
test_events.py
test_fake.py fake: fix public API signatures to match virt driver 2015-02-19 11:44:00 +00:00
test_hardware.py Merge "Prevent (un)pinning unknown CPUs" 2015-08-11 15:17:19 +00:00
test_imagecache.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_images.py Propagate qemu-img errors to compute manager 2016-03-04 16:50:10 +00:00
test_virt.py virt: convert disk mount API to use nova.virt.image.model 2015-06-04 13:47:40 +01:00
test_virt_drivers.py libvirt: set libvirt.sysinfo_serial='none' for virt driver tests 2016-03-01 15:54:59 -05:00
test_volumeutils.py Switch to using os-brick 2015-07-27 10:47:22 -07:00