I see this error periodically in designate-producer.logs Error starting thread.: designate.exceptions.ConfigurationError: No periodic tasks found matching: ['None']

Bug #2043902 reported by Debasis
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Invalid
Undecided
Unassigned
kolla-ansible
Confirmed
Medium
Unassigned

Bug Description

With the latest designate kolla-ansible images pulled today, I see the following errors in the producer.log

Error starting thread.: designate.exceptions.ConfigurationError: No periodic tasks found matching: ['None']
2023-11-19 04:54:43.562 888 ERROR oslo_service.service Traceback (most recent call last):
2023-11-19 04:54:43.562 888 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_service/service.py", line 806, in run_service
2023-11-19 04:54:43.562 888 ERROR oslo_service.service service.start()
2023-11-19 04:54:43.562 888 ERROR oslo_service.service File "/var/lib/kolla/venv/lib/python3.10/site-packages/designate/producer/service.py", line 77, in start
2023-11-19 04:54:43.562 888 ERROR oslo_service.service raise exceptions.ConfigurationError(
2023-11-19 04:54:43.562 888 ERROR oslo_service.service designate.exceptions.ConfigurationError: No periodic tasks found matching: ['None']
2023-11-19 04:54:43.562 888 ERROR oslo_service.service
2023-11-19 04:54:43.566 888 INFO designate.service [None req-3f5bb31b-c135-4c9a-9c3b-afa9f0372f1f - - - - - -] Stopping producer service

Revision history for this message
Erik Olof Gunnar Andersson (eandersson) wrote :

This is an issue with your configuration.

If you have the following in your configuration you are basically disabling all taks in the designate-producer, but starting with Bobcat some of those tasks are required for Designate to work.
> enabled_tasks = None

I commited a fix to Ansible in August.
https://github.com/openstack/kolla-ansible/commit/8e3c16890862337525289fa63724c8d78831e563

Changed in designate:
status: New → Invalid
Revision history for this message
Debasis (debamondal) wrote :

Thank you for your reply. This fixed my issue.
However, I see another issue with a relatively old image(to be specific 3 months old). On deleting the instance, I expect my A record to get deleted. However, that is not happening. Can you suggest anything on this?

Revision history for this message
Erik Olof Gunnar Andersson (eandersson) wrote :

Are you seeing any errors in the logs? If not it's likely something to do with the notifications not being sent properly from the nova-compute on deletion.

Revision history for this message
Debasis (debamondal) wrote :

Ok, I checked. There's no error in designate or in neutron or in nova. I think, this feature is missing.

Also, if the network is shared, neutron is unable to register a recordset in the corresponding zone unless subnet-dns-publish-fixed-ip is set. Is it expected behavior? My zone is set to --all-projects.

Revision history for this message
Debasis (debamondal) wrote :
Download full text (15.8 KiB)

I've two networks named 1. private-net, 2. shared-net with dns_domain set as <project_id>.private.com. and <project_id>.shared.com both have router:external set to false.

I also created two zones named {{project_id}}.private.com. and {{project_id}}.shared.com.

In this scenario, I also face another problem while deleting an instance. It errors out with the following logs in the neutron_server.log

2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation [req-4d390a09-0c0d-4642-b833-26f2450d1d92 req-d49afeb5-f798-4bef-8257-cd55c52efcf7 b6d4dba9f64e4a27bbfa4c2806773f25 5b84709850d341658b874b15763ae99c - - default default] DELETE failed.: designateclient.exceptions.NoUniqueMatch: Multiple matches found for <project_id>.internal.com., please use ID instead.
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation Traceback (most recent call last):
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron/plugins/ml2/plugin.py", line 2103, in _pre_delete_port
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation registry.publish(
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron_lib/callbacks/registry.py", line 54, in publish
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation _get_callback_manager().publish(resource, event, trigger, payload=payload)
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron_lib/db/utils.py", line 106, in _wrapped
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation with excutils.save_and_reraise_exception() as ctx:
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_utils/excutils.py", line 227, in __exit__
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation self.force_reraise()
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation raise self.value
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron_lib/db/utils.py", line 104, in _wrapped
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation return function(*args, **kwargs)
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation File "/var/lib/kolla/venv/lib/python3.10/site-packages/neutron_lib/callbacks/manager.py", line 157, in publish
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation raise exceptions.CallbackFailure(errors=errors)
2023-11-19 22:32:39.002 736 ERROR neutron.pecan_wsgi.hooks.translation neutron_lib.callbacks.exceptions.CallbackFailure: Callback neutron.plugins.ml2.extensions.dns_integration._delete_port_in_external_dns_service-8784172188642 failed with "Multiple matches f...

Revision history for this message
Debasis (debamondal) wrote :

I missed this error also

ERROR designate.notification_handler.nova [-] NovaFixedHandler: zone_id is None, ignore the event. in designate_sink.log

How to fix this?

Revision history for this message
Erik Olof Gunnar Andersson (eandersson) wrote :
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

If need to manually add something before deploy there is need to fix somehow the issue and maybe stop depoly with warning message? lets fix and create the followup on https://review.opendev.org/c/openstack/kolla-ansible/+/424679

Changed in kolla-ansible:
status: New → Triaged
status: Triaged → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.