sonic-buildimage/files/build_templates/per_namespace
mssonicbld 33a10b479a
[nvidia] make sure shared storage with syncd is cleared on restarts (#14547) (#16046)
Why I did it
Sharing the storage of syncd with other proprietary application extensions allows them to communicate with syncd in differnt ways.
If one container wants to pass some information to syncd then shared storage can be used. However, today the shared storage isn't cleaned on restarts making it possible for syncd to read out-of-date information generated in the past.

NOTE: No plans to use it for standard SONIC dockers and we are working on removing the SDK dependency from PMON docker

How I did it
Implemented new service to clean the shared storage.

How to verify it
Do reboot/fast-reboot/warm-reboot/config-reload/systemctl restart swss and verify /tmp/ is cleaned after each restart in syncd container.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Co-authored-by: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com>
2023-08-07 09:27:43 +08:00
..
bgp.service.j2 [BGP] starting BGP service after swss (#12381) 2022-10-13 09:24:06 -07:00
database.service.j2 [services] kill container on stop in warm/fast mode (#10510) 2022-09-19 19:34:33 +03:00
gbsyncd.service.j2 Added gbsyncd infra for multi-ASIC, multi-PHY mode (#9722) 2022-01-21 10:08:16 +08:00
lldp.service.j2 [Fastboot] Delay LLDP service for better fastboot performance (#10568) 2022-04-28 10:35:14 +03:00
macsec.service.j2 Support multi-asic on macsec container (#9921) 2022-02-13 22:45:24 -08:00
swss.service.j2 [swss/syncd] remove dependency on interfaces-config.service (#13084) 2022-12-26 09:20:45 +02:00
syncd.service.j2 [nvidia] make sure shared storage with syncd is cleared on restarts (#14547) (#16046) 2023-08-07 09:27:43 +08:00
teamd.service.j2 [hostcfgd] Configure service auto-restart in hostcfgd. (#5744) 2021-06-29 09:06:21 -07:00