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

[dualtor] Add test to simulate server reboot #14690

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

opcoder0
Copy link
Contributor

Description of PR

Add test to simulate server reboot via restart of icmp_responder and verify that the TORs get back to healthy status after the restart is complete.

Summary:
Fixes #12039

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Address test gap.

How did you do it?

Add test to simulate server reboot via shutdown of icmp_responder service and verified that the TOR health is back to normal after reboot is complete.

How did you verify/test it?

Ran tests on dualtor-aa testbeds.

Any platform specific information?

None

Supported testbed topology if it's a new test case?

dualtor

Documentation

None

Copy link
Contributor

@zjswhhh zjswhhh left a comment

Choose a reason for hiding this comment

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

Seems that your change didn't cover scenario 1.

The goal is to confirm when one ToR toggles mux direction, the other ToR will be in sync eventually even without icmp heartbeats.

Scenario 1 link flap after boot up.
One side ToR toggles mux, and the other side is able to sync up in short amount of time.

Comment on lines +101 to +109
def upper_tor_mux_state_verification(state, health):
mux_state_upper_tor = show_muxcable_status(upper_tor_host)
return (mux_state_upper_tor[test_iface]['status'] == state and
mux_state_upper_tor[test_iface]['health'] == health)

def lower_tor_mux_state_verfication(state, health):
mux_state_lower_tor = show_muxcable_status(lower_tor_host)
return (mux_state_lower_tor[test_iface]['status'] == state and
mux_state_lower_tor[test_iface]['health'] == health)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you try using dualtor test utilities?

def verify_tor_states(
expected_active_host, expected_standby_host,
expected_standby_health='healthy', intf_names='all',
cable_type=CableType.default_type, skip_state_db=False,
skip_tunnel_route=True, standalone_tunnel_route=False,
verify_db_timeout=30
):

Copy link
Contributor

@lolyu lolyu left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

[dualtor][test gap] PXEboot scenario
3 participants