Description
During boot from an old image, FAST_REBOOT|system flag should be set in STATE DB, then db_migrator translates it into FAST_RESTART_ENABLE_TABLE|system flag that every component reads to determine whether system is in fast boot mode.
The code that sets FAST_REBOOT|system flag was removed by https://github.com/sonic-net/sonic-buildimage/pull/15685/files#diff-130e5ab75471398db06b73a4c6e4b56517f42e3c1f17870b5309620fc0e2fafbL254.
A comment was posted in PR after merge with explanation - https://github.com/sonic-net/sonic-buildimage/pull/15685/files#r1295535606.
Steps to reproduce the issue:
- Install latest 201911
- Install latest 202205
- Do fast-reboot
- After fast-reboot has finished, check that syncd starts in cold mode:
$ cat dump/reboot.cause
User issued 'fast-reboot' command [User: admin, Time: Mon Sep 25 11:56:20 UTC 2023]
$ cat dump/ps.aux | grep 'syncd -s'
root 6981 2.9 1.9 1415360 158540 pts/0 Sl 12:00 0:43 /usr/bin/syncd -s -p /tmp/sai.profile
Describe the results you received:
Syncd started in cold mode.
Describe the results you expected:
Syncd starts in fast mode.
Output of show version:
SONiC Software Version: SONiC.202205_3_rc.8-f00856b1a_Internal
SONiC OS Version: 11
Distribution: Debian 11.7
Kernel: 5.10.0-18-2-amd64
Build commit: f00856b1a
Build date: Fri Sep 22 22:06:28 UTC 2023
Built by: sw-r2d2-bot@r-build-sonic-ci03-244
Platform: x86_64-mlnx_msn2700-r0
HwSKU: Mellanox-SN2700-D48C8
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1822K07815
Model Number: MSN2700-CS2FO
Hardware Revision: A1
Uptime: 12:24:49 up 24 min, 1 user, load average: 0.90, 0.77, 0.88
Date: Mon 25 Sep 2023 12:24:49
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-macsec latest edc3b9918675 332MB
docker-dhcp-relay latest e7f46c58210d 321MB
docker-syncd-mlnx 202205_3_rc.8-f00856b1a_Internal 5758c6a421d9 905MB
docker-syncd-mlnx latest 5758c6a421d9 905MB
docker-sonic-telemetry 202205_3_rc.8-f00856b1a_Internal 3642e9684947 394MB
docker-sonic-telemetry latest 3642e9684947 394MB
docker-teamd 202205_3_rc.8-f00856b1a_Internal c8552ab8c66c 330MB
docker-teamd latest c8552ab8c66c 330MB
docker-snmp 202205_3_rc.8-f00856b1a_Internal 4242a44b9217 364MB
docker-snmp latest 4242a44b9217 364MB
docker-router-advertiser 202205_3_rc.8-f00856b1a_Internal 4bf4a260c7ad 314MB
docker-router-advertiser latest 4bf4a260c7ad 314MB
docker-platform-monitor 202205_3_rc.8-f00856b1a_Internal a769ae6b56c3 750MB
docker-platform-monitor latest a769ae6b56c3 750MB
docker-orchagent 202205_3_rc.8-f00856b1a_Internal bdc3dafeedc7 347MB
docker-orchagent latest bdc3dafeedc7 347MB
docker-mux 202205_3_rc.8-f00856b1a_Internal 6c4f636f2ce4 362MB
docker-mux latest 6c4f636f2ce4 362MB
docker-lldp 202205_3_rc.8-f00856b1a_Internal d586bb6d050b 356MB
docker-lldp latest d586bb6d050b 356MB
docker-fpm-frr 202205_3_rc.8-f00856b1a_Internal 96d5bad2ae7c 359MB
docker-fpm-frr latest 96d5bad2ae7c 359MB
docker-database 202205_3_rc.8-f00856b1a_Internal 3e354f4fd60e 314MB
docker-database latest 3e354f4fd60e 314MB
docker-sonic-mgmt-framework 202205_3_rc.8-f00856b1a_Internal 2884af3951b8 433MB
docker-sonic-mgmt-framework latest 2884af3951b8 433MB
docker-sflow 202205_3_rc.8-f00856b1a_Internal 22948a0972a9 303MB
docker-sflow latest 22948a0972a9 303MB
docker-nat 202205_3_rc.8-f00856b1a_Internal 6386cd493360 305MB
docker-nat latest 6386cd493360 305MB
Output of show techsupport:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
sonic_dump_arc-switch1025_20230925_122433.tar.gz
Description
During boot from an old image,
FAST_REBOOT|systemflag should be set in STATE DB, then db_migrator translates it intoFAST_RESTART_ENABLE_TABLE|systemflag that every component reads to determine whether system is in fast boot mode.The code that sets
FAST_REBOOT|systemflag was removed by https://github.com/sonic-net/sonic-buildimage/pull/15685/files#diff-130e5ab75471398db06b73a4c6e4b56517f42e3c1f17870b5309620fc0e2fafbL254.A comment was posted in PR after merge with explanation - https://github.com/sonic-net/sonic-buildimage/pull/15685/files#r1295535606.
Steps to reproduce the issue:
Describe the results you received:
Syncd started in cold mode.
Describe the results you expected:
Syncd starts in fast mode.
Output of
show version:Output of
show techsupport:Additional information you deem important (e.g. issue happens only occasionally):
sonic_dump_arc-switch1025_20230925_122433.tar.gz