Duplicated ARP responses from ovnmetadata namespaces

Bug #1943266 reported by Erlon R. Cruz
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ovn (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
High
Unassigned
Hirsute
Fix Released
High
Unassigned
Impish
Fix Released
High
Unassigned

Bug Description

When OpenStack instances are connected to an external network, an ovn-etadata-namespace is created in each compute that has VMs attached to that
network. Because the ovn-metadata namespace has interfaces with the same mac address in all computers, external switches might ARP query for the IP
 and receive multiple responses in different ports triggering network error alerts.

[ubuntu@sombrafam-bastion(kvm):~/internal_git/stsstack-bundles/openstack]$ sudo arping -c 1 10.5.150.0
ARPING 10.5.150.0
42 bytes from fa:16:3e:d3:10:01 (10.5.150.0): index=0 time=1.678 msec
42 bytes from fa:16:3e:d3:10:01 (10.5.150.0): index=1 time=2.143 msec

--- 10.5.150.0 statistics ---
1 packets transmitted, 2 packets received, 0% unanswered (1 extra)
rtt min/avg/max/std-dev = 1.678/1.911/2.143/0.232 ms

Reproducer: https://paste.ubuntu.com/p/nbnhvTM9d4/

Related branches

Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

I`m posting this as a bug because I believe that the ovn-metadata namespace does not need
and should not be reachable from any other host other than the compute itself.
This traffic could easily be blocked with a OpenFlow rule.

description: updated
description: updated
description: updated
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

FYI, this bug was fixed in the upstream branch v21.06.0 this is the patch:

https://github.com/ovn-org/ovn/commit/578238b36073256c524a4c2b6ed7521f73aa0019

Changed in networking-ovn:
status: New → Confirmed
assignee: nobody → Erlon R. Cruz (sombrafam)
no longer affects: neutron
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Just to amend my previous stance. I have tested the fix but it doesn't fix the problem
for all cases. In the case where a host pings or arping the port IP, the ping packets continue
to be returned. 1 for each compute node.

Revision history for this message
Frode Nordahl (fnordahl) wrote :

Erlon: For completeness I'm adding the second patch you found we need to resolve this issue: https://github.com/ovn-org/ovn/commit/96959e56d634c8d888af9e3ee340602593c7e4fa

Changed in ovn (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in networking-ovn:
status: Confirmed → Invalid
Frode Nordahl (fnordahl)
Changed in ovn (Ubuntu Focal):
status: New → Triaged
status: Triaged → In Progress
importance: Undecided → High
Changed in ovn (Ubuntu Hirsute):
status: New → In Progress
importance: Undecided → High
Changed in ovn (Ubuntu Impish):
status: Triaged → Fix Released
importance: High → Undecided
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

This bug is missing a completed SRU template in its description but looking at the upload I see that there is a test for this change so I'm accepting the upload. However, please fill out the bug description with SRU information.

Changed in ovn (Ubuntu Hirsute):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Erlon, or anyone else affected,

Accepted ovn into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ovn/20.12.0-0ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

The Hirsute upload of ovn which fixed this bug include a patch, 'lp-1943266-pinctrl-Don-t-send-gARPs-for-localports.patch', which is not included in the focal upload of ovn. Why is this patch not included for Focal?

Changed in ovn (Ubuntu Focal):
status: In Progress → Incomplete
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Hi Brian, The current version of the OVN package for Focal (20.03.2) already brings that patch.

Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Erlon, or anyone else affected,

Accepted ovn into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ovn/20.03.2-0ubuntu0.20.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ovn (Ubuntu Focal):
status: Incomplete → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
tags: added: verification-done-hirsute
removed: verification-needed-hirsute
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :
tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Luciano Lo Giudice (lmlogiudice) wrote :

I deployed the openstack-base bundle (adjusted the bridge as in the reproducer). To check for ARP conflicts, I used the Linux tool arp-scan on the local interfaces and found no conflicts. I'm marking this as 'verification-done'.

Mathew Hodson (mhodson)
affects: networking-ovn → ubuntu-translations
no longer affects: ubuntu-translations
Changed in ovn (Ubuntu):
importance: Undecided → High
Changed in ovn (Ubuntu Impish):
importance: Undecided → High
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for ovn has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ovn - 20.03.2-0ubuntu0.20.04.2

---------------
ovn (20.03.2-0ubuntu0.20.04.2) focal; urgency=medium

  * Add RBAC rules for IGMP_Group table (LP: #1914988):
    - d/p/lp-1914988-Add-IGMP_Group-to-ovn-controller-RBAC.patch
    - d/p/lp-1914988-tests-Use-ovn_start-in-tests-ovn-controller.at.patch
    - d/p/lp-1914988-tests-Make-certificate-generation-extendable.patch
    - d/p/lp-1914988-tests-Test-with-SSL-and-RBAC-for-controller-by-defau.patch
  * d/p/lp-1943266-physical-do-not-forward-traffic-from-localport-to-a-.patch:
    Do not forward traffic from localport to localnet ports (LP: #1943266).a
  * d/p/lp-1937075-ovn-ctl-Fix-stucked-while-do-cluster-db-init.patch:
    Fix issue where clustered database might not be upgraded (LP: #1937075).

 -- Frode Nordahl <email address hidden> Fri, 01 Oct 2021 09:42:00 +0200

Changed in ovn (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ovn - 20.12.0-0ubuntu3

---------------
ovn (20.12.0-0ubuntu3) hirsute; urgency=medium

  * Add RBAC rules for IGMP_Group table (LP: #1914988):
    - d/p/lp-1914988-Add-IGMP_Group-to-ovn-controller-RBAC.patch
    - d/p/lp-1914988-northd-Add-missing-RBAC-rules-for-FDB-table.patch
    - d/p/lp-1914988-northd-Amend-Chassis-RBAC-rules.patch
    - d/p/lp-1914988-northd-Add-Controller_Event-RBAC-rules.patch
    - d/p/lp-1914988-tests-Amend-release-stale-port-binding-test-for-RBAC.patch
    - d/p/lp-1914988-tests-Use-ovn_start-in-tests-ovn-controller.at.patch
    - d/p/lp-1914988-tests-Make-certificate-generation-extendable.patch
    - d/p/lp-1914988-tests-Test-with-SSL-and-RBAC-for-controller-by-defau.patch
  * d/p/lp-1943266-physical-do-not-forward-traffic-from-localport-to-a-.patch:
    Do not forward traffic from localport to localnet ports (LP: #1943266).
  * d/p/lp-1913024-northd-Add-Chassis_Private-external_ids-column-to-RB.patch
    Update RBAC rules for Chassis_Private table (LP: #1913024).
  * d/p/lp-1917475-northd-Amend-RBAC-rules-for-Port_Binding-table.patch
    Update RBAC rules for Port_Binding table (LP: #1917475).

 -- Frode Nordahl <email address hidden> Fri, 01 Oct 2021 09:42:00 +0200

Changed in ovn (Ubuntu Hirsute):
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.