Ask Your Question

Revision history [back]

Designate, horizon & neutron net-update --dns-domain

Hi,

after implementing designate I'm getting issues when users create floating ip's for new network.

When a user creates a floating ip for a new network he gets an internal error.

First when the network has the --dns-domain name set the error disappears. But, via the horizon interface I can't set the dns-domain name for a network and I don't want to offer console access to set the ins-domain parameter. How can I get here a default domain-name without admin intervention set?

The error message: 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource [req-d3dc73bc-f6db-46ec-8b0a-0c1c981f8fd5 cb4714a05f2d403baf3482037180ac3b f1c1fc688abf4336b959ef483d8ebf57 - - -] update failed: No details. 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource Traceback (most recent call last): 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = method(request=request, *args) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 610, in update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._update(request, id, body, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, *dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 658, in _update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 166, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return method(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, **dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, id, floatingip) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_dict) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_data)) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._get_internal_port_dns_data(context, floatingip_data) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context=context, port_id=floatingip_data['port_id']) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return super(NetworkDNSDomain, cls)._load_object(context, net_dns) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 377, in _load_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj.from_db_object(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 317, in from_db_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource fields = self.modify_fields_from_db(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 367, in modify_fields_from_db 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = {field: db_obj[field] for field in potential_fields 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 368, in <dictcomp> 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource if db_obj.get(field) is not None} 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get' 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource

Designate, horizon & neutron net-update --dns-domain

Hi,

after implementing designate I'm getting issues when users create floating ip's for new network.

When a user creates a floating ip for a new network he gets an internal error.

First when the network has the --dns-domain name set the error disappears. But, via the horizon interface I can't set the dns-domain name for a network and I don't want to offer console access to set the ins-domain parameter. How can I get here a default domain-name without admin intervention set?

The error message: 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource [req-d3dc73bc-f6db-46ec-8b0a-0c1c981f8fd5 cb4714a05f2d403baf3482037180ac3b f1c1fc688abf4336b959ef483d8ebf57 - - -] update failed: No details. 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource Traceback (most recent call last): 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = method(request=request, *args) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 610, in update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._update(request, id, body, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, *dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 658, in _update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 166, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return method(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, **dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, id, floatingip) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_dict) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_data)) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._get_internal_port_dns_data(context, floatingip_data) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context=context, port_id=floatingip_data['port_id']) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return super(NetworkDNSDomain, cls)._load_object(context, net_dns) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 377, in _load_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj.from_db_object(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 317, in from_db_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource fields = self.modify_fields_from_db(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 367, in modify_fields_from_db 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = {field: db_obj[field] for field in potential_fields 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 368, in <dictcomp> 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource if db_obj.get(field) is not None} 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get' 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource

Designate, horizon & neutron net-update --dns-domain

Hi,

after implementing designate I'm getting issues when users create floating ip's for new network.

When a user creates a floating ip for a new network he gets an internal error.

First when the network has the --dns-domain name set the error disappears. But, via the horizon interface I can't set the dns-domain name for a network and I don't want to offer console access to set the ins-domain dns-domain parameter. How can I get here a default domain-name without admin intervention set?

The error message: 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource [req-d3dc73bc-f6db-46ec-8b0a-0c1c981f8fd5 cb4714a05f2d403baf3482037180ac3b f1c1fc688abf4336b959ef483d8ebf57 - - -] update failed: No details. 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource Traceback (most recent call last): 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = method(request=request, *args) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 610, in update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._update(request, id, body, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, *dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 658, in _update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 166, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return method(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, **dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, id, floatingip) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_dict) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_data)) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._get_internal_port_dns_data(context, floatingip_data) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context=context, port_id=floatingip_data['port_id']) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return super(NetworkDNSDomain, cls)._load_object(context, net_dns) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 377, in _load_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj.from_db_object(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 317, in from_db_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource fields = self.modify_fields_from_db(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 367, in modify_fields_from_db 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = {field: db_obj[field] for field in potential_fields 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 368, in <dictcomp> 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource if db_obj.get(field) is not None} 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get' 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource

Designate, horizon & neutron net-update --dns-domain

Hi,

after implementing designate I'm getting issues when users create floating ip's for new network.

When a user creates a floating ip for a new network he gets an internal error.

First when the network has the --dns-domain name set the error disappears. But, via the horizon interface I can't set the dns-domain name for a network and I don't want to offer console access to set the dns-domain parameter. How can I get here a default domain-name without admin intervention set?

The error message: message:

2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource [req-d3dc73bc-f6db-46ec-8b0a-0c1c981f8fd5 cb4714a05f2d403baf3482037180ac3b f1c1fc688abf4336b959ef483d8ebf57 - - -] update failed: No details. 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource Traceback (most recent call last): 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = method(request=request, *args) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 610, in update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._update(request, id, body, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, *dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 658, in _update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj = obj_updater(request.context, id, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 166, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return method(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(args, *kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource traceback.format_exc()) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource self.force_reraise() 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return f(dup_args, **dup_kwargs) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, id, floatingip) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_dict) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context, floatingip_data)) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return self._get_internal_port_dns_data(context, floatingip_data) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource context=context, port_id=floatingip_data['port_id']) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource return super(NetworkDNSDomain, cls)._load_object(context, net_dns) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 377, in _load_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource obj.from_db_object(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 317, in from_db_object 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource fields = self.modify_fields_from_db(db_obj) 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 367, in modify_fields_from_db 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource result = {field: db_obj[field] for field in potential_fields 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 368, in <dictcomp> 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource if db_obj.get(field) is not None} 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get' 2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource

Designate, horizon & neutron net-update --dns-domain

Hi,

after implementing designate I'm getting issues when users create floating ip's for new network.

When a user creates a floating ip for a new network he gets an internal error.

First when the network has the --dns-domain name set the error disappears. But, via the horizon interface I can't set the dns-domain name for a network and I don't want to offer console access to set the dns-domain parameter. How can I get here a default domain-name without admin intervention set?

The error message:

2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource [req-d3dc73bc-f6db-46ec-8b0a-0c1c981f8fd5 cb4714a05f2d403baf3482037180ac3b f1c1fc688abf4336b959ef483d8ebf57 - - -] update failed: No details.
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 79, in resource
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     result = method(request=request, *args)
**args)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 610, in update
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return self._update(request, id, body, *kwargs)
**kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(args, *kwargs)
f(*args, **kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(args, *kwargs)
f(*args, **kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     traceback.format_exc())
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(dup_args, *dup_kwargs)
f(*dup_args, **dup_kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 658, in _update
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, *kwargs)
**kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 166, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return method(args, *kwargs)
method(*args, **kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 95, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 91, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(args, *kwargs)
f(*args, **kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 151, in wrapper
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 139, in wrapper
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(args, *kwargs)
f(*args, **kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 131, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     traceback.format_exc())
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     self.force_reraise()
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/api.py", line 126, in wrapped
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return f(dup_args, f(*dup_args, **dup_kwargs)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_dvr_db.py", line 940, in update_floatingip
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     context, id, floatingip)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/l3_db.py", line 1334, in _update_floatingip
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     context, floatingip_dict)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 141, in _process_dns_floatingip_update_precommit
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     context, floatingip_data))
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 243, in _get_requested_state_for_external_dns_service_update
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return self._get_internal_port_dns_data(context, floatingip_data)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/db/dns_db.py", line 210, in _get_internal_port_dns_data
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     context=context, port_id=floatingip_data['port_id'])
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/objects/network.py", line 255, in get_net_dns_from_port
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     return super(NetworkDNSDomain, cls)._load_object(context, net_dns)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 377, in _load_object
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     obj.from_db_object(db_obj)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 317, in from_db_object
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     fields = self.modify_fields_from_db(db_obj)
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 367, in modify_fields_from_db
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     result = {field: db_obj[field] for field in potential_fields
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/objects/base.py", line 368, in <dictcomp>
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource     if db_obj.get(field) is not None}
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'get'
2017-05-22 14:23:46.168 3043 ERROR neutron.api.v2.resource

neutron.api.v2.resource