This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/files/build_templates
Stepan Blyshchak 5d753b8d43
[services] remove swss from WantedBy for nat service ()
Otherwise, it may cause issues for warm restarts, warm reboot.
Warm restart of swss will start nat which is not expected for warm
restart. Also it is observed that during warm-reboot script execution
nat container gets started after it was killed. This causes removal of
nat dump generated by nat previously:

A check [ -f /host/warmboot/nat/nat_entries.dump ] || echo "NAT dump
does not exists" was added right before kexec:

```
Fri Jul 17 10:47:16 UTC 2020 Prepare MLNX ASIC to fastfast-reboot:
install new FW if required
Fri Jul 17 10:47:18 UTC 2020 Pausing orchagent ...
Fri Jul 17 10:47:18 UTC 2020 Stopping nat ...
Fri Jul 17 10:47:18 UTC 2020 Stopped nat ...
Fri Jul 17 10:47:18 UTC 2020 Stopping radv ...
Fri Jul 17 10:47:19 UTC 2020 Stopping bgp ...
Fri Jul 17 10:47:19 UTC 2020 Stopped bgp ...
Fri Jul 17 10:47:21 UTC 2020 Initialize pre-shutdown ...
Fri Jul 17 10:47:21 UTC 2020 Requesting pre-shutdown ...
Fri Jul 17 10:47:22 UTC 2020 Waiting for pre-shutdown ...
Fri Jul 17 10:47:24 UTC 2020 Pre-shutdown succeeded ...
Fri Jul 17 10:47:24 UTC 2020 Backing up database ...
Fri Jul 17 10:47:25 UTC 2020 Stopping teamd ...
Fri Jul 17 10:47:25 UTC 2020 Stopped teamd ...
Fri Jul 17 10:47:25 UTC 2020 Stopping syncd ...
Fri Jul 17 10:47:35 UTC 2020 Stopped syncd ...
Fri Jul 17 10:47:35 UTC 2020 Stopping all remaining containers ...
Warning: Stopping telemetry.service, but it can still be activated by:
  telemetry.timer
Fri Jul 17 10:47:37 UTC 2020 Stopped all remaining containers ...
NAT dump does not exists
Fri Jul 17 10:47:39 UTC 2020 Rebooting with /sbin/kexec -e to
SONiC-OS-201911.140-08245093 ...
```

With this change, executed warm-reboot 10 times without hitting this
issue, while without this change the issue is easily reproducible almost
every warm-reboot run.

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2020-07-19 21:50:26 -07:00
..
per_namespace [platform/nephos] Optimize the code to reduce changes due to the kernel upgrade () 2020-05-21 02:21:07 -07:00
buffers_config.j2 [vs]: dynamically create front panel ports in vs docker () 2020-04-30 12:50:59 -07:00
config-setup.service.j2 [config-setup]: create a SONiC configuration management service () 2019-12-04 07:15:58 -08:00
database.service.j2 Multi-ASIC implementation () 2020-03-31 10:06:19 -07:00
dhcp_relay.service.j2 [services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh () 2019-11-26 16:59:45 -08:00
docker_image_ctl.j2 Add support for bcmsh and bcmcmd utlitites in multi ASIC devices () 2020-07-12 18:08:52 +00:00
iccpd.service.j2 MCLAG feature for SONIC () 2020-04-04 15:24:06 -07:00
init_cfg.json.j2 [dockers] Default container autorestart feature to "enabled" for all except database () 2020-07-15 11:49:14 -07:00
lldp.service.j2 Changes for LLDP docker to support multi-npu platforms () 2020-05-11 11:05:44 -07:00
mgmt-framework.service.j2 [mgmt-framework] removed requires dependency on swss () 2020-05-20 20:47:09 -07:00
nat.service.j2 [services] remove swss from WantedBy for nat service () 2020-07-19 21:50:26 -07:00
organization_extensions.sh Framework to plugin Organization specific scripts during ONIE Image build () 2017-09-19 16:23:31 -07:00
pcie-check.timer Add pcie-check service to check PCIe devices at boot () 2020-07-13 14:15:09 -07:00
pmon.service.j2 [psud]: Fix for psud crash because of database connection reset () 2020-01-10 13:26:04 -08:00
process-reboot-cause.timer [reboot cause]: Delay process-reboot-cause service until network connection is stable () 2020-01-10 09:47:13 -08:00
qos_config.j2 [qos]: Alpha and ECN settings change for Th () 2020-05-09 11:21:18 -07:00
radv.service.j2 [services] improve startup time by changing startup order () 2019-10-31 09:18:26 -07:00
restapi.service.j2 Start RestAPI container when sonic boots () 2020-02-12 16:38:45 -08:00
sflow.service.j2 [services] sflow service sets swss service as Requisite=, not Requires= () 2019-12-03 09:50:49 -08:00
snmp.service.j2 [services] make snmp.timer work again and delay telemetry.service () 2019-12-16 09:07:05 -08:00
snmp.timer [services] make snmp.timer work again and delay telemetry.service () 2019-12-16 09:07:05 -08:00
sonic_debian_extension.j2 BGP warm reboot script to service () 2020-07-15 11:46:23 -07:00
telemetry.service.j2 [services] make snmp.timer work again and delay telemetry.service () 2019-12-16 09:07:05 -08:00
telemetry.timer [services] make snmp.timer work again and delay telemetry.service () 2019-12-16 09:07:05 -08:00
updategraph.service.j2 [config-setup]: create a SONiC configuration management service () 2019-12-04 07:15:58 -08:00