I did more testing today. I apply patch with refactor https://review.openstack.org/#/c/230481/ (in create_router notifications are outside of transaction) . There was duplicates, I added UniqueConstraint after that appeared extra bindings with l3_agent_id=None. I've added transaction in create_ha_port_and_bind in neutron/scheduler/l3_agent_scheduler.py Extra bindings with l3_agent_id=None still appeared. I'll push this changes and will think over weekend what else could be done.
This all seems very strange for me also.
I did more testing today. I apply patch with refactor https:/ /review. openstack. org/#/c/ 230481/ (in create_router notifications are outside of transaction) . There was duplicates, I added UniqueConstraint after that appeared extra bindings with l3_agent_id=None. I've added transaction in create_ ha_port_ and_bind in neutron/ scheduler/ l3_agent_ scheduler. py Extra bindings with l3_agent_id=None still appeared. I'll push this changes and will think over weekend what else could be done.