sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
200 stars 731 forks source link

Fix flaky container_autorestart #15720

Open auspham opened 1 day ago

auspham commented 1 day ago

Description of PR

tests/autorestart/test_container_autorestart.py is flaky for several nightly while waiting for bgp neighbor to be up. Previously we were modified to increase from 360 seconds to 600 seconds (10 minutes). However on our T2 devices we have up to 15 bgp neighbors. This essentially give less than 1 minute for a neighbor to be up.

This change make sure each neighbor get at least 1 minute

Summary: Fixes # (issue) 30265202

Type of change

Back port request

Approach

What is the motivation for this PR?

How did you do it?

Fix flaky container restart by allowing up to 1 minute per bgp neighbor

How did you verify/test it?

Any platform specific information?

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

Documentation