When someone tries to go over quota on domains the error message is very confusing. It implies that you didn't put an email address in the API call, you have to dig to find out you're really over quota. I'm not sure what the point of any of the non-quota stuff is in this error because "Over quota" should be the text here, not just something hidden.
(Pdb) print str(e)
Validation Error: u'email' is a required property
Failed validating 'required' in schema[u'properties'][u'email']:
{u'$schema': u'http://json-schema.org/draft-03/hyper-schema',
u'additionalProperties': False,
u'description': u'Domain',
u'id': u'domain',
u'links': [{u'href': u'/domains/{id}', u'rel': u'self'},
{u'href': u'/domains/{id}/records', u'rel': u'records'},
{u'href': u'/domains/{id}/servers', u'rel': u'servers'},
{u'href': u'/domains', u'rel': u'collection'}],
u'properties': {u'created_at': {u'description': u'Date and time of domain creation',
u'format': u'date-time',
u'readonly': True,
u'type': u'string'},
u'description': {u'description': u'Description for the Domain',
u'maxLength': 160,
u'type': [u'string', u'null']},
u'email': {u'description': u'Hostmaster email address',
u'format': u'email',
u'maxLength': 255,
u'required': True,
u'type': u'string'},
u'id': {u'description': u'Domain Identifier',
u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$',
u'readonly': True,
u'type': u'string'},
u'name': {u'description': u'Domain name',
u'format': u'domain-name',
u'maxLength': 255,
u'readonly': True,
u'required': True,
u'type': u'string'},
u'serial': {u'description': u'Serial Number',
u'maximum': 4294967295,
u'minimum': 1,
u'readonly': True,
u'type': u'integer'},
u'ttl': {u'description': u'Time to live',
u'maximum': 2147483647,
u'minimum': 0,
u'type': u'integer'},
u'updated_at': {u'description': u'Date and time of last domain update',
u'format': u'date-time',
u'readonly': True,
u'type': [u'string', u'null']}},
u'title': u'domain'}
On instance[u'email']:
{u'code': 413,
u'request_id': u'req-859b6ef8-e83f-45cb-beae-2559ad23f246',
u'type': u'over_quota'}
Fix proposed to branch: master /review. openstack. org/221610
Review: https:/