Skip to content

tacacs: test_ro_disk: Fix possible failure which could prevent reboot#5288

Merged
wangxin merged 1 commit intosonic-net:masterfrom
renukamanavalan:ro_safe
Mar 8, 2022
Merged

tacacs: test_ro_disk: Fix possible failure which could prevent reboot#5288
wangxin merged 1 commit intosonic-net:masterfrom
renukamanavalan:ro_safe

Conversation

@renukamanavalan
Copy link
Copy Markdown
Contributor

Description of PR

Summary:

  1. Don't add any commands to "finally" clause in main test as any failure could prevent reboot. Leave reboot as the only command in finally.

  2. Don't use duthost to fetch as that could fail, when test takes longer.

Type of change

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

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Ran the test in two testbeds. Both success & failed scenarios. Simulated failed scenario, by removing disk_check call from monit's conf.

Any platform specific information?

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

Documentation

…eboot. Leave reboot

   as the only command in finally.

2) Don't use duthost to fetch as that could fail, when test takes longer.
@renukamanavalan renukamanavalan self-assigned this Mar 8, 2022
@renukamanavalan renukamanavalan requested a review from a team as a code owner March 8, 2022 03:54
@wangxin wangxin merged commit de2d3a8 into sonic-net:master Mar 8, 2022
renukamanavalan added a commit to renukamanavalan/sonic-mgmt that referenced this pull request Mar 8, 2022
…sonic-net#5288)

What is the motivation for this PR?
tacacs: test_ro_disk: Fix possible failure which could prevent reboot

How did you do it?
1. Don't add any commands to "finally" clause in main test as any failure could prevent reboot. Leave reboot as the only command in finally.
2. Don't use duthost to fetch as that could fail, when test takes longer.

How did you verify/test it?
Ran the test in two testbeds. Both success & failed scenarios. Simulated failed scenario, by removing disk_check call from monit's conf.
wangxin pushed a commit that referenced this pull request Mar 8, 2022
…#5288)

What is the motivation for this PR?
tacacs: test_ro_disk: Fix possible failure which could prevent reboot

How did you do it?
1. Don't add any commands to "finally" clause in main test as any failure could prevent reboot. Leave reboot as the only command in finally.
2. Don't use duthost to fetch as that could fail, when test takes longer.

How did you verify/test it?
Ran the test in two testbeds. Both success & failed scenarios. Simulated failed scenario, by removing disk_check call from monit's conf.
@renukamanavalan renukamanavalan deleted the ro_safe branch October 15, 2022 03:10
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