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

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

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 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)

… start issue

Signed-off-by: mlok <marty.lok@nokia.com>
@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

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