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

[action] [PR:3071] route_check.py should not print too many outputs to stdout (#3071) #3092

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

mssonicbld
Copy link
Collaborator

Otherwise it fills up the pipe and print() will block. When this happens, route_check.py will timeout and eventually killed by monit after several minutes.

What I did

Add an option in print_message() to skip printing.

How I did it

Add an option write_to_stdout=True, in mitigate_installed_not_offloaded_frr_routes() call print_message() with write_to_stdout=False.

How to verify it

Manually run route_check.py, verify that the messages were shown in syslog but not in stdout.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

…#3071)

Otherwise it fills up the pipe and print() will block. When this happens, `route_check.py` will timeout and eventually killed by `monit` after several minutes.

#### What I did
Add an option in `print_message()` to skip printing.

#### How I did it
Add an option `write_to_stdout=True`, in `mitigate_installed_not_offloaded_frr_routes()` call `print_message()` with `write_to_stdout=False`.

#### How to verify it
Manually run route_check.py, verify that the messages were shown in syslog but not in stdout.

#### Previous command output (if the output of a command-line utility has changed)

#### New command output (if the output of a command-line utility has changed)
@mssonicbld
Copy link
Collaborator Author

Original PR: #3071

@mssonicbld mssonicbld merged commit 61903ee into sonic-net:202305 Dec 20, 2023
5 checks passed
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.

2 participants