Skip to content

chassis-packet: resolve the missing static routes #14230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

anamehra
Copy link
Contributor

@anamehra anamehra commented Mar 13, 2023

arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping to
resolve the missing entry.

Why I did it

Fixes #14179
chassis-packet: missing arp entries for static routes causing high orchagent cpu usage

It is observed that some sonic-mgmt test case calls sonic-clear arp, which clears the static arp entries as well. Orchagent or arp_update process does not try to resolve the missing arp entries after clear.

How I did it

arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping if any
found to resolve it.

How to verify it

  1. After boot or config reload, check ipv4 and ipv4 neigh entries to make sure all static route entries are present
    manual validation:
  2. Use sonic-clear arp and sonic-clear ndp to clear all neighbor entries
    run arp_update
    Check for neigh entries. All entries should be present.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

    arp_update should resolve the missing arp/ndp static route
    entries. Added code to check for missing entries and try ping to
    resolve the missing entry.

Signed-off-by: anamehra <[email protected]>
@anamehra anamehra requested a review from lguohan as a code owner March 13, 2023 22:38
@anamehra
Copy link
Contributor Author

@abdosi , please review.
Thanks

@anamehra
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 14230 in repo sonic-net/sonic-buildimage

@abdosi
Copy link
Contributor

abdosi commented Mar 23, 2023

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor

abdosi commented Mar 27, 2023

@prsunny can you please help review/merge this

@lguohan lguohan merged commit a8f8ea3 into sonic-net:master Mar 29, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 31, 2023
arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping to
resolve the missing entry.

Why I did it
Fixes sonic-net#14179

chassis-packet: missing arp entries for static routes causing high orchagent cpu usage

It is observed that some sonic-mgmt test case calls sonic-clear arp, which clears the static arp entries as well. Orchagent or arp_update process does not try to resolve the missing arp entries after clear.

How I did it
arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping if any
found to resolve it.

How to verify it
After boot or config reload, check ipv4 and ipv4 neigh entries to make sure all static route entries are present
manual validation:
Use sonic-clear arp and sonic-clear ndp to clear all neighbor entries
run arp_update
Check for neigh entries. All entries should be present.

Signed-off-by: anamehra <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #14482

mssonicbld pushed a commit that referenced this pull request Apr 3, 2023
arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping to
resolve the missing entry.

Why I did it
Fixes #14179

chassis-packet: missing arp entries for static routes causing high orchagent cpu usage

It is observed that some sonic-mgmt test case calls sonic-clear arp, which clears the static arp entries as well. Orchagent or arp_update process does not try to resolve the missing arp entries after clear.

How I did it
arp_update should resolve the missing arp/ndp static route
entries. Added code to check for missing entries and try ping if any
found to resolve it.

How to verify it
After boot or config reload, check ipv4 and ipv4 neigh entries to make sure all static route entries are present
manual validation:
Use sonic-clear arp and sonic-clear ndp to clear all neighbor entries
run arp_update
Check for neigh entries. All entries should be present.

Signed-off-by: anamehra <[email protected]>
yejianquan added a commit to yejianquan/sonic-buildimage that referenced this pull request Apr 6, 2023
yejianquan added a commit to yejianquan/sonic-buildimage that referenced this pull request Apr 6, 2023
lguohan pushed a commit that referenced this pull request Apr 6, 2023
yejianquan added a commit to yejianquan/sonic-buildimage that referenced this pull request Apr 7, 2023
@yejianquan
Copy link
Contributor

Remove the cherry-pick labels since this PR is reverted, new pr: #14593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

chassis-packet: missing arp entries for static routes causing high orchagent cpu usage
6 participants