Ask Your Question
0

How to remove vxlan tunnels after compute node removal

asked 2014-08-21 15:37:30 -0500

dt.turner gravatar image

Running Icehouse with control, network, and db/cinder nodes. Using VXLAN. We recently expanded our compute node count from 2 to 20 to test our deployment strategy. We needed to rerun the deployment test, so I removed all but 2 compute nodes by first disabling services on those nodes via 'nova-manage' then removing DB entries for the nodes via the steps here: http://blog.changbin.org/2014/07/removedeletedecommission-compute-node.html (http://blog.changbin.org/2014/07/remo...)

nova-manage service list output no longer shows those nodes, however the vxlan tunnels for those nodes remain when examining the output of ovs-vsctl show from the network node and remaining compute nodes.

Obviously the DB cleanup steps missed cleanup of associated neutron objects. I've read that Icehouse now includes an API to "properly" remove compute nodes, but have found no examples of it's use. Any suggestions?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-21 21:58:49 -0500

dbaxps gravatar image
    MariaDB [neutron]> use neutron ;
    Database changed
    MariaDB [neutron]> show tables ;
    +------------------------------+
    | Tables_in_neutron            |
    +------------------------------+
    | agents                       |
    | alembic_version              |
    | allowedaddresspairs          |
    | arista_provisioned_nets      |
    | arista_provisioned_tenants   |
    | arista_provisioned_vms       |
    | cisco_ml2_credentials        |
    | cisco_ml2_nexusport_bindings |
    | consistencyhashes            |
    | dnsnameservers               |
    | externalnetworks             |
    | extradhcpopts                |
    | firewall_policies            |
    | firewall_rules               |
    | firewalls                    |
    | floatingips                  |
    | ipallocationpools            |
    | ipallocations                |
    | ipavailabilityranges         |
    | ml2_brocadenetworks          |
    | ml2_brocadeports             |
    | ml2_flat_allocations         |
    | ml2_gre_allocations          |
    | ml2_gre_endpoints            |
    | ml2_network_segments         |
    | ml2_port_bindings            |
    | ml2_vlan_allocations         |
    | ml2_vxlan_allocations        |
    | ml2_vxlan_endpoints          |
    | networkdhcpagentbindings     |
    | networks                     |
    | ports                        |
    | providerresourceassociations |
    | quotas                       |
    | routerl3agentbindings        |
    | routerroutes                 |
    | routers                      |
    | securitygroupportbindings    |
    | securitygrouprules           |
    | securitygroups               |
    | servicedefinitions           |
    | servicetypes                 |
    | subnetroutes                 |
    | subnets                      |
    +------------------------------+
    44 rows in set (0.00 sec)

    MariaDB [neutron]> select * from ml2_vxlan_endpoints ;
    +---------------+----------+
    | ip_address    | udp_port |
    +---------------+----------+
    | 192.168.0.127 |     4789 |
    | 192.168.0.137 |     4789 |
    +---------------+----------+
    2 rows in set (0.01 sec)

It's snapshot from two node cluster , three node system would look like :-

  MariaDB [neutron]> select * from ml2_vxlan_endpoints ;
    +---------------+----------+
    | ip_address    | udp_port |
    +---------------+----------+
    | 192.168.0.127 |     4789 |
    | 192.168.0.137 |     4789 |
    | 192.168.0.147 |     4789 |
    +---------------+----------+
    3 rows in set (0.01 sec)
    Delete row corresponding deleted compute node
edit flag offensive delete link more

Comments

Thank you for the response. These steps successfully removed the stale endpoints.

dt.turner gravatar imagedt.turner ( 2014-08-27 15:51:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-21 15:37:30 -0500

Seen: 620 times

Last updated: Aug 21 '14