[OVN] Left-over namespaces left in the environment by ovn-metadata-agent

Bug #1832003 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Unassigned

Bug Description

After running performance tests (with browbeat [0]) in a lab it was noticed that the ovn-metadata-agent is leaving some namespaces left in the environment:

$ ip netns
ovnmeta-99cb0c5f-5f1d-4634-977c-0ef5ea0ef3d0 (id: 4)
ovnmeta-5467b566-4a63-49f8-a9dc-105f0399e890 (id: 3)
ovnmeta-a20ab2b6-74a0-42cf-8206-6dfa570e957c (id: 2)
ovnmeta-ab536132-e15e-474e-b511-a2569a35b540 (id: 1)
...

Things are cleaned up upon restarting the ovn-metadata-agent service/container:

2019-06-07 12:23:09.065 1047753 INFO networking_ovn.agent.metadata.agent [-] Cleaning up ovnmeta-a17e6f3e-ea14-45b8-aba4-8212019ed58a namespace which is not needed anymore
2019-06-07 12:23:10.136 1047753 INFO networking_ovn.agent.metadata.agent [-] Cleaning up ovnmeta-bec3e303-ea0a-465a-8a4f-50505b114fd5 namespace which is not needed anymore
2019-06-07 12:23:11.206 1047753 INFO networking_ovn.agent.metadata.agent [-] Cleaning up ovnmeta-c81b8353-286c-46ab-b0f0-5ecbc45c98c0 namespace which is not needed anymore
2019-06-07 12:23:12.292 1047753 INFO networking_ovn.agent.metadata.agent [-] Cleaning up ovnmeta-24d8793c-a3ae-4d57-8620-9f1318d8cf6e namespace which is not needed anymore
...

[0] https://github.com/cloud-bulldozer/browbeat

Tags: ovn
Changed in networking-ovn:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
Daniel Alvarez (dalvarezs) wrote :

Likely because we're just monitoring the UPDATE of Port_Binding table [0] and a port may be deleted before it transitions to up so we should react to deletion of rows.

[0] https://github.com/openstack/networking-ovn/blob/6.0.0.0rc1/networking_ovn/agent/metadata/agent.py#L75

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

The OVN driver now lives in the neutron repository. Moving this bug to their tracker.

tags: added: ovn
summary: - Left-over namespaces left in the environment by ovn-metadata-agent
+ [OVN] Left-over namespaces left in the environment by ovn-metadata-agent
no longer affects: networking-ovn
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :
Changed in neutron:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.