Are you sure you config dvr right? Because I can see that current code [1] has such check to prevent your problem. What is your agent_mode in compute node's l3_agent?
[1] https://github.com/openstack/neutron/blob/bcd383f38cded0ef87ec8f042031814ce362a5f0/neutron/db/l3_agentschedulers_db.py#L523
Are you sure you config dvr right? Because I can see that current code [1] has such check to prevent your problem. What is your agent_mode in compute node's l3_agent?
[1] https:/ /github. com/openstack/ neutron/ blob/bcd383f38c ded0ef87ec8f042 031814ce362a5f0 /neutron/ db/l3_agentsche dulers_ db.py#L523