Comment 0 for bug 2059805

Revision history for this message
macchese (max-liccardo) wrote : Removing nova-compute with ovn-chassis related doesn't remove gateway chassis

my environment is a jammy openstack bundle 2023.2 with
ovn-central .09/stable
ovn-chassis 3.09/stable

After removing a compute-node with a related ovn-chassis this node is not removed from routers gateway chassis.

how to reproduce:
1) setup a router with an external gateway
2) check if ht node you want to remove is a router gateway
ubuntu@juju:~$ juju exec --unit ovn-central/x 'ovn-nbctl show'|grep gateway, where x is an unit from ovn-central
your should display your node

3) check the juju status of your node (my machine is 7):
ubuntu@juju:~$ juju status machine 7 |egrep "nova-compute/|ovn-chassis/"
nova-compute/13* active idle 7 192.168.6.101 Unit is ready
  ovn-chassis/46 active idle 192.168.6.101 Unit is ready

2) remove the node according to https://docs.openstack.org/charm-guide/latest/admin/ops-scale-back-nova-compute.html:
ubuntu@juju:~$ juju run nova-compute/13 disable
ubuntu@juju:~$ juju run nova-compute/13 remove-from-cloud
ubuntu@juju:~$ juju remove-unit nova-compute/13

3) check if units nova-compute/13 and ovn-chassis/46 are removed:
ubuntu@juju:~$ juju status nova-compute

4) check if your node is removed from the router:
ubuntu@juju:~$ juju exec --unit ovn-central/x 'ovn-nbctl show'|grep gateway, where x is an unit from ovn-central

At this point my removed node is still present into the routers gateway chassis list