Still an issue in icehouse, confirmed:
1) Starting with a network node + compute node
MariaDB [neutron]> select * from ml2_vxlan_endpoints; +----------------+----------+ | ip_address | udp_port | +----------------+----------+ | 192.168.111.27 | 4789 | | 192.168.111.8 | 4789 | +----------------+----------+ 2 rows in set (0.00 sec)
2) Adding a 2nd compute node at 192.168.111.29
MariaDB [neutron]> select * from ml2_vxlan_endpoints; +----------------+----------+ | ip_address | udp_port | +----------------+----------+ | 192.168.111.27 | 4789 | | 192.168.111.29 | 4789 | | 192.168.111.8 | 4789 | +----------------+----------+ 3 rows in set (0.00 sec)
3) Stopping the openvswitch-agent at compute "2"
[root@compute02]# service neutron-openvswitch-agent stop
4) Deleting the compute02 agent from neutron
[root@controller ~(openstack_admin)]# neutron agent-delete f6833f2e-6e98-45f8-ad38-2ab3ca7201b2
5) The endpoint is not gone
Still an issue in icehouse, confirmed:
1) Starting with a network node + compute node
MariaDB [neutron]> select * from ml2_vxlan_ endpoints; ------- ---+--- ------- + ------- ---+--- ------- + ------- ---+--- ------- +
+------
| ip_address | udp_port |
+------
| 192.168.111.27 | 4789 |
| 192.168.111.8 | 4789 |
+------
2 rows in set (0.00 sec)
2) Adding a 2nd compute node at 192.168.111.29
MariaDB [neutron]> select * from ml2_vxlan_ endpoints; ------- ---+--- ------- + ------- ---+--- ------- + ------- ---+--- ------- +
+------
| ip_address | udp_port |
+------
| 192.168.111.27 | 4789 |
| 192.168.111.29 | 4789 |
| 192.168.111.8 | 4789 |
+------
3 rows in set (0.00 sec)
3) Stopping the openvswitch-agent at compute "2"
[root@compute02]# service neutron- openvswitch- agent stop
4) Deleting the compute02 agent from neutron
[root@controller ~(openstack_ admin)] # neutron agent-delete f6833f2e- 6e98-45f8- ad38-2ab3ca7201 b2
5) The endpoint is not gone
MariaDB [neutron]> select * from ml2_vxlan_ endpoints; ------- ---+--- ------- + ------- ---+--- ------- + ------- ---+--- ------- +
+------
| ip_address | udp_port |
+------
| 192.168.111.27 | 4789 |
| 192.168.111.29 | 4789 |
| 192.168.111.8 | 4789 |
+------
3 rows in set (0.00 sec)