-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove runtime config update for FLEX_COUNTER_TABLE #20302
Comments
Discussed in meeting, @volodymyrsamotiy Please help assign the issue to the right owner. Thanks! |
|
@wen587 @bingwang-ms @qiluo-msft Could you please describe with a more specific example why this causes issues for you? First part of the issue is about having non-user initiated modifications of CONFIG_DB, however you are also referring to init_cfg.json as a source of truth of configuration. Are you expecting init_cfg.json values to be present in CONFIG_DB? What is the use case of checking init_cfg.json in general? I am asking because one potential reason to update CONFIG_DB at runtime is lack of information available during initial config generation time. E.g. in init_cfg.json we don't know what the device type would be, hence we don't know which features to enable (dhcp_relay only on ToR) and which counters to enable (additional counters needed for DPU). Do you think we need to redefining what init_cfg.json is? It can't be generic default configuration because different switch types, skus, platforms will have their own defaults. |
@stepanblyschak I think you need to remove FLEX_COUNTER_DELAY_STATUS also from sonic-utilities: counterpoll and db_migrator |
@shiraez PR is WIP |
Discussed in issue triage meeting, there are other entries being updated in runtime.
For this issue, PR already raised for reviewing. |
@wen587 Can you please help review the PR? |
Why I did it Simplify approach to delaying counters on warm boot and fast boot. Removed FLEX_COUNTER_DELAY_STATUS_FIELD and instead postpone all FC processing to happen after apply view to not delay data plane configuration. The CONFIG_DB should not be updated in runtime anymore for counters to be delayed. To address #20302.
Description
FLEX_COUNTER_TABLE config will be updated some time later after load_minigraph. This will result in the FLEX_COUNTER_TABLE is inconsistent between the desired config and running config.
The ask it to make it consistent and not more run time update. The fix should also consider the backward compatibility.
Steps to reproduce the issue:
config load_minigraph -y
The FLEX_COUNTER_TABLE are the same as the init_cfg.json
3.Record the config 5 min later after the command finish.
The FLEX_COUNTER_TABLE was updated at runtime, which make it inconsistent with the initial config.
Describe the results you received:
FLEX_COUNTER_TABLE was updated with new entry.
Describe the results you expected:
We expect the FLEX_COUNTER_TABLE to be consitent and no longer have run time update. This will help us manage the running config of the device.
Currently if we refer the init_cfg.json as the source of truth, it will be wrong.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
](https://github.com/sonic-net/sonic-buildimage/issues/new)
The text was updated successfully, but these errors were encountered: