Skip to content

Commit 99cd272

Browse files
gord1306lguohan
authored andcommitted
[Config Test] swss exit after remove port channel due to SAI not found intf (#1028)
When executing the config test case, it has the possibility to cause swss exit. It is due to the intfOrch may be slower than portOrch When the issue not happens, the timeline would be 1. Playbook remove IP from port channel intfOrch want to remove l3 intf, but neighOrch still have reference and the intfOrch will wait to next run 2. neighOrch decrease the reference count neighOrch finish the reference count decrement and then intfOrch remove l3 intf to SAI 3. Playbook remove port channel portOrch remove this port in SAI When the issue happens, the timeline would be 1. Playbook remove IP from port channel intfOrch want to remove l3 intf, but neighOrch still have reference and the intfOrch will wait to next run 2. Playbook remove port channel portOrch remove this port and its l3 intf in SAI 3. neighOrch decrease the reference count neighOrch finish the reference count decrement and then intfOrch remove l3 intf to SAI whcih was removed by step 2. Then the swss will exception
1 parent 3221e4e commit 99cd272

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/test/tasks/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,16 @@
101101
become: yes
102102
when: add_tmp_portchannel_ip
103103

104+
- pause: seconds=5
105+
104106
- name: Remove {{ portchannel_members }} from {{ tmp_portchannel }}
105107
shell: config portchannel member del {{ tmp_portchannel }} {{ item }}
106108
become: yes
107109
when: add_tmp_portchannel_members
108110
with_items: "{{portchannel_members}}"
109111

112+
- pause: seconds=5
113+
110114
- name: Remove {{ tmp_portchannel }}
111115
shell: config portchannel del {{ tmp_portchannel }}
112116
become: yes

0 commit comments

Comments
 (0)