Skip to content

Revert GCU cacl test due to random failure and add sleep in cacl for local test#5046

Merged
wen587 merged 2 commits intosonic-net:masterfrom
wen587:fix_cacl
Jan 29, 2022
Merged

Revert GCU cacl test due to random failure and add sleep in cacl for local test#5046
wen587 merged 2 commits intosonic-net:masterfrom
wen587:fix_cacl

Conversation

@wen587
Copy link
Contributor

@wen587 wen587 commented Jan 28, 2022

Description of PR

Summary: Revert GCU cacl test in kvm. Add sleep in cacl for local test.
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

To fix nightly test GCU cacl random failure.

How did you do it?

Revert the change. Add sleep 1 sec to make sure caclmgrd does update in local test

How did you verify/test it?

Keep it out of KVM tests.

Any platform specific information?

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

Documentation

@wen587 wen587 requested a review from qiluo-msft January 28, 2022 13:46
@wen587 wen587 marked this pull request as ready for review January 29, 2022 00:57
@wen587 wen587 requested a review from a team as a code owner January 29, 2022 00:57
@wen587 wen587 changed the title Fix random GCU cacl test failure Revert GCU cacl test due to random failure Jan 29, 2022
@qiluo-msft qiluo-msft changed the title Revert GCU cacl test due to random failure Revert GCU cacl test due to random failure and Add sleep in cacl for local test Jan 29, 2022
@qiluo-msft qiluo-msft changed the title Revert GCU cacl test due to random failure and Add sleep in cacl for local test Revert GCU cacl test due to random failure and add sleep in cacl for local test Jan 29, 2022
def expect_res_success_acl_rule(duthost, expected_content_list, unexpected_content_list):
"""Check if acl rule added as expected
"""
time.sleep(1) # Sleep 1 sec to ensure caclmgrd does update in case of its UPDATE_DELAY_SECS 0.5s
Copy link
Contributor

@qiluo-msft qiluo-msft Jan 29, 2022

Choose a reason for hiding this comment

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

This is a short term solution. And we need to understand if this is a feature bug. Please remove it after feature fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Thanks

@wen587 wen587 merged commit 8fefbe2 into sonic-net:master Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants