sonic-buildimage/files/build_templates
Stepan Blyshchak b100ec559e [services] remove swss from WantedBy for nat service (#4991)
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-26 11:11:35 -07:00
..
per_namespace Multi-ASIC implementation (#3888) 2020-04-15 13:08:34 -07:00
buffers_config.j2 Revert "Configure buffer profile to all ports (#3561)" (#3628) 2019-10-18 09:14:39 -07:00
config-setup.service.j2 [config-setup]: create a SONiC configuration management service (#3227) 2020-01-21 10:39:19 -08:00
database.service.j2 Multi-ASIC implementation (#3888) 2020-04-15 13:08:34 -07:00
dhcp_relay.service.j2 [services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh (#3823) 2019-11-26 16:59:45 -08:00
docker_image_ctl.j2 Add support for bcmsh and bcmcmd utlitites in multi ASIC devices (#4926) 2020-07-11 09:47:24 -07:00
init_cfg.json.j2 [build] Enable telemetry service by default (#4760) 2020-06-16 08:17:47 -07:00
lldp.service.j2 Changes for LLDP docker to support multi-npu platforms (#4530) 2020-05-20 07:51:49 -07:00
mgmt-framework.service.j2 [mgmt-framework] start after syncd (#4174) 2020-02-24 11:04:51 -08:00
nat.service.j2 [services] remove swss from WantedBy for nat service (#4991) 2020-07-26 11:11:35 -07:00
organization_extensions.sh Framework to plugin Organization specific scripts during ONIE Image build (#951) 2017-09-19 16:23:31 -07:00
pmon.service.j2 [Services] Restart Platform-monitor service upon unexpected critical process exit. (#3689) 2019-11-04 17:44:01 -08:00
process-reboot-cause.timer [reboot cause]: Delay process-reboot-cause service until network connection is stable (#4003) 2020-01-21 10:47:13 -08:00
qos_config.j2 [qos]: Alpha and ECN settings change for Th (#4564) 2020-05-09 18:13:10 -07:00
radv.service.j2 [services] improve startup time by changing startup order (#3656) 2019-10-31 09:18:26 -07:00
restapi.service.j2 Start RestAPI container when sonic boots (#4140) 2020-02-24 10:16:02 -08:00
sflow.service.j2 [services] sflow service sets swss service as Requisite=, not Requires= (#3819) 2020-01-02 14:29:11 -08:00
snmp.service.j2 [services] make snmp.timer work again and delay telemetry.service (#3742) 2020-01-06 10:32:24 -08:00
snmp.timer [services] make snmp.timer work again and delay telemetry.service (#3742) 2020-01-06 10:32:24 -08:00
sonic_debian_extension.j2 [systemd-generator]: Fix dependency update for multi-asic platform (#4820) 2020-07-05 15:26:07 -07:00
telemetry.service.j2 [services] make snmp.timer work again and delay telemetry.service (#3742) 2020-01-06 10:32:24 -08:00
telemetry.timer [services] make snmp.timer work again and delay telemetry.service (#3742) 2020-01-06 10:32:24 -08:00
updategraph.service.j2 [config-setup]: create a SONiC configuration management service (#3227) 2020-01-21 10:39:19 -08:00