Skip to content

Fix fixture invocation order in qos/qos_sai_base.py#12152

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
vivekverma-arista:fix-qos-snmp
Apr 18, 2024
Merged

Fix fixture invocation order in qos/qos_sai_base.py#12152
StormLiangMS merged 2 commits intosonic-net:masterfrom
vivekverma-arista:fix-qos-snmp

Conversation

@vivekverma-arista
Copy link
Contributor

Description of PR

Summary: Fix fixture invocation order in qos/qos_sai_base.py
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

qos/test_qos_sai.py fail with the following -

failed on setup with "Failed: Not all critical processes are healthy"

The fixture dut_disable_ipv6 disables ipv6 due to which the following critical processes don't come up after swapping syncd ( fixture swapSyncd_on_selected_duts ) -

  1. program:snmpd
  2. program:snmp-subagent

And this issue only hits if swapSyncd_on_selected_duts is executed after dut_disable_ipv6 and since there is no dependency between these fixtures, they can execute in any order.

How did you do it?

This change introduces a dependency between dut_disable_ipv6 & swapSyncd_on_selected_duts such that former is always executed after latter.

How did you verify/test it?

Tested on Arista-7050CX3 platform with dualtor topology.

Any platform specific information?

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

Documentation

@StormLiangMS
Copy link
Collaborator

hi @neethajohn @XuChen-MSFT could you help to review?

@neethajohn
Copy link
Contributor

@XuChen-MSFT , please take a look

Copy link
Contributor

@XuChen-MSFT XuChen-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 9806040 into sonic-net:master Apr 18, 2024
@StormLiangMS
Copy link
Collaborator

hi @vivekverma-arista could you run test with 202311 image?

@vivekverma-arista
Copy link
Contributor Author

vivekverma-arista commented Apr 22, 2024

hi @vivekverma-arista could you run test with 202311 image?

Hi @StormLiangMS
I have tested with 202311 image. The test passes and no new regression is seen because of this fix.

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Apr 26, 2024
What is the motivation for this PR?
qos/test_qos_sai.py fail with the following -

failed on setup with "Failed: Not all critical processes are healthy"
The fixture dut_disable_ipv6 disables ipv6 due to which the following critical processes don't come up after swapping syncd ( fixture swapSyncd_on_selected_duts  ) -

program:snmpd
program:snmp-subagent
And this issue only hits if swapSyncd_on_selected_duts is executed after dut_disable_ipv6 and since there is no dependency between these fixtures, they can execute in any order.

How did you do it?
This change introduces a dependency between dut_disable_ipv6 & swapSyncd_on_selected_duts such that former is always executed after latter.

How did you verify/test it?
Tested on Arista-7050CX3 platform with dualtor topology.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #12596

mssonicbld pushed a commit that referenced this pull request Apr 26, 2024
What is the motivation for this PR?
qos/test_qos_sai.py fail with the following -

failed on setup with "Failed: Not all critical processes are healthy"
The fixture dut_disable_ipv6 disables ipv6 due to which the following critical processes don't come up after swapping syncd ( fixture swapSyncd_on_selected_duts  ) -

program:snmpd
program:snmp-subagent
And this issue only hits if swapSyncd_on_selected_duts is executed after dut_disable_ipv6 and since there is no dependency between these fixtures, they can execute in any order.

How did you do it?
This change introduces a dependency between dut_disable_ipv6 & swapSyncd_on_selected_duts such that former is always executed after latter.

How did you verify/test it?
Tested on Arista-7050CX3 platform with dualtor topology.
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Sep 14, 2024
What is the motivation for this PR?
qos/test_qos_sai.py fail with the following -

failed on setup with "Failed: Not all critical processes are healthy"
The fixture dut_disable_ipv6 disables ipv6 due to which the following critical processes don't come up after swapping syncd ( fixture swapSyncd_on_selected_duts  ) -

program:snmpd
program:snmp-subagent
And this issue only hits if swapSyncd_on_selected_duts is executed after dut_disable_ipv6 and since there is no dependency between these fixtures, they can execute in any order.

How did you do it?
This change introduces a dependency between dut_disable_ipv6 & swapSyncd_on_selected_duts such that former is always executed after latter.

How did you verify/test it?
Tested on Arista-7050CX3 platform with dualtor topology.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #14587

mssonicbld pushed a commit that referenced this pull request Sep 14, 2024
What is the motivation for this PR?
qos/test_qos_sai.py fail with the following -

failed on setup with "Failed: Not all critical processes are healthy"
The fixture dut_disable_ipv6 disables ipv6 due to which the following critical processes don't come up after swapping syncd ( fixture swapSyncd_on_selected_duts  ) -

program:snmpd
program:snmp-subagent
And this issue only hits if swapSyncd_on_selected_duts is executed after dut_disable_ipv6 and since there is no dependency between these fixtures, they can execute in any order.

How did you do it?
This change introduces a dependency between dut_disable_ipv6 & swapSyncd_on_selected_duts such that former is always executed after latter.

How did you verify/test it?
Tested on Arista-7050CX3 platform with dualtor topology.
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.

5 participants