From 95f621f717b2e9fe0c89f7188f6d1668200475c8 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 6 Mar 2017 17:03:33 +0000 Subject: [PATCH] Bump default quotas for ports, subnets, and networks It's probably not very realistic to expect power users to be happy with the default quotas (10 networks, 50 ports, 10 subnets). I believe that larger defaults would be more realistic. This patch bumps existing quotas for the aforementioned neutron resources x10 times. DocImpact change default quotas in documentation if used in examples anywhere. UpgradeImpact operators may need to revisit quotas they use. Closes-Bug: #1674787 Change-Id: I04993934627d2d663a1bfccd7467ac4fbfbf1434 --- neutron/conf/quota.py | 6 +++--- neutron/tests/contrib/hooks/quotas | 3 --- .../notes/bump-default-quotas-810570badb378c50.yaml | 10 ++++++++++ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 releasenotes/notes/bump-default-quotas-810570badb378c50.yaml diff --git a/neutron/conf/quota.py b/neutron/conf/quota.py index 5069b935e48..a38bd61cefe 100644 --- a/neutron/conf/quota.py +++ b/neutron/conf/quota.py @@ -24,9 +24,9 @@ QUOTA_CONF_DRIVER = 'neutron.quota.ConfDriver' QUOTAS_CFG_GROUP = 'QUOTAS' DEFAULT_QUOTA = -1 -DEFAULT_QUOTA_NETWORK = 10 -DEFAULT_QUOTA_SUBNET = 10 -DEFAULT_QUOTA_PORT = 50 +DEFAULT_QUOTA_NETWORK = 100 +DEFAULT_QUOTA_SUBNET = 100 +DEFAULT_QUOTA_PORT = 500 DEFAULT_QUOTA_SG = 10 DEFAULT_QUOTA_SG_RULE = 100 DEFAULT_QUOTA_ROUTER = 10 diff --git a/neutron/tests/contrib/hooks/quotas b/neutron/tests/contrib/hooks/quotas index dad551a30d2..c2c0cac9721 100644 --- a/neutron/tests/contrib/hooks/quotas +++ b/neutron/tests/contrib/hooks/quotas @@ -2,9 +2,6 @@ [quotas] # x10 of default quotas (at the time of writing) -quota_network=100 -quota_subnet=100 -quota_port=500 quota_router=100 quota_floatingip=500 quota_security_group=100 diff --git a/releasenotes/notes/bump-default-quotas-810570badb378c50.yaml b/releasenotes/notes/bump-default-quotas-810570badb378c50.yaml new file mode 100644 index 00000000000..036edc4327b --- /dev/null +++ b/releasenotes/notes/bump-default-quotas-810570badb378c50.yaml @@ -0,0 +1,10 @@ +--- +prelude: > + Default quotas for the following resources were increased: networks (from + 10 to 100), subnets (from 10 to 100), ports (from 50 to 500). +upgrade: + - | + Default quotas were bumped for the following resources: networks (from 10 + to 100), subnets (from 10 to 100), ports (from 50 to 500). If you want to + stick to old values, consider explicitly setting them in the + ``neutron.conf`` file.