Skip to content

Bug: [Smartwtich][Chassisd] Chassisd does not wait for the execution to complete for previous admin state change requests #22138

@gpunathilell

Description

@gpunathilell

Is it platform specific

generic

Importance or Severity

Medium

Description of the bug

On smartswitch, When we run multiple commands such as:
config chassis modules startup DPU0
config chassis modules shutdown DPU0
config chassis modules startup DPU0
This causes chassisd to create multiple threads for processing admin state change requests, calling the platform specific set_admin_state code: Seen here
As these threads are executed in parallel, This causes issues with the DPU receiving power on and power off requests in parallel

Steps to Reproduce

Execute the following commands in series without waiting:
config chassis modules startup DPU0
config chassis modules shutdown DPU0
config chassis modules startup DPU0
config chassis modules shutdown DPU0
Check logs for DPU power on and power off executions

Actual Behavior and Expected Behavior

We need to either:

  • Queue the requests or
  • Return chassis modules startup/shutdown commands with error saying that there is already a command being executed

Relevant log output

Output of show version, show techsupport

Attach files (if any)

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions