Merge "Report ExternalDNSOverQuota exception for recordset quota error"

This commit is contained in:
Zuul 2021-06-22 00:23:23 +00:00 committed by Gerrit Code Review
commit 2e403a3bfb
2 changed files with 8 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class Designate(driver.ExternalDNSService):
raise dns_exc.DNSDomainNotFound(dns_domain=dns_domain)
except d_exc.Conflict:
raise dns_exc.DuplicateRecordSet(dns_name=dns_name)
except d_exc.OverQuota:
raise dns_exc.ExternalDNSOverQuota(resource="recordset")
if not CONF.designate.allow_reverse_dns_lookup:
return

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Report external dns service OverQuota exception as new neutron
ConflictException (409) i.e. ExternalDNSOverQuota. Report the failure
as "External DNS Quota exceeded for resources: recordset".