Skip to content
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

[DPB] config_db.json "BREAKOUT_CFG" update when upgrading #7402

Closed
slutati1536 opened this issue Apr 22, 2021 · 5 comments
Closed

[DPB] config_db.json "BREAKOUT_CFG" update when upgrading #7402

slutati1536 opened this issue Apr 22, 2021 · 5 comments

Comments

@slutati1536
Copy link
Contributor

Description

when doing upgrade from image without DPB to image with DPB,
the config_db.json file is not updated with "BREAKOUT_CFG" section.

when testing the upgrade scenario by:

  1. installing 201911 vie onie
  2. apply config_db.json file without BREAKOUT_CFG
  3. upgraded to an image with DPB feature support with sonic-installer
  4. the config_db.json was not updated with BREAKOUT_CFG, so the DPB feature will not work.

To clearify, the port configuration from the config_db.json (with any splits) is present on the switch with DPB image we upgraded to, the only issue is that without BREAKOUT_CFG section in the config_db.json, the user is not able to configure any new breakouts.

Steps to reproduce the issue:

  1. installing 201911 vie onie
  2. apply config_db.json file without BREAKOUT_CFG
  3. upgraded to an image with DPB feature support with sonic-installer
  4. the config_db.json was not updated with BREAKOUT_CFG, so the DPB feature will not work.

Describe the results you received:

the config_db.json was not updated with BREAKOUT_CFG section

Describe the results you expected:

the sonic installer should handel this issue in the case of sonic to sonic installation to a DPB image the config_db.json should be updated automatically.

Output of show version:

upgrade from SONiC-OS-201911.113-dirty-20210419.164156
to SONiC-OS-SONIC.dpb_master.3-9721ca85_Internal

@anshuv-mfst
Copy link

Issue triage 4/28: To be discussed in DPB subgroup.

@dprital
Copy link
Collaborator

dprital commented Jun 21, 2021

@zhenggen-xu - Can you please review this issue ?

@zhenggen-xu
Copy link
Collaborator

We did discuss this in the DPB subgroup meeting. At this point, we are not automatically importing the "BREAKOUT_CFG" into configDB after upgrade, instead we use "config reload -l" option to get the table. If you strongly feel that is required, please send a PR for importing "BREAKOUT_CFG" into config_db.json in the migration scripts, we know exactly the steps to get that table: sonic-cfggen -H -k <HWSKU> --var-json BREAKOUT_CFG, and we can discuss that PR with community.

@alexrallen
Copy link
Contributor

@zhenggen-xu After some discussion locally, we are okay with BREAKOUT_CFG not being imported by default, however we do believe that this case should be handled elegantly by show interface breakout and config interface breakout so that the end user is not faced with a Python traceback for a flow that we intend (user attempts to use breakout -> user runs config reload -l)

Something like CONFIG_DB does not contain the required information to complete this action please run config reload -l to import this from the platform files to enable dynamic breakout features. (Just an example)

Because this strays far enough away from the original intention of this issue I have raised a new one to handle this. (#7957)

@alexrallen
Copy link
Contributor

Given this, this issue may be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants