Ask Your Question
0

Designate - Zone not found

asked 2016-01-08 18:40:45 -0500

Gal S. gravatar image

Hello, I have a designate working for both nova_fixed and neutron_floating . and powerdns backend. The backend side working well and able to create domains and add records through designate CLI. However, the service is not able to create records from notifications. The same exact error when nova creates vm or associating floating ip

designate-sink.log shows this trace

2016-01-09 02:29:07.397 9447 DEBUG designate.sink.service [-] Found handler for: floatingip.update.end info /usr/share/openstack/designate/designate/sink/service.py:115
2016-01-09 02:29:07.398 9447 DEBUG designate.notification_handler.neutron [-] handler:neutron_floatingip received notification - floatingip.update.end process_notification /usr/share/openstack/designate/designate/notification_handler/neutron.py:57
2016-01-09 02:29:07.398 9447 DEBUG designate.notification_handler.base [-] Using Zone ID: None _create /usr/share/openstack/designate/designate/notification_handler/base.py:126
2016-01-09 02:29:07.399 9447 INFO designate.policy [req-f926f963-da94-4b44-b5c9-2159bb640330 - - - - -] Policy check succeeded for rule 'all_tenants' on target {}
2016-01-09 02:29:07.400 9447 INFO designate.central.rpcapi [req-f926f963-da94-4b44-b5c9-2159bb640330 - - - - -] get_zone: Calling central's get_zone.
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher [req-f926f963-da94-4b44-b5c9-2159bb640330 - - - - -] Exception during message handling
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher Traceback (most recent call last):
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/dispatcher.py", line 86, in _dispatch_and_handle_error
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     return self._dispatch(incoming, executor_callback)
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/dispatcher.py", line 123, in _dispatch
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     filtered_messages)
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/dispatcher.py", line 173, in _exec_callback
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     messages[0]["metadata"])
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/dispatcher.py", line 133, in _exec_callback
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     ret = callback(*args)
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/share/openstack/designate/designate/sink/service.py", line 116, in info
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     handler.process_notification(context, event_type, payload)
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/share/openstack/designate/designate/notification_handler/neutron.py", line 74, in process_notification
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     resource_type='floatingip')
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/share/openstack/designate/designate/notification_handler/base.py", line 127, in _create
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     zone = self.get_zone(zone_id)
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher   File "/usr/share/openstack/designate/designate/notification_handler/base.py", line 65, in get_zone
2016-01-09 02:29:07.421 9447 ERROR oslo_messaging.notify.dispatcher     return self.central_api.get_zone(context, zone_id ...
(more)
edit retag flag offensive close merge delete

Comments

seems to have been passed None for the zone id. Where is this suppose to oriiginate from? An attribute of the neutron subnet?

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-02-09 15:46:04 -0500 )edit

I changed the order of declaring the [service:sink] in the designate.conf and the error went away.

But, even if everything running fine now, I am not able to automatically create the designate records automatically when a nova instance gets created. Though this can be done manually well.

swati-shukla1 gravatar imageswati-shukla1 ( 2016-02-09 16:44:22 -0500 )edit

Any clue on how to proceed? I need to do something like https://www.openstack.org/assets/presentation-media/Designate-Workshop.pdf (https://www.openstack.org/assets/pres...)

swati-shukla1 gravatar imageswati-shukla1 ( 2016-02-09 16:44:39 -0500 )edit

4 answers

Sort by ยป oldest newest most voted
1

answered 2016-04-20 12:45:53 -0500

mtecer gravatar image

I just resolves this same issue with OpenStack Mitaka. Here is what you need:

[handler:nova_fixed]
...
zone_id = "domain_id_from_designate_domain-list"
format = %(display_name)s.%(zone)s

[handler:neutron_floatingip]
...
zone_id = "domain_id_from_designate_domain-list"
format = %(octet0)s-%(octet1)s-%(octet2)s-% (octet3)s.%(zone)s

Restart designate services.

edit flag offensive delete link more
0

answered 2016-08-31 09:01:03 -0500

Appa gravatar image

I am having same issue, tried suggested option but not worked from me.

edit flag offensive delete link more

Comments

Fixed and its working by replacing "domain" to "zone" from designate.conf file. After this change restart designate services and it will add record during floating ip association.

Appa gravatar imageAppa ( 2016-08-31 11:41:21 -0500 )edit
0

answered 2016-09-30 02:08:27 -0500

srihitha gravatar image

in which versions designate-sink is working?i mean in liberty or mitaka ??please respond

edit flag offensive delete link more
0

answered 2016-02-09 06:04:39 -0500

swati-shukla1 gravatar image

Can you please let me know how to resolve this?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-01-08 18:40:45 -0500

Seen: 659 times

Last updated: Sep 30 '16