sonic-buildimage/dockers
Marty Y. Lok 2e81eff2e8
[Supervisor][datbase-chassis] Fixthe failure of starting redis_chassis in database-chassis on Supervisor (#18242)
Why I did it
redis_chassis process fails to start in the database-chassis on the supervisor card.

How I did it
The redis and redis_chassis processes in supervisor.conf has been modified to start with 'redis' as user. The modification only added redis and redis group for database containers except database-chassis container. This commit adds code to the docker-database-init.sh to add redis and redis group for the database-chassis to address this issue.

How to verify it
Booting the image on Supervisor. And verify the database-chassis container should be in UP state, and the database-chassis.service is in active(running) state

admin@ixre-cpm-chassis15:~$ docker ps -a
CONTAINER ID   IMAGE                             COMMAND                  CREATED        STATUS        PORTS     NAMES
9691c6111e0f   docker-fpm-frr:latest             "/usr/bin/docker_ini?"   16 hours ago   Up 16 hours             bgp5
...
c7c7159d4e0c   docker-database:latest            "/usr/local/bin/dock?"   31 hours ago   Up 16 hours             database-chassis


admin@ixre-cpm-chassis15:~$ sudo systemctl status database-chassis
? database-chassis.service - database-chassis container
     Loaded: loaded (/lib/systemd/system/database-chassis.service; enabled-runtime; preset: enabled)
     Active: active (running) since Sun 2024-03-03 04:43:12 UTC; 16h ago
    Process: 1640 ExecStartPre=/usr/bin/database.sh start chassisdb (code=exited, status=0/SUCCESS)
   Main PID: 1938 (database.sh)
      Tasks: 10 (limit: 38307)
     Memory: 49.7M
     CGroup: /system.slice/database-chassis.service
             ??1938 /bin/bash /usr/bin/database.sh wait chassisdb
             ??1940 docker wait database-chassis

Notice: journal has been rotated since unit was started, output may be incomplete.
admin@ixre-cpm-chassis15:~$ 

Signed-off-by: mlok <marty.lok@nokia.com>
2024-03-22 14:20:12 -07:00
..
docker-base Optimize syslog rate limit feature for fast and warm boot (#17458) 2023-12-20 09:12:03 +02:00
docker-base-bookworm Fix docker-base-bookworm build (#17795) 2024-01-19 17:25:31 -08:00
docker-base-bullseye Optimize syslog rate limit feature for fast and warm boot (#17458) 2023-12-20 09:12:03 +02:00
docker-base-buster [build] Use public storage for public resources. (#18038) 2024-02-27 17:45:49 -08:00
docker-base-stretch [build] Use public storage for public resources. (#18038) 2024-02-27 17:45:49 -08:00
docker-basic_router [supervisord]: use abspath as supervisord entrypoint (#5995) 2020-11-22 21:18:44 -08:00
docker-config-engine Install python-redis package to docker containers (#14632) 2023-04-19 18:14:48 -07:00
docker-config-engine-bookworm Update the database, teamd, and radv containers to Bookworm (#18108) 2024-02-21 13:22:07 -08:00
docker-config-engine-bullseye Load generic omprog in all dockers for rsyslog plugin support (#16601) 2023-09-20 16:27:42 -07:00
docker-config-engine-buster [Build] Fix the PyYang python package installation issue (#15890) 2023-07-19 06:33:49 +08:00
docker-config-engine-stretch Install python-redis package to docker containers (#14632) 2023-04-19 18:14:48 -07:00
docker-database [Supervisor][datbase-chassis] Fixthe failure of starting redis_chassis in database-chassis on Supervisor (#18242) 2024-03-22 14:20:12 -07:00
docker-dhcp-relay [dhcp_relay] Upgrade dhcp_relay container to bookworm (#17783) 2024-03-21 09:27:51 -07:00
docker-dhcp-server [dhcp_server] add config dhcp server option (#18013) 2024-02-21 16:52:51 -08:00
docker-eventd Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-fpm-frr Disable eventd and rsyslog plugin in slim images (#17905) 2024-01-30 22:14:23 -08:00
docker-fpm-gobgp Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-iccpd Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-lldp Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-macsec Make macsec container to build with bookworm (#18148) 2024-03-05 07:47:07 +08:00
docker-mux bookworm (#18310) 2024-03-15 08:35:31 -07:00
docker-nat Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-orchagent Upgrade SwSS to bookworm (#18342) 2024-03-18 09:53:25 -07:00
docker-pde [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
docker-platform-monitor Add enable_sff_mgr flag support for xcvrd (#18054) 2024-03-11 19:39:13 -07:00
docker-ptf Upgrade gnxi to support dash (#16498) 2023-09-08 08:56:51 -07:00
docker-ptf-sai [build] Fix build issue in docker-ptf-sai caused by setuptools_scm new release (#16636) 2023-09-21 10:38:08 -07:00
docker-router-advertiser Update the database, teamd, and radv containers to Bookworm (#18108) 2024-02-21 13:22:07 -08:00
docker-sflow Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-snmp [SNMP]: Modify minigraph parser to update SNMP_AGENT_ADDRESS_CONFIG table (#17045) 2023-12-06 13:23:02 -08:00
docker-sonic-gnmi Share image for gnmi and telemetry (#16863) 2023-11-08 08:54:36 +08:00
docker-sonic-mgmt Remove Python3 venv from sonic-mgmt-docker build file (#18130) 2024-02-21 16:39:17 +08:00
docker-sonic-mgmt-framework Fix docker-sonic-mgmt-framework for armhf 2023-11-21 18:53:15 -08:00
docker-sonic-p4rt Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
docker-sonic-restapi [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
docker-sonic-sdk [Bullseye] Upgrade sonic-sdk image to bullseye (#12649) 2022-11-28 18:57:26 +02:00
docker-sonic-sdk-buildenv Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-sonic-telemetry Share image for gnmi and telemetry (#16863) 2023-11-08 08:54:36 +08:00
docker-swss-layer-bookworm Add Bookworm swss-layer (#18062) 2024-02-09 15:56:26 -08:00
docker-swss-layer-bullseye Add ping to swss-layer docker (#11093) 2022-06-10 07:40:37 -07:00
docker-swss-layer-buster Add ping to swss-layer docker (#11093) 2022-06-10 07:40:37 -07:00
docker-teamd Update the database, teamd, and radv containers to Bookworm (#18108) 2024-02-21 13:22:07 -08:00
dockerfile-macros.j2 [sonic-config-engine] Clean up dependencies, pin versions; install Python 3 package in Buster container (#5656) 2020-10-26 13:48:50 -07:00