-
Notifications
You must be signed in to change notification settings - Fork 790
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
New deploy-mg causes TSA to be in config_db (and golden), causing test errors when startup_tsa_tsb is disabled #17246
Comments
@Javier-Tan , can we please have a more descriptive title for this issue? |
@rlhui done, sorry not sure why the title didnt save |
The belief is that deploy-mg will generate golden config with default state, e.g. TSA. The pretest will flip the golden config to TSB. However, if pretest is not executed, then the golden config is in TSA state. Can you confirm this is what happened? From reading the pretest code, there seems to be another opportunity for error: the pretest golden config collector write in memory db contents directly to the golden config json file, but it didn't save the same contents in /etc/sonic/config_db.json (config save). So before a config save was called by any test, a config reload will put the DUT back to TSA state. |
Hi @yxieca, so
In this case, The opportunity for error you mention is what we're mainly trying to tackle, there are 2 main issues that stem from
In any case, we think putting Please let me know if you have any concerns/questions about the related fix, @arlakshm for viz |
While this PR #17247 fixes the issue during deploy-mg, this is still a gap when someone executing a config save which tsa is true to write the config down to disk config_db files. I am wondering why this config tsa_enabled must be via CONFIG_DB? |
Hey @anamehra, for testing specifically, we are planning a redundant measure #17278 This is a typically redundant measure because: generally we do expect However in the case As for scenarios outside testing using tsa_enabled in config_db maybe @arlakshm can give more context |
Nevermind, we will require this on CONFIG_DB to be saved during maintenance mode in production. |
Understood, my worry is setups when are not running sonic-mgmt or if not configred for sonic-mgmt but other automated or manual testing. If someone saves the config by error and does not realize that it's set. Wondering if we should display some text like "In Maintenance Mode" in 'show ip bgp summary' output. |
Issue Type
Enhancement
Description
Since TSA/TSB was changed to start on swss startup (sonic-net/sonic-buildimage#21587),
deploy-mg
causestsa_enabled: true
in config_db. This could affect testsIf
tsa_enabled
is not explicitly set to false and saved to config before running tests,tsa_enabled
will remain in the config, which is not desired (anddeploy-mg
is a common setup step before running nightly tests). Additionally pretest will save this to golden config.In the case where pretest is run, startup_tsa_tsb service will be disabled, meaning any config reload will cause tsa_enabled to be on indefinitely causing test failures
This also causes "Core dump or config check failed" and triggers config reload, causing 15m per test delay
Issue Details
To recreate this issue:
Run
deploy-mg
on device and check tsa_enabled in config_dbImpact or Proposed Behavior
In general,
tsa_enabled
should befalse
for bothconfig_db.json
andgolden_config_db.json
Importance or Severity
High
Is it platform specific
generic
Relevant log output
Output of
show version
Attach files (if any)
N/A
The text was updated successfully, but these errors were encountered: