You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Case test_encap_with_mirror_session of test_ipinip.py failed due to swss and other dockers could not start after invoking fixture setup_mirror_session
#11744
Closed
echuawu opened this issue
Feb 21, 2024
· 5 comments
· Fixed by #12909
Description
After running the full cases of tests/test_pretest.py, all the container autorestart functions would be disabled due to case test_disable_container_autorestart.
Then running tests/dualtor/test_ipinip.py, case test_encap_with_mirror_session would failed for sure. Case test_encap_with_mirror_session would invoke fixture setup_mirror_session, and it would invoke fixture setup_uplink. There are steps in fixture setup_uplink, which could restart teamd docker, it would lead swss and syncd docker exits.
# Unmask the service
rand_selected_dut.shell_cmds(cmds="systemctl unmask teamd")
# Restart teamd
rand_selected_dut.shell_cmds(cmds="systemctl restart teamd")
Under the context of container autorestart functions disabled, so the affected dockers would not be up.
Steps to reproduce the issue:
Run case test_disable_container_autorestart of tests/test_pretest.py
Run case test_encap_with_mirror_session of tests/dualtor/test_ipinip.py
Describe the results you received:
Case test_encap_with_mirror_session would failed due to:
Failed: PortChannel didn't startup
Describe the results you expected:
Case pass even at the situation of docker autorestart function disabled
Additional information you deem important:
**Output of `show version`:**
```
(paste your output here)
```
**Attach debug file `sudo generate_dump`:**
```
(paste your output here)
```
The text was updated successfully, but these errors were encountered:
Checked with MSFT team, they said they have not observed any test_ipinip.py failures. Technically speaking, if case test_disable_container_autorestart of tests/test_pretest.py run, then run case test_encap_with_mirror_session of tests/dualtor/test_ipinip.py in the same regression, then it would failed.
Hi @echuawu, I checked the test record internally but didn't see the same error. I believe that's because the autorestart is enabled somehow by some test cases. But the issue makes sense to me. I raised a PR to fix it #12909. Can you please help review? Thanks
Hi @echuawu, I checked the test record internally but didn't see the same error. I believe that's because the autorestart is enabled somehow by some test cases. But the issue makes sense to me. I raised a PR to fix it #12909. Can you please help review? Thanks
Thank you for debugging and updating! Sure, reviewed.
Description
After running the full cases of tests/test_pretest.py, all the container autorestart functions would be disabled due to case test_disable_container_autorestart.
Then running tests/dualtor/test_ipinip.py, case test_encap_with_mirror_session would failed for sure. Case test_encap_with_mirror_session would invoke fixture setup_mirror_session, and it would invoke fixture setup_uplink. There are steps in fixture setup_uplink, which could restart teamd docker, it would lead swss and syncd docker exits.
Under the context of container autorestart functions disabled, so the affected dockers would not be up.
Steps to reproduce the issue:
Describe the results you received:
Case test_encap_with_mirror_session would failed due to:
Failed: PortChannel didn't startup
Describe the results you expected:
Case pass even at the situation of docker autorestart function disabled
Additional information you deem important:
The text was updated successfully, but these errors were encountered: