From bee5c50766698baa87f5e049734708436766777b Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Fri, 30 Aug 2013 13:48:08 -0400 Subject: [PATCH] Disable neutron quotas when using fake virt driver Nova's fake virt driver, can be used to do scale testing, so when using it disable neutron's quota limits. Change-Id: I9ce995079af04202179820777217ef294df71226 --- lib/neutron | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/neutron b/lib/neutron index 31876dee88..bf04840e47 100644 --- a/lib/neutron +++ b/lib/neutron @@ -507,6 +507,15 @@ function _configure_neutron_common() { done fi + if [ "$VIRT_DRIVER" = 'fake' ]; then + # Disable arbitrary limits + iniset $NEUTRON_CONF quotas quota_network -1 + iniset $NEUTRON_CONF quotas quota_subnet -1 + iniset $NEUTRON_CONF quotas quota_port -1 + iniset $NEUTRON_CONF quotas quota_security_group -1 + iniset $NEUTRON_CONF quotas quota_security_group_rule -1 + fi + _neutron_setup_rootwrap }