Skip to content
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

[monit][dualtor] Periodically check mux neighbors consistency #15769

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

lolyu
Copy link
Contributor

@lolyu lolyu commented Jul 10, 2023

Why I did it

This depends on PR sonic-net/sonic-utilities#2840.
And it is to enable dualtor_neighbor_check.py as a periodical check.

Work item tracking
  • Microsoft ADO (number only): 22571694

How I did it

How to verify it

Verify on testbed, for any inconsistencies, monit will write ERROR syslogs:

Jul 10 07:05:12.014885 lab-dev-1 ERR dualtor_neighbor_check.py: Found neighbors that are inconsistent with mux states: ['192.168.0.7', '192.168.0.35']
Jul 10 07:05:12.017086 lab-dev-1 ERR dualtor_neighbor_check.py: NEIGHBOR      MAC                PORT        MUX_STATE    IN_MUX_TOGGLE    NEIGHBOR_IN_ASIC    TUNNERL_IN_ASIC    HWSTATUS
Jul 10 07:05:12.017251 lab-dev-1 ERR dualtor_neighbor_check.py: ------------  -----------------  ----------  -----------  ---------------  ------------------  -----------------  ------------
Jul 10 07:05:12.017329 lab-dev-1 ERR dualtor_neighbor_check.py: 192.168.0.7   9e:5d:69:2e:44:a9  Ethernet12  active       no               no                  no                 inconsistent
Jul 10 07:05:12.017471 lab-dev-1 ERR dualtor_neighbor_check.py: 192.168.0.35  86:7c:75:45:a8:f1  Ethernet68  active       no               no                  no                 inconsistent

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

# dualtor_neighbor_check.py: script to check if the neighbor entries in APPL_DB
# has correct neighbor or tunnel route entries in ASIC_DB based on the mux
# states.
check program dualtorNeighborCheck with path "/usr/local/bin/dualtor_neighbor_check.py -o SYSLOG -s ERROR"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at routeCheck above, there is no -o or -s option. Why do we need to explicitly set here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those arguments are to set the log output destination(-o) and log level(-s)

@lolyu
Copy link
Contributor Author

lolyu commented Jul 18, 2023

/azp run

@azure-pipelines
Copy link

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

@prsunny
Copy link
Contributor

prsunny commented Jul 18, 2023

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu
Copy link
Contributor Author

lolyu commented Jul 20, 2023

Hi @prsunny, could you please help merge it?

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #15953

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jul 25, 2023
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #15954

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #16055

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15954

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15953

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15954

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15953

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15954

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!!
#15953

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 2 days.
#15953

2 similar comments
@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 2 days.
#15953

@mssonicbld
Copy link
Collaborator

@lolyu cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 2 days.
#15953

sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants