SRIOV OVN metadata namespaces not cleaned up after ports are unbounded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Jakub Libosvar |
Bug Description
Description of problem:
See 'Steps to Reproduce' below.
The external port is deleted from the port_binding table instead of chassis removed and then deleted so the PortBindingUpdate event is never generated.
The metadata agent reacts on Port Binding Update event only. That means when there is a VM and we delete it, it first calls port update to remove the chassis from the port binding, so the port binding is chassis=[] before the PB gets deleted.
In SRIOV scenario we don't do that and we delete a port that is bound.
We need a special event for the sriov deletion case.
Steps to Reproduce:
1. create an SRIOV port on either a tenant or a prov network + create a VM attached to that port - check ovn metadata namespace has been created on a GW node
2. remove that VM - the ovn metadata namespace is not removed from that GW node
3. even after removing the port, the namespace is not removed
Actual results:
OVN metadata namespaces clean up mechanism not working with SRIOV ports
Expected results:
Namespaces should be removed after port is removed
tags: | added: neutron-proactive-backport-potential |
Fix proposed to branch: master /review. opendev. org/724287
Review: https:/