When a router is migrated from DVR to HA, all ports related to DVR should be removed. But I still see port with device_owner router_centralized_snat not removed.
Steps to reproduce:
1) create a network n1, and subnet on this network with name sn1
2) create a DVR, attach it to sn1 through router interface add and set gateway(router-gateway-set public)
3) boot a vm on n1 and associate a floating ip
4) set admin-state to False i.e neutron router-update --admin-state-up False <router-id>
5) Now update the router to HA router i.e
neutron router-update --distributed=False --ha=True <router-id>
6) neutron port-list and also
"select * from ports where device_id="router-id";
will show this "network:router_centralized_snat" port
So are you converting from DVR non-HA to DVR-HA or converting DVR to legacy router HA.
Can you confirm.