Skip to content

Fix for the syslog source ip test in the teardown of restore_config_by_config_reload.#17449

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
congh-nvidia:syslog_source_ip
Mar 26, 2025
Merged

Fix for the syslog source ip test in the teardown of restore_config_by_config_reload.#17449
bingwang-ms merged 1 commit intosonic-net:masterfrom
congh-nvidia:syslog_source_ip

Conversation

@congh-nvidia
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
There could be a failure in the teardown of tests/syslog/test_syslog_source_ip.py.
The reason is in restore_config_by_config_reload, there is a step to remove the vrf configured in the test, which will cause ssh flap.
There is a wait_for for the ssh down, but the default connect_timeout for ssh connection in the the wait_for is 5s, meaning if in 5s the ssh connection is restored, it will not consider the connection as down.
The 5s is too long, the ssh could have already been restored from the flap caused by removing the vrf, shorten it to 1s.

And the same for the wait_for in configure_mgmt_vrf_test_data.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Fix for the syslog source ip test in the teardown of restore_config_by_config_reload.

How did you do it?

How did you verify/test it?

Run the test, the failure didn't reproduce.

Any platform specific information?

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

Documentation

The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@liat-grozovik
Copy link
Copy Markdown
Collaborator

/azpw run Azure.sonic-mgmt

@congh-nvidia
Copy link
Copy Markdown
Contributor Author

Hi @bingwang-ms , could you please review?

@congh-nvidia
Copy link
Copy Markdown
Contributor Author

/azpw run

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit 79c91cf into sonic-net:master Mar 26, 2025
12 checks passed
amulyan7 pushed a commit to amulyan7/sonic-mgmt that referenced this pull request Mar 31, 2025
The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.
OriTrabelsi pushed a commit to OriTrabelsi/sonic-mgmt that referenced this pull request Apr 1, 2025
The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
The default connect_timeout is 5s, it's too long for checking the ssh down, ssh could has already recovered in the 5s.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
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.

6 participants