Skip to content

Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes#3984

Merged
vvolam merged 3 commits intosonic-net:masterfrom
rameshraghupathy:master-23205
Aug 4, 2025
Merged

Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes#3984
vvolam merged 3 commits intosonic-net:masterfrom
rameshraghupathy:master-23205

Conversation

@rameshraghupathy
Copy link
Contributor

@rameshraghupathy rameshraghupathy commented Jul 17, 2025

Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes

Description
Fixes #23205
The corresponding sonic-platform-daemon commit is: # sonic-net/sonic-platform-daemons#645

Motivation and Context
Some recent design changes not initializing some fields in DPU_STATE and DPU_MODULE_INFO tables.

How Has This Been Tested?
initializing the fields in DPU_STATE and DPU_MODULE_INFO tables

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@gpunathilell
Copy link
Contributor

Fixes: sonic-net/sonic-buildimage#23205

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rameshraghupathy
Copy link
Contributor Author

@vvolam @gpunathilell @oleksandrivantsiv Please take a look

# Use default values if any field is missing
desc = data_dict.get(CHASSIS_MODULE_INFO_DESC_FIELD, 'N/A')
slot = data_dict.get(CHASSIS_MODULE_INFO_SLOT_FIELD, 'N/A')
oper_status = data_dict.get(CHASSIS_MODULE_INFO_OPERSTATUS_FIELD, 'Unknown')
Copy link
Contributor

Choose a reason for hiding this comment

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

MODULE_STATUS_EMPTY here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202505: #4015

mssonicbld added a commit to mssonicbld/sonic-platform-daemons that referenced this pull request Aug 7, 2025
… chassisd/sonic-utiltiies changes for consecutive admin state changes

Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes

#### Description
Fixes #23205
The corresponding sonic-utiltiies  commit is: sonic-net/sonic-utilities#3984

#### Motivation and Context
Some recent design changes not initializing some fields in DPU_STATE and DPU_MODULE_INFO tables.

#### How Has This Been Tested?
initializing the fields in DPU_STATE and DPU_MODULE_INFO tables.
mssonicbld added a commit to sonic-net/sonic-platform-daemons that referenced this pull request Aug 7, 2025
… chassisd/sonic-utiltiies changes for consecutive admin state changes (#656)

Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes

#### Description
Fixes #23205
The corresponding sonic-utiltiies commit is: sonic-net/sonic-utilities#3984

#### Motivation and Context
Some recent design changes not initializing some fields in DPU_STATE and DPU_MODULE_INFO tables.

#### How Has This Been Tested?
initializing the fields in DPU_STATE and DPU_MODULE_INFO tables.
YairRaviv pushed a commit to YairRaviv/sonic-utilities that referenced this pull request Jan 12, 2026
… chassisd/sonic-utiltiies changes for consecutive admin state changes (sonic-net#3984)

* Fixed for #23205

* Addressed a review comment ModuleBase.MODULE_STATUS_EMPTY

* added required import
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.

6 participants