Skip to content

Add drop monitor attributes to supported debug counter attributes#4120

Merged
prsunny merged 1 commit intosonic-net:masterfrom
manish1-arista:add-drop-monitor-debug-counter-attrs
Jan 23, 2026
Merged

Add drop monitor attributes to supported debug counter attributes#4120
prsunny merged 1 commit intosonic-net:masterfrom
manish1-arista:add-drop-monitor-debug-counter-attrs

Conversation

@manish1-arista
Copy link
Contributor

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs

Details if related

The drop monitor feature introduced new CONFIG_DB
fields drop_monitor_status, drop_count_threshold, incident_count_threshold and
window for drop monitoring configuration. However, these
attributes were not added to the supported_debug_counter_attributes set,
causing error logs during debug counter installation:
"Unknown debug counter attribute 'drop_monitor_status'"

Add the missing drop monitor attribute definitions to debug_counter.h
and include them in the supported attributes set in debug_counter.cpp.

Signed-off-by: manish1 <manish1@arista.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jan 12, 2026

@manish1-arista , can you link the HLD here? Also, is it backward compatible if some platforms doesn't support this new attributes?

@manish1-arista
Copy link
Contributor Author

@manish1-arista , can you link the HLD here? Also, is it backward compatible if some platforms doesn't support this new attributes?

This is a fix for a bug introduced in PR #3509, so there is no new HLD.
The attributes already exist in the Redis DB, but were missing from the validation list, causing Orchagent to log errors. This change simply fixes that logging issue; The functional logic is already working as expected.

@StormLiangMS
Copy link
Contributor

@prsunny could you help to review again?

@prsunny prsunny merged commit 6172445 into sonic-net:master Jan 23, 2026
16 checks passed
ganglyu pushed a commit to ganglyu/sonic-swss that referenced this pull request Jan 26, 2026
…nic-net#4120)

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs

Signed-off-by: ganglyu <glv@nvidia.com>
ypcisco pushed a commit to ypcisco/sonic-swss that referenced this pull request Jan 29, 2026
…nic-net#4120)

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs

Signed-off-by: Yash Pandit <ypcisco@gmail.com>
ksravani-hcl pushed a commit to ksravani-hcl/sonic-swss that referenced this pull request Feb 20, 2026
…nic-net#4120)

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs
@manish1-arista
Copy link
Contributor Author

@prsunny Needs to be cherry picked for 202511

baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
…nic-net#4120)

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs

Signed-off-by: Baorong Liu <96146196+baorliu@users.noreply.github.com>
ksravani-hcl pushed a commit to ksravani-hcl/sonic-swss that referenced this pull request Feb 26, 2026
…nic-net#4120)

What I did
Add the missing drop monitor attribute definitions to debug_counter.h and include them in the supported attributes set in debug_counter.cpp.

Why I did it
The drop monitor feature introduced new CONFIG_DB fields drop_monitor_status, drop_count_threshold, incident_count_threshold and window for drop monitoring configuration. However, these attributes were not added to the supported_debug_counter_attributes set, causing error logs during debug counter installation: "Unknown debug counter attribute 'drop_monitor_status'"
It can replicated by running the test_configurable_drop_counters.py testcase which will fail in teardown with this error.

How I verified it
Verified the fix by running test_configurable_drop_counters.py which was previously failing in teardown with the error "Unknown debug counter attribute 'drop_monitor_status'". After applying the fix, the test passes without generating any error logs
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.

4 participants