The issue here is that the hostname and service_name under service_statuses are not unique. If for any reason a duplicate entry for a service gets created, the call to update will always fail, as it's excepting only a single database entry.
https://github.com/openstack/designate/blob/fb5c1a97797c66292151549b82519a682b6300b6/designate/storage/impl_sqlalchemy/migrate_repo/versions/097_add_services.py https://github.com/openstack/designate/blob/fb5c1a97797c66292151549b82519a682b6300b6/designate/storage/impl_sqlalchemy/__init__.py#L1771
We need to update the schema to only allow a unique entry per hostname/service_name.
The issue here is that the hostname and service_name under service_statuses are not unique. If for any reason a duplicate entry for a service gets created, the call to update will always fail, as it's excepting only a single database entry.
https:/ /github. com/openstack/ designate/ blob/fb5c1a9779 7c66292151549b8 2519a682b6300b6 /designate/ storage/ impl_sqlalchemy /migrate_ repo/versions/ 097_add_ services. py /github. com/openstack/ designate/ blob/fb5c1a9779 7c66292151549b8 2519a682b6300b6 /designate/ storage/ impl_sqlalchemy /__init_ _.py#L1771
https:/
We need to update the schema to only allow a unique entry per hostname/ service_ name.