[Mellanox] Enhance is_module_host_management_mode to also check syncd's sai.profile#19261
Merged
liat-grozovik merged 2 commits intosonic-net:masterfrom Jun 13, 2024
Conversation
…for the Host CMIS management flag in syncd's sai.profile
platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py
Outdated
Show resolved
Hide resolved
platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py
Outdated
Show resolved
Hide resolved
Junchao-Mellanox
approved these changes
Jun 11, 2024
keboliu
approved these changes
Jun 12, 2024
liat-grozovik
approved these changes
Jun 13, 2024
Contributor
|
@prgeor FYI |
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Jun 18, 2024
…'s sai.profile (sonic-net#19261) - Why I did it Two steps (among others) are required to enable the host CMIS management feature: enabling it in the switch's sai.profile and performing a config reload. During the timeframe between these two steps, the control sysfs might be accessed, but they will not be present on the system until the latter step, the config reload, is completed. The code should try to access the control sysfs only after the config reload step. A good indication that this has been done is to check if the relevant entry is included in syncd's sai.profile. In contrast to the switch's sai.profile, syncd's sai.profile is only updated with the Host CMIS management support flag after the reload is complete. - How I did it I updated the is_module_host_management_mode() implementation to first look for the Host CMIS management support flag in syncd's sai.profile, and only if it does not exist for some reason, look for it in the switch's sai.profile. - How to verify it Add the Host CMIS management support flag to the switch's sai.profile and verify that the following log does not appear: ERR pmon#xcvrd: Exception occured at DomInfoUpdateTask thread due to Exception('control sysfs for SFP 20 does not exist')
Collaborator
|
Cherry-pick PR to 202405: #19341 |
mssonicbld
pushed a commit
that referenced
this pull request
Jun 18, 2024
…'s sai.profile (#19261) - Why I did it Two steps (among others) are required to enable the host CMIS management feature: enabling it in the switch's sai.profile and performing a config reload. During the timeframe between these two steps, the control sysfs might be accessed, but they will not be present on the system until the latter step, the config reload, is completed. The code should try to access the control sysfs only after the config reload step. A good indication that this has been done is to check if the relevant entry is included in syncd's sai.profile. In contrast to the switch's sai.profile, syncd's sai.profile is only updated with the Host CMIS management support flag after the reload is complete. - How I did it I updated the is_module_host_management_mode() implementation to first look for the Host CMIS management support flag in syncd's sai.profile, and only if it does not exist for some reason, look for it in the switch's sai.profile. - How to verify it Add the Host CMIS management support flag to the switch's sai.profile and verify that the following log does not appear: ERR pmon#xcvrd: Exception occured at DomInfoUpdateTask thread due to Exception('control sysfs for SFP 20 does not exist')
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Jun 20, 2024
…'s sai.profile (sonic-net#19261) - Why I did it Two steps (among others) are required to enable the host CMIS management feature: enabling it in the switch's sai.profile and performing a config reload. During the timeframe between these two steps, the control sysfs might be accessed, but they will not be present on the system until the latter step, the config reload, is completed. The code should try to access the control sysfs only after the config reload step. A good indication that this has been done is to check if the relevant entry is included in syncd's sai.profile. In contrast to the switch's sai.profile, syncd's sai.profile is only updated with the Host CMIS management support flag after the reload is complete. - How I did it I updated the is_module_host_management_mode() implementation to first look for the Host CMIS management support flag in syncd's sai.profile, and only if it does not exist for some reason, look for it in the switch's sai.profile. - How to verify it Add the Host CMIS management support flag to the switch's sai.profile and verify that the following log does not appear: ERR pmon#xcvrd: Exception occured at DomInfoUpdateTask thread due to Exception('control sysfs for SFP 20 does not exist')
Collaborator
|
Cherry-pick PR to 202311: #19361 |
mssonicbld
pushed a commit
that referenced
this pull request
Jun 20, 2024
…'s sai.profile (#19261) - Why I did it Two steps (among others) are required to enable the host CMIS management feature: enabling it in the switch's sai.profile and performing a config reload. During the timeframe between these two steps, the control sysfs might be accessed, but they will not be present on the system until the latter step, the config reload, is completed. The code should try to access the control sysfs only after the config reload step. A good indication that this has been done is to check if the relevant entry is included in syncd's sai.profile. In contrast to the switch's sai.profile, syncd's sai.profile is only updated with the Host CMIS management support flag after the reload is complete. - How I did it I updated the is_module_host_management_mode() implementation to first look for the Host CMIS management support flag in syncd's sai.profile, and only if it does not exist for some reason, look for it in the switch's sai.profile. - How to verify it Add the Host CMIS management support flag to the switch's sai.profile and verify that the following log does not appear: ERR pmon#xcvrd: Exception occured at DomInfoUpdateTask thread due to Exception('control sysfs for SFP 20 does not exist')
GaladrielZhao
added a commit
to GaladrielZhao/sonic-buildimage
that referenced
this pull request
Mar 12, 2026
SONiC 202511 should use FRR 10.4.1 Release.
This commit updates submodule sonic-frr pointing to @88f5c06:
FRR Release 10.4.1
Bug Fixes:
* bgpd: initialize local variable (backport sonic-net#19233)
* ospfd: Use after free cleanup of lsa (backport sonic-net#19224)
* vtysh: copy config from file should actually apply (backport sonic-net#19242)
* Revert PR sonic-net#18358: BGP evpn testing and bug fixes related to non default EVPN backbone (backport sonic-net#19241)
* topotests: improve embedded RP test reliability (backport sonic-net#19240)
* lib, zebra: mark singleton nexthops inactive/active on link state changes for wecmp (backport sonic-net#18947)
* bgpd: LL next-hop capabilty fixes (backport sonic-net#19261)
* eigrp: validate hello packets and tlvs better (backport sonic-net#19251)
* bgpd: Fix compilation error in bgpd module: Update TP_ARGS for bgp (backport sonic-net#19266)
* bgpd: Ensure addpath does not withdraw selected route in some situations (backport sonic-net#19210)
* bgpd: [GR] fixed selectionDeferralTimer to display select_defer_time val by sonic-net#19282
* bgpd: LL next-hop capabilty fixes (round 2) (backport sonic-net#19277)
* lib: compute link-state zapi message size (backport sonic-net#19290)
* zebra: Fix buffer overflows found by fuzzing. (backport sonic-net#19303)
Signed-off-by: Jafar Al-Gharaibeh <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
Two steps (among others) are required to enable the host CMIS management feature: enabling it in the switch's sai.profile and performing a config reload. During the timeframe between these two steps, the control sysfs might be accessed, but they will not be present on the system until the latter step, the config reload, is completed. The code should try to access the control sysfs only after the config reload step. A good indication that this has been done is to check if the relevant entry is included in syncd's sai.profile. In contrast to the switch's sai.profile, syncd's sai.profile is only updated with the Host CMIS management support flag after the reload is complete.
Work item tracking
How I did it
I updated the is_module_host_management_mode() implementation to first look for the Host CMIS management support flag in syncd's sai.profile, and only if it does not exist for some reason, look for it in the switch's sai.profile.
How to verify it
Add the Host CMIS management support flag to the switch's sai.profile and verify that the following log does not appear:
ERR pmon#xcvrd: Exception occured at DomInfoUpdateTask thread due to Exception('control sysfs for SFP 20 does not exist')
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)