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

test_ro_disk: Save logs before making disk read-only #4432

Merged
merged 15 commits into from
Oct 11, 2021

Conversation

renukamanavalan
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

The logs recorded in DUT during the test are completely lost. If you need to analyze a test run, via syslogs in DUT, it would not be easy to locate the time point of the test (as the timestamp in logs/test.log & in DUT's syslog could differ).

How did you do it?

Remove loganalyzer-disable
Flush the rsyslog (close & re-open all files) and force a log rotate, before making disk RO

How did you verify/test it?

Now you could see the loganalyzer marker and the logs from test, until the point of making disk RO.

Any platform specific information?

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

Documentation

@renukamanavalan renukamanavalan requested review from yxieca, neethajohn and a team October 6, 2021 20:37
@renukamanavalan renukamanavalan self-assigned this Oct 6, 2021
@lgtm-com
Copy link

lgtm-com bot commented Oct 6, 2021

This pull request fixes 1 alert when merging cba4710 into 3d07729 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@renukamanavalan
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@renukamanavalan
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@renukamanavalan renukamanavalan merged commit 3660362 into sonic-net:master Oct 11, 2021
renukamanavalan added a commit to renukamanavalan/sonic-mgmt that referenced this pull request Oct 15, 2021
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.

2 participants