Skip to content

[action] [PR:573] [chassisd] Address the chassisd crash issue and add UT for it (#573)#580

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/573
Dec 20, 2024
Merged

[action] [PR:573] [chassisd] Address the chassisd crash issue and add UT for it (#573)#580
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/573

Conversation

@mssonicbld
Copy link
Collaborator

Description
On Nokia platform, slot name of Supervisor is string "A" instead of a number. Using "int" to convert it could cause issue backtrace. We should use slot value to any checking without any conversion. This will fixes sonic-net/sonic-buildimage#21131

Motivation and Context
Modify the _get_module_info not to convert "slot" to a string value. And also modify the code not to convert slot value to an to do any checking. Just directly use the returned value of get_slot(). Also add UT test_moduleupdater_check_slot_string() to valid it.

How Has This Been Tested?
Tested on 202405 branch

Signed-off-by: mlok marty.lok@nokia.com

…net#573)

Description
On Nokia platform, slot name of Supervisor is string "A" instead of a number. Using "int" to convert it could cause issue backtrace. We should use slot value to any checking without any conversion. This will fixes sonic-net/sonic-buildimage#21131

Motivation and Context
Modify the _get_module_info not to convert "slot" to a string value. And also modify the code not to convert slot value to an to do any checking. Just directly use the returned value of get_slot(). Also add UT test_moduleupdater_check_slot_string() to valid it.

How Has This Been Tested?
Tested on 202405 branch


Signed-off-by: mlok <marty.lok@nokia.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #573

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit ef80d32 into sonic-net:202405 Dec 20, 2024
lotus-nexthop pushed a commit to lotus-nexthop/sonic-platform-daemons that referenced this pull request Oct 28, 2025
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.

2 participants