Skip to content

[chassis][database-chassis] Fix the database-chassis service fails to start issue#20824

Closed
mlok-nokia wants to merge 1 commit intosonic-net:masterfrom
mlok-nokia:fix_database_chassis_service_issue
Closed

[chassis][database-chassis] Fix the database-chassis service fails to start issue#20824
mlok-nokia wants to merge 1 commit intosonic-net:masterfrom
mlok-nokia:fix_database_chassis_service_issue

Conversation

@mlok-nokia
Copy link
Contributor

@mlok-nokia mlok-nokia commented Nov 15, 2024

Why I did it

On Master branch only, database-chassis service failed to start on SUP. PR #19016 introduces the redis_bmp process to the database container. redis_bmp.socket is only available after database container is created. database-chassis container is created and started before the database. Trying to chgrp/chamod on file redis_bmp.sock will be result of access failure during database-chassis creation. Fixes #20715

Work item tracking
  • Microsoft ADO (number only):

How I did it

Modify the docker_image_ctl.j2 by moving the "chgrp -f redis $REDIS_BMP_SOCK && chmod -f 0760 $REDIS_BMP_SOCK" related code to the "database" section to avoid the database-chassis try to modify the permission of redis_bmp.sock

How to verify it

Reboot SUP with the new image. database-chassis.service should be started without any issue.

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

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

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)

@mlok-nokia mlok-nokia requested a review from lguohan as a code owner November 15, 2024 19:46
@mlok-nokia
Copy link
Contributor Author

@arlakshm and @judyjoseph This PR fixes the database-chassis.service fails to start on SUP issue. Please review it

@rlhui
Copy link
Contributor

rlhui commented Nov 27, 2024

/azpw ms_conflict

@rlhui rlhui added the P0 Priority of the issue label Nov 27, 2024
@FengPan-Frank
Copy link
Contributor

FengPan-Frank commented Nov 27, 2024

/azpw ms_conflict

@rlhui @mlok-nokia This fix has already been incorporated into master branch

REDIS_BMP_SOCK="/var/run/redis/redis_bmp.sock"
, we can close this PR for now.

@mlok-nokia
Copy link
Contributor Author

Close since the issue has been fixed by PR #1894

@mlok-nokia mlok-nokia closed this Dec 1, 2024
@mlok-nokia mlok-nokia deleted the fix_database_chassis_service_issue branch March 25, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Master Branch Quality P0 Priority of the issue

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[chassis][supervisor] [master]database-chassis.service failed to start at reboot on Supervisor

5 participants