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

[VoQ_T2_PizzaBox] Modify the existing common code to support VOQ T2 on PizzaBox (X3B platform) #21709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlok-nokia
Copy link
Contributor

@mlok-nokia mlok-nokia commented Feb 11, 2025

Why I did it

Modified the existing code to support VoQ T2 on multiasic PizzaBox (X3B platform)

Work item tracking
  • Microsoft ADO (number only):

How I did it

src/sonic-py-common/sonic_py_common/device_info.py
-- Add function get_chassisdb_config_file_path() which returns the platform modular path and chassisdb.config: /usr/share/sonic/device//chassisdb.conf
-- Add function is_platform_chassis_module(): check chassisdb.config existence and combine with the platform_env.conf supervisor definition to determine if a platform is chassis module (LC or Supervisor).
-- Add function is_database_chassis_supported(): check chassisdb.conf existence and also "start_chassis_db" is defined in the chassisdb.conf

files/scripts/asic_status.sh
-- Modify the is_chassis_module() to use platform_env.conf and its "supervisor=1" define to identify if a platform is a Supervisor instead of using chassisdb.conf.

files/build_template/docker_image_ctl.j2
files/image_config/config-setup/config-setup
-- Modify the existing code to use the existing definition "supervisor=1" in platform_env.conf to determine if reliable TSA/TSB are only supported on Chassis Supervisor

dockers/docker-fpm-frr/base_image_files/TSA
dockers/docker-fpm-frr/base_image_files/TSB
dockers/docker-fpm-frr/base_image_files/TSC
dockers/docker-fpm-frr/base_image_files/idf_isolation
dockers/docker-fpm-frr/base_image_files/platform_utils
rules/docker-fpm-frr.mk
--Follow the existing design to enhance the platform_utils to check the platform_env.conf and chassisdb.conf and export the IS_SUPERVISOR and IS_CHASSIS_MODULE for the TSA/TSB/TSC to use.

files/image_config/monit/container
src/system-health/health_checker/service_checker.py
-- Modify these two files to use is_database_chassis_supported() to database-chassis container and service are expected for th emonitoring

How to verify it

  1. running image on chassis.
    -- make sure database-chassis are created on Supervisor and functioning correctly.
    -- Run the TSA/TSB/TSC on both LC and Supervisor to make they work as expected.
  2. Running image on VoQ Pizzabox (x3b) to make sure everything works as expetced.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202411

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…izzaBox

 -- Modify the existing to use the platform_env.conf attribuite "supervisor", and combine with chassisdb.conf to differentiate if platform is Chassis  module or Pizzabox
 -- Add new method device_info.is_database_chassis_supported() insteaf of just using the existence of /etc/sonic/chassisdb.conf to identify if database-chassis should be supported (for container_check and service_check)
 -- Using platform_env.conf and chassisdb.conf to determine if reliable TSA/TSB is supported on Chassis platform only.

Signed-off-by: mlok <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mlok-nokia
Copy link
Contributor Author

@judyjoseph @arlakshm and @rlhui This PR modifies/enhances the existing code to support the x3b which is multiasic VoQ Pizzabox. Please help to review it. Thanks

@mlok-nokia
Copy link
Contributor Author

@saksarav-nokia Common code changes to support x3b VoQ PizzaBox. Please review it

@mlok-nokia
Copy link
Contributor Author

@deepak-singhal0408 @tjchadaga FYI

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

Successfully merging this pull request may close these issues.

2 participants