-
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
Multi DB with namespace support, Introducing the database_global.json… #4477
Conversation
Retest this please |
src/sonic-config-engine/sonic-cfggen
Outdated
@@ -211,6 +211,7 @@ def main(): | |||
group.add_argument("--preset", help="generate sample configuration from a preset template", choices=get_available_config()) | |||
group = parser.add_mutually_exclusive_group() | |||
group.add_argument("-K", "--key", help="Lookup for a specific key") | |||
parser.add_argument("-n", "--namespace", help="Namespace string to use asic0/asic1.../asicn", default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also explain the ignore behavior, and also the -namespace=''
behavior in usage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As comments
retest vsimage please |
retest vs please |
1 similar comment
retest vs please |
retest vsimage please |
retest vsimage please |
retest broadcom please |
retest this please |
retest broadcom please |
pushed multiple fixes as a single commit. |
…rsing minigraph and multi DB access.
…to database_config.json file earlier.
We use the database_config.json.j2 file to generate database_config.json files dynamically.
… this we wait till the PONG response is received when redis server is up.
Rebased the sonic-buildimage to get the PR (#4541) which has the updated logic with sonic-db-cli PING tests to check redis server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm
…install of j2cli in docker-base-buster.
retest this please |
retest broadcom please |
LGTM now |
retest broadcom please |
1 similar comment
retest broadcom please |
@judyjoseph, there's conflict cherry-pick to 201911 branch. Please raise a separate PR for 201911 branch. Thanks. |
#4477) * Multi DB with namespace support, Introducing the database_global.json file for supporting accessing DB's in other namespaces for service running in linux host * Updates based on comments * Adding the j2 templates for database_config and database_global files. * Updating to retrieve the redis DIR's to be mounted from database_global.json file. * Additional check to see if asic.conf file exists before sourcing it. * Updates based on PR comments discussion. * Review comments update * Updates to the argument "-n" for namespace used in both context of parsing minigraph and multi DB access. * Update with the attribute "persistence_for_warm_boot" that was added to database_config.json file earlier. * Removing the database_config.json file to avioid confusion in future. We use the database_config.json.j2 file to generate database_config.json files dynamically. * Update the comments for sudo usage in docker_image_ctrl.j2 * Update with the new logic in PING PONG tests using sonic-db-cli. With this we wait till the PONG response is received when redis server is up. * Similar changes in swss and syncd scripts for the PING tests with sonic-db-cli * Updated with a missing , in the database_config.json.j2 file, Do pip install of j2cli in docker-base-buster.
- Why I did it
To support applications running in the linux host to be able to connect to databases in the namespaces. This uses the changes done to python modules via sonic-net/sonic-py-swsssdk@b9cee36
- How I did it
The changes includes the following
- How to verify it
Verified by booting up on the multi-asic platform and single asic platform.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)