Where subnet-97 is a subnet to tenant-97, which have 'dns_domain' set to an existing domain. The domain works - creating an instance + floating IP on that will register the set dns_name in the domain.
However, the lb-vip-create will fail with
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-ee6a68f1-ed8a-4f22-9dea-646fb97ff795']
and the log will say:
==> /var/log/neutron/neutron-server.log <==
2016-07-21 18:08:54.940 7926 INFO neutron.wsgi [req-cc53af04-89fc-482c-8a4f-0a3f5cc2e614 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:54] "GET /v2.0/lb/pools.json?fields=id&name=hapool-97 HTTP/1.1" 200 257 0.070421
2016-07-21 18:08:55.027 7926 INFO neutron.wsgi [req-e95bbb13-c38e-4cdf-afc5-9bba3351b8ff 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:55] "GET /v2.0/subnets.json?fields=id&name=subnet-97 HTTP/1.1" 200 259 0.081731
2016-07-21 18:08:55.037 7926 INFO neutron.quota [req-ee6a68f1-ed8a-4f22-9dea-646fb97ff795 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] Loaded quota_driver: <neutron.db.quota.driver.DbQuotaDriver object at 0x7f37d17c4f90>.
2016-07-21 18:08:55.494 7926 INFO neutron.plugins.ml2.managers [req-ee6a68f1-ed8a-4f22-9dea-646fb97ff795 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] Extension driver 'dns' failed in process_create_port
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource [req-ee6a68f1-ed8a-4f22-9dea-646fb97ff795 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] create failed
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 410, in create
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 148, in wrapper
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource self.force_reraise()
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_db/api.py", line 138, in wrapper
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 521, in _create
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource obj = do_create(body)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 503, in do_create
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource request.context, reservation.reservation_id)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource self.force_reraise()
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 496, in do_create
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 147, in create_vip
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource v = super(LoadBalancerPlugin, self).create_vip(context, vip)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron_lbaas/db/loadbalancer/loadbalancer_db.py", line 404, in create_vip
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource context.session.flush()
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource self.force_reraise()
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron_lbaas/db/loadbalancer/loadbalancer_db.py", line 399, in create_vip
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource context, vip_db, v['subnet_id'], v.get('address'))
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron_lbaas/db/loadbalancer/loadbalancer_db.py", line 346, in _create_port_for_vip
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource port = self._core_plugin.create_port(context, {'port': port_data})
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 1096, in create_port
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource result, mech_context = self._create_port_db(context, port)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 1068, in _create_port_db
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource self.extension_manager.process_create_port(context, attrs, result)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 858, in process_create_port
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource data, result)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 833, in _call_on_ext_drivers
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource {'name': driver.name, 'method': method_name})
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 221, in __exit__
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource self.force_reraise()
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 197, in force_reraise
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 828, in _call_on_ext_drivers
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource getattr(driver.obj, method_name)(plugin_context, data, result)
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/extensions/dns_integration.py", line 78, in process_create_port
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource if not request_data[dns.DNSNAME]:
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource KeyError: 'dns_name'
2016-07-21 18:08:55.719 7926 ERROR neutron.api.v2.resource
2016-07-21 18:08:55.728 7926 INFO neutron.wsgi [req-ee6a68f1-ed8a-4f22-9dea-646fb97ff795 4b0e25c70d2b4ad6ba4c50250f2f0b0b 04ee0e71babe4fd7aa16c3f64a8fca89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:55] "POST /v2.0/lb/vips.json HTTP/1.1" 500 368 0.695096
I'm somewhat unsure if this a problem with Designate or Neutron (the log DO say Neutron), but on the other hand, this worked just fine before I added Designate to the mix.. Feel free to reassign to Neutron.
This is Neutron v4.2.0 and Designate v2.1.0 on Debian GNU/Linux Sid/Unstable - Mitaka.
When trying to create a Loadbalancer (v1) VIP with the command:
neutron lb-vip-create --address 10.97.0.254 --name vip-97 \
--protocol- port 22 --protocol TCP --subnet-id subnet-97 hapool-97
Where subnet-97 is a subnet to tenant-97, which have 'dns_domain' set to an existing domain. The domain works - creating an instance + floating IP on that will register the set dns_name in the domain.
However, the lb-vip-create will fail with
Request Failed: internal server error while processing your request. ed8a-4f22- 9dea-646fb97ff7 95']
Neutron server returns request_ids: ['req-ee6a68f1-
and the log will say:
==> /var/log/ neutron/ neutron- server. log <== 89fc-482c- 8a4f-0a3f5cc2e6 14 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:54] "GET /v2.0/lb/ pools.json? fields= id&name= hapool- 97 HTTP/1.1" 200 257 0.070421 c38e-4cdf- afc5-9bba3351b8 ff 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:55] "GET /v2.0/subnets. json?fields= id&name= subnet- 97 HTTP/1.1" 200 259 0.081731 ed8a-4f22- 9dea-646fb97ff7 95 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] Loaded quota_driver: <neutron. db.quota. driver. DbQuotaDriver object at 0x7f37d17c4f90>. plugins. ml2.managers [req-ee6a68f1- ed8a-4f22- 9dea-646fb97ff7 95 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] Extension driver 'dns' failed in process_create_port api.v2. resource [req-ee6a68f1- ed8a-4f22- 9dea-646fb97ff7 95 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] create failed api.v2. resource Traceback (most recent call last): api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ api/v2/ resource. py", line 84, in resource api.v2. resource result = method( request= request, **args) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line 410, in create api.v2. resource return self._create( request, body, **kwargs) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_db/ api.py" , line 148, in wrapper api.v2. resource ectxt.value = e.inner_exc api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 221, in __exit__ api.v2. resource self.force_ reraise( ) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 197, in force_reraise api.v2. resource six.reraise( self.type_ , self.value, self.tb) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_db/ api.py" , line 138, in wrapper api.v2. resource return f(*args, **kwargs) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line 521, in _create api.v2. resource obj = do_create(body) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line 503, in do_create api.v2. resource request.context, reservation. reservation_ id) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 221, in __exit__ api.v2. resource self.force_ reraise( ) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 197, in force_reraise api.v2. resource six.reraise( self.type_ , self.value, self.tb) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line 496, in do_create api.v2. resource return obj_creator( request. context, **kwargs) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron_ lbaas/services/ loadbalancer/ plugin. py", line 147, in create_vip api.v2. resource v = super(LoadBalan cerPlugin, self).create_ vip(context, vip) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron_ lbaas/db/ loadbalancer/ loadbalancer_ db.py", line 404, in create_vip api.v2. resource context. session. flush() api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 221, in __exit__ api.v2. resource self.force_ reraise( ) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 197, in force_reraise api.v2. resource six.reraise( self.type_ , self.value, self.tb) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron_ lbaas/db/ loadbalancer/ loadbalancer_ db.py", line 399, in create_vip api.v2. resource context, vip_db, v['subnet_id'], v.get('address')) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron_ lbaas/db/ loadbalancer/ loadbalancer_ db.py", line 346, in _create_ port_for_ vip api.v2. resource port = self._core_ plugin. create_ port(context, {'port': port_data}) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/plugin. py", line 1096, in create_port api.v2. resource result, mech_context = self._create_ port_db( context, port) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/plugin. py", line 1068, in _create_port_db api.v2. resource self.extension_ manager. process_ create_ port(context, attrs, result) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/managers. py", line 858, in process_create_port api.v2. resource data, result) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/managers. py", line 833, in _call_on_ ext_drivers api.v2. resource {'name': driver.name, 'method': method_name}) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 221, in __exit__ api.v2. resource self.force_ reraise( ) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 197, in force_reraise api.v2. resource six.reraise( self.type_ , self.value, self.tb) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/managers. py", line 828, in _call_on_ ext_drivers api.v2. resource getattr(driver.obj, method_ name)(plugin_ context, data, result) api.v2. resource File "/usr/lib/ python2. 7/dist- packages/ neutron/ plugins/ ml2/extensions/ dns_integration .py", line 78, in process_create_port api.v2. resource if not request_ data[dns. DNSNAME] : api.v2. resource KeyError: 'dns_name' api.v2. resource ed8a-4f22- 9dea-646fb97ff7 95 4b0e25c70d2b4ad 6ba4c50250f2f0b 0b 04ee0e71babe4fd 7aa16c3f64a8fca 89 - - -] 10.0.4.1 - - [21/Jul/2016 18:08:55] "POST /v2.0/lb/vips.json HTTP/1.1" 500 368 0.695096
2016-07-21 18:08:54.940 7926 INFO neutron.wsgi [req-cc53af04-
2016-07-21 18:08:55.027 7926 INFO neutron.wsgi [req-e95bbb13-
2016-07-21 18:08:55.037 7926 INFO neutron.quota [req-ee6a68f1-
2016-07-21 18:08:55.494 7926 INFO neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.719 7926 ERROR neutron.
2016-07-21 18:08:55.728 7926 INFO neutron.wsgi [req-ee6a68f1-
I'm somewhat unsure if this a problem with Designate or Neutron (the log DO say Neutron), but on the other hand, this worked just fine before I added Designate to the mix.. Feel free to reassign to Neutron.
This is Neutron v4.2.0 and Designate v2.1.0 on Debian GNU/Linux Sid/Unstable - Mitaka.