Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis #3548

Conversation

ayurkiv-nvda
Copy link
Contributor

@ayurkiv-nvda ayurkiv-nvda commented Sep 20, 2024

What I did

Sometimes during /usr/local/bin/neighbor_advertiser script execution, ACL entries are added to redis database with delay.
So during execution of function check_mirror_session_acls() script can't find ACL entries.
Retry mechanism was added for this check in #3333
But the script will return error and exit with failure after first try.
Need to improve this algorithm.

How I did it

add sleep 0.1 and 'continue' instead of 'exit'

How to verify it

run wr_arp test

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

…E_ACL_ENTRY entries are in redis

Signed-off-by: Andriy Yurkiv <[email protected]>
Signed-off-by: Andriy Yurkiv <[email protected]>
@bingwang-ms bingwang-ms merged commit 66b41e5 into sonic-net:master Sep 30, 2024
7 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Sep 30, 2024
…PE_ACL_ENTRY entries are in redis (sonic-net#3548)

* [fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis

Signed-off-by: Andriy Yurkiv <[email protected]>

* Change log severity

Signed-off-by: Andriy Yurkiv <[email protected]>

---------

Signed-off-by: Andriy Yurkiv <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3560

mssonicbld pushed a commit that referenced this pull request Sep 30, 2024
…PE_ACL_ENTRY entries are in redis (#3548)

* [fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis

Signed-off-by: Andriy Yurkiv <[email protected]>

* Change log severity

Signed-off-by: Andriy Yurkiv <[email protected]>

---------

Signed-off-by: Andriy Yurkiv <[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.

5 participants