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

Fix warmboot issue PR##8367 #1866

Merged
merged 1 commit into from
Aug 14, 2021
Merged

Conversation

Praveen-Brcm
Copy link
Contributor

@Praveen-Brcm Praveen-Brcm commented Aug 11, 2021

What I did
FIx the warmboot issue PR##8367, caused by the changes made as part of the PR#1331

Fixes sonic-net/sonic-buildimage#8367

Why I did it
During the WB when the MAC addresses are added via refillToSync(&m_fdbStateTable) , the attribute SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE is set wrongly for dynamic MAC as well.
Fix is to set SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE only for the case of VXLAN or MCLAG for fdb_type dyamic.

@vaibhavhd
Copy link
Contributor

@Praveen-Brcm I also raised the same fix here - #1863

However, @lguohan suggested to rather revert the below PRs, as this issue should have gotten caught in unit tests. We might need a new PR with below changes along with missing tests in a new PR.

#1331
sonic-net/sonic-buildimage#4819

@Praveen-Brcm
Copy link
Contributor Author

@Praveen-Brcm I also raised the same fix here - #1863

However, @lguohan suggested to rather revert the below PRs, as this issue should have gotten caught in unit tests. We might need a new PR with below changes along with missing tests in a new PR.

#1331
Azure/sonic-buildimage#4819

@vaibhavhd : We had an email conversation with @lguohan today morning and he suggested to push the fix.

@vaibhavhd
Copy link
Contributor

@Praveen-Brcm I also raised the same fix here - #1863
However, @lguohan suggested to rather revert the below PRs, as this issue should have gotten caught in unit tests. We might need a new PR with below changes along with missing tests in a new PR.
#1331
Azure/sonic-buildimage#4819

@vaibhavhd : We had an email conversation with @lguohan today morning and he suggested to push the fix.

Thanks! LGTM then :)

vaibhavhd
vaibhavhd previously approved these changes Aug 11, 2021
@Praveen-Brcm
Copy link
Contributor Author

@vaibhavhd, @prsunny Can you pleashe help rerun the tests.Failures are not related the fix made. Thanks.

@prsunny
Copy link
Collaborator

prsunny commented Aug 12, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan
Copy link
Contributor

lguohan commented Aug 13, 2021

@prsunny , can you check the test failure? are they expected, can we merge this pr?

@prsunny
Copy link
Collaborator

prsunny commented Aug 13, 2021

@prsunny , can you check the test failure? are they expected, can we merge this pr?
failure seems unrelated. We can merge. I've triggered a re-run anyways

@lguohan lguohan merged commit 7d16f69 into sonic-net:master Aug 14, 2021
vaibhavhd added a commit to sonic-net/sonic-buildimage that referenced this pull request Aug 17, 2021
Update sonic-swss submodule to include the latest changes:

Add autoconf-archive package to lgtm sonic-net/sonic-swss#1868
[cfgmgr] Update Makefile.am to consume lib zmq sonic-net/sonic-swss#1864
Fix warmboot issue PR##8367 sonic-net/sonic-swss#1866
judyjoseph pushed a commit that referenced this pull request Aug 20, 2021
During the WB when the MAC addresses are added via refillToSync(&m_fdbStateTable) , the attribute SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE is set wrongly for dynamic MAC as well.
Fix is to set SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE only for the case of VXLAN or MCLAG for fdb_type dyamic.
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
During the WB when the MAC addresses are added via refillToSync(&m_fdbStateTable) , the attribute SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE is set wrongly for dynamic MAC as well.
Fix is to set SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE only for the case of VXLAN or MCLAG for fdb_type dyamic.
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
The race condition is caused by a blocking Redis call which gets the contents of the FDB entry from ASIC DB.
Since it has been implemented as a simple loop, there is no guarantee that entry will be present in DB when the contents are being read.

- What I did
Fixed: [fdb] 'show mac' command failed with t0-56-po2vlan topology sonic-net#1866

- How I did it
Removed blocking calls from fdbshow

- How to verify it
Run FDB test

- Previous command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
Key 'ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{"bvid":"oid:0x260000000009cc","mac":"02:11:22:33:20:00","switch_id":"oid:0x21000000000000"}' unavailable in database '1'

- New command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
No.    Vlan    MacAddress    Port    Type
-----  ------  ------------  ------  ------
Total number of entries 0

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.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.

[warm-reboot] APPLY_VIEW failure in set operation "SAI_API_FDB:brcm_sai_set_fdb_entry_attribute"
5 participants