Skip to content

[sonic-swsss] Fix the issue of field "next_hop_ip" not getting updated in state DB in ERSPAN Mirror#1375

Merged
abdosi merged 7 commits intosonic-net:masterfrom
abdosi:mirror_state_db_fix
Aug 19, 2020
Merged

[sonic-swsss] Fix the issue of field "next_hop_ip" not getting updated in state DB in ERSPAN Mirror#1375
abdosi merged 7 commits intosonic-net:masterfrom
abdosi:mirror_state_db_fix

Conversation

@abdosi
Copy link
Copy Markdown
Contributor

@abdosi abdosi commented Aug 3, 2020

What I did:
Fix the issue of field "next_hop_ip" not getting updated in state DB
Table: MIRROR_SESSION_TABLE when mirror destination ip next hop changes
for ERSPAN Mirror.

Also fixed divs_mirror library to use wait_for_field_match instead wait_for_entry
when comparing expected value for ASIC and State Db Table.

How I Verify:
Updated ERSPAN DVS test case to check next_hop_ip in state db.
Also test case is enhanced to see if route change in propagated correctly
to state and asic db.

daall
daall previously approved these changes Aug 3, 2020
Copy link
Copy Markdown
Contributor

@daall daall left a comment

Choose a reason for hiding this comment

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

one minor change, overall LGTM. thanks!

daall
daall previously approved these changes Aug 7, 2020
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 7, 2020

retest this please

4 similar comments
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 7, 2020

retest this please

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 8, 2020

retest this please

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 8, 2020

retest this please

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 9, 2020

retest this please

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 11, 2020

@daall Thanks for debug. Updated mirror library to use wait_for_field_match instead of wait_for_entry

@daall
Copy link
Copy Markdown
Contributor

daall commented Aug 11, 2020

retest vs please

@daall
Copy link
Copy Markdown
Contributor

daall commented Aug 12, 2020

retest this please

2 similar comments
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 14, 2020

retest this please

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Aug 15, 2020

retest this please

@sonic-net sonic-net deleted a comment from daall Aug 17, 2020
abdosi added 6 commits August 18, 2020 11:32
in State DB Table MIRROR_SESSION_TABLE

Updated test case to check next_hop_ip in state db.
Also test case enahanced to see if route change in propgated correctly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
we do not get expected (key,value) tuple instead of waiting for just key
Danny was able to reproduce
the issue on local setup. It is more timing issue where
if dvs container is running fast we will not see this issue
as value get updated quickly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
taking more then 5 seconds. To fix that yse polling interval of 10
seconds.
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi abdosi force-pushed the mirror_state_db_fix branch from 9d7c457 to 06a385a Compare August 18, 2020 18:33
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Aug 18, 2020

Looks like swss deb package is not correct and @daall has PR to fix that Azure/sonic-build-tools#153

daall
daall previously approved these changes Aug 19, 2020
@daall
Copy link
Copy Markdown
Contributor

daall commented Aug 19, 2020

retest vs please

as they are resolved with sonic-build-tools fix

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi abdosi merged commit 881c3d4 into sonic-net:master Aug 19, 2020
@abdosi abdosi deleted the mirror_state_db_fix branch August 19, 2020 14:49
abdosi added a commit that referenced this pull request Aug 19, 2020
…d in state DB in ERSPAN Mirror (#1375)

* Fix the issue of field "next_hop_ip" not getting updated
in State DB Table MIRROR_SESSION_TABLE

Updated test case to check next_hop_ip in state db.
Also test case enahanced to see if route change in propgated correctly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix test failure and address review comments

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix for Mirror ERSPAN Failure. Issue is we need to wait till
we do not get expected (key,value) tuple instead of waiting for just key
Danny was able to reproduce
the issue on local setup. It is more timing issue where
if dvs container is running fast we will not see this issue
as value get updated quickly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* based on syslog on Jenkin route/nexthop update is
taking more then 5 seconds. To fix that yse polling interval of 10
seconds.

* Increase timeout to 60 seconds

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Added Log

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Revert some of changes done to debug/fix test failure issue
as they are resolved with sonic-build-tools fix

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…d in state DB in ERSPAN Mirror (sonic-net#1375)

* Fix the issue of field "next_hop_ip" not getting updated
in State DB Table MIRROR_SESSION_TABLE

Updated test case to check next_hop_ip in state db.
Also test case enahanced to see if route change in propgated correctly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix test failure and address review comments

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix for Mirror ERSPAN Failure. Issue is we need to wait till
we do not get expected (key,value) tuple instead of waiting for just key
Danny was able to reproduce
the issue on local setup. It is more timing issue where
if dvs container is running fast we will not see this issue
as value get updated quickly.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* based on syslog on Jenkin route/nexthop update is
taking more then 5 seconds. To fix that yse polling interval of 10
seconds.

* Increase timeout to 60 seconds

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Added Log

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Revert some of changes done to debug/fix test failure issue
as they are resolved with sonic-build-tools fix

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
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.

State DB table MIRROR_SESSION_TABLE next_hop_ip does not get updated

3 participants