Skip to content

[interface.yml] Raise the failures again in the rescue blocks#1247

Merged
lguohan merged 1 commit intosonic-net:masterfrom
wangxin:fix-rescue
Dec 2, 2019
Merged

[interface.yml] Raise the failures again in the rescue blocks#1247
lguohan merged 1 commit intosonic-net:masterfrom
wangxin:fix-rescue

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Nov 29, 2019

Description of PR

Summary:
Fixes #1244

Required for the 201811 branch too.

In the ansible/roles/test/tasks/interface.yml script, there are some logics to do further checking for debugging purpose in case of PortChannels or Interfaces are down.

The problem is caused by the "rescue" blocks. According to ansible documentation https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html:

"This will ‘revert’ the failed status of the task for the run and the play will continue as if it had succeeded."

The consequence is that ansible testing playbooks using this interface.yml file will not be failed as expected when PortChannels or interfaces are down because the failures have been rescued.

The fix is to raise the failures again in the rescue blocks.

Type of change

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

Approach

How did you do it?

Raise the failures again in the rescue blocks.

How did you verify/test it?

Tested on Mellanox platform.

Any platform specific information?

None

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

Documentation

@lguohan lguohan merged commit ce685b2 into sonic-net:master Dec 2, 2019
yxieca pushed a commit that referenced this pull request Dec 2, 2019
@wangxin wangxin deleted the fix-rescue branch January 10, 2020 07:53
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
901e2efb4f5c6a1179068b43e6a837dfff19d9d9 (HEAD -> 201911, origin/201911) [fpmsyncd] Skip routes to eth0 or docker0 (sonic-net#1606)
6c6f4fbbeb24b6e16a2bffdee760ba6a95e2ceb3 configure extra inc/lib directory for build (sonic-net#1247)
cccb59efa031b817c1936a74db969debbb9b2775 [201911][Cherry-pick] [acl mirror action] Mirror session ref count fix at acl rule attachment (sonic-net#1896)
62dc36d9da988807c7a397fd90ac2859a5a07699 [ci]: Support Azure pipelines on 201911 branch (sonic-net#1806)

Signed-off-by: Abhishek Dosi <[email protected]>
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.

PortChannel or interface down status were not captured because of the 'rescue' block

3 participants