-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[multi-asic] ERR python3: :- initializeGlobalConfig: SonicDBConfig Global config is already initialized #13137
Comments
@SuvarnaMeenakshi please follow up on this. @arlakshm and @judyjoseph for viz. |
cc @anamehra for viz. |
sonic-net/sonic-buildimage#13137 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
* Temproray workaround for the issue sonic-net/sonic-buildimage#13137 --------- Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
* Temproray workaround for the issue sonic-net/sonic-buildimage#13137 --------- Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
) * Temproray workaround for the issue sonic-net/sonic-buildimage#13137 --------- Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
The Error Message comes when SonicDBConfig::initializeGlobalConfig gets called and GlobalConfig is already initialized. The above gets invoked from load_db_config. For "show interface status" on a multi-asic Card, load_db_config gets called multiple times(4 times on a 2-asic linecard) In this case, for first 2 iteration, we do check if its already initilaized, but the get_port_config() doesnt check this. There are other places as well in the code, where we call the aboveAPI without checking if already initialized. This message is harmless. If the Config is already initilaized, it just returns and if not, it initializes it. Hence, Instead of adding validation at multiple places, will remove the error message. |
Issue:
Run any show command on mutli-asic-platform and we see this message getting printed for each asic.
ERR python3: :- initializeGlobalConfig: SonicDBConfig Global config is already initialized
On debugging looks like
swsscommon.SonicDBConfig.isGlobalInit
is always false and thus we see the message.However same logic works fine for single asic where
swsscommon.SonicDBConfig.isInit()
return True.Because of this ERR message we see failure when sonic-mgmt test case is run with log-analyzer enable.
The text was updated successfully, but these errors were encountered: