Skip to content

Commit

Permalink
[Pytest] Test inability of Monit to reset internal counter and its ne…
Browse files Browse the repository at this point in the history
…w syntax as a workaround (#5492)

What is the motivation for this PR?
This PR adds two new test cases to test a Monit issue fixed by the PR (sonic-net/sonic-buildimage#10288) in SONiC image repo.

How did you do it?
Specifically the 'stress' utility is leveraged to increase memory usage of a container continuously, then

Test whether that container can be restarted by the script ran by Monit.

Test whether that container can be restarted by the script ran by Moni; If that container was restarted, then test the script ran
by Monit was unable to restart the container anymore due to Monit failed to reset its internal counter.

Test whether that container can be restarted by the script ran by Moni; If that container was restarted, then test the script ran
by Monit was able to restart the container with the help of new Monit syntax although Monit failed to reset its internal
counter.

How did you verify/test it?
I tested manually against the DuT str-s6000-0n-5 with 20201231.54 and 20191130.83 images. and following is testing results with 20201231.54 image.
  • Loading branch information
yozhao101 authored Apr 27, 2022
1 parent a2fe4b0 commit 0b0ddb3
Showing 1 changed file with 348 additions and 75 deletions.
Loading

0 comments on commit 0b0ddb3

Please sign in to comment.