Skip to content

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

@echuawu

Description

@echuawu

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:

  1. Run case test_disable_container_autorestart of tests/test_pretest.py
  2. 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)
```

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions