commit 7175d2b2a2b8c3caa7191e35b71bfabcb570e715
Author: Eric Larson <email address hidden>
Date: Wed Mar 2 15:36:20 2016 -0600
Ensure the zone records quota is enforced
When creating a recordset, we only assert the recordset specific quota
is respected, ignoring the zone record quota.
This updates the code to enforce the records quota as well as excludes
the managed records when calculating the quota. Also, the submitted
records are taken into account when testing the quota. For example, if
the total number is 10 and the limit is 11 (the total must be less
than the quota), submitting an update to a recordset to lower the
number of A records from 5 to 3 should be allowed.
Reviewed: https:/ /review. openstack. org/287458 /git.openstack. org/cgit/ openstack/ designate/ commit/ ?id=7175d2b2a2b 8c3caa7191e35b7 1bfabcb570e715
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 7175d2b2a2b8c3c aa7191e35b71bfa bcb570e715
Author: Eric Larson <email address hidden>
Date: Wed Mar 2 15:36:20 2016 -0600
Ensure the zone records quota is enforced
When creating a recordset, we only assert the recordset specific quota
is respected, ignoring the zone record quota.
This updates the code to enforce the records quota as well as excludes
the managed records when calculating the quota. Also, the submitted
records are taken into account when testing the quota. For example, if
the total number is 10 and the limit is 11 (the total must be less
than the quota), submitting an update to a recordset to lower the
number of A records from 5 to 3 should be allowed.
Cherry-pick from review. openstack. org/284361/
Closes-Bug: #1548331 c5b8dbe3db69044 c4da889b7d8
Change-Id: I26839eca1c4901