commit 6bc37dcceca823998068167b49aec6def3112397
Author: Daniel P. Berrange <email address hidden>
Date: Mon Apr 18 16:32:19 2016 +0000
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
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.
Reviewed: https:/ /review. openstack. org/327624 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6bc37dcceca 823998068167b49 aec6def3112397
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 6bc37dcceca8239 98068167b49aec6 def3112397
Author: Daniel P. Berrange <email address hidden>
Date: Mon Apr 18 16:32:19 2016 +0000
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 da217205f53f9a3 8a573fb151898fb beae41021d
Author: Tristan Cacqueray <email address hidden>
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 concurrency> =2.6.1; and a conditional check for 'prlimit' parameter
'ProcessLimits' attribute (which is only present in
oslo.
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 lists.openstack .org/pipermail/ openstack- dev/2016- September/ 104303. html
[2] http://
Closes-Bug: #1449062 cb0ea09a6fcda21 fc03a6fbe7d fb2b812d91dc201 1077cb6e1d)
Change-Id: I135b5242af1bfd
(cherry picked from commit 068d851561addfe