nova/nova/tests
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
..
functional Archive instance_actions and instance_actions_event 2016-06-07 21:16:15 +00:00
live_migration/hooks Ceph for live-migration job 2016-01-22 16:27:58 +03:00
unit virt: set address space & CPU time limits when running qemu-img 2016-06-10 17:21:27 -04:00
__init__.py
fixtures.py Change SpawnIsSynchronous fixture return 2016-03-10 13:48:41 -05:00
uuidsentinel.py Add uuidsentinel test module 2015-12-14 11:28:55 +01:00