CONFIG_DB to APPL_DB to orchagent to syncd to SAI to the ASIC, plus the warm-reboot contract every layer has to honour. This is where a struct growing from 48 to 64 bytes becomes a switch that will not create.

Every SONiC failure here passes through the same layers: a Redis database, a daemon called syncd, and a vendor library that speaks SAI to the ASIC. Warm reboot adds a fourth: saved state every layer must restore, in order, without asking hardware for resources it already owns.
A SONiC switch is a stack of databases and daemons:
CONFIG_DB holds what the operator asked for: ports, VLANs, routes, mirror sessions, QoS profiles.APPL_DB holds what the control plane has computed and wants programmed.ASIC_DB holds the ASIC view — the objects syncd has created.STATE_DB holds operational state for the CLI and telemetry.orchagent, inside the swss container, watches CONFIG_DB and APPL_DB and builds ASIC objects. It writes to ASIC_DB and sends requests to syncd over a Unix socket. syncd is a separate container with its own lifecycle; it loads the vendor's libsai.so, calls the SAI API, and the vendor library calls the SDK that programs the ASIC.
That separation is why a BGP restart does not touch forwarding: FRR's routes reach the ASIC through orchagent and syncd, not the kernel data plane.
SAI is a header-defined ABI. The vendor ships a shared library that implements it. At startup syncd logs two versions:
SAI API headers version: 11800
libsai api version: 11801
The first is the header version SONiC was compiled against; the second is what the vendor reports. When they match, layouts match. When they do not, the library reads the attribute array at the wrong stride, and every attribute after the first is garbage.
SAI 1.19.2 added sai_fw_list_t to sai_attribute_value_t, growing sai_attribute_t from 48 to 64 bytes. A vendor library built against 1.18 headers still expects 48. On Marvell Prestera, create_switch fails with SAI_STATUS_NOT_SUPPORTED, syncd crash-loops, and no forwarding configuration is ever programmed.
Warm reboot restarts the control plane while the ASIC keeps forwarding. The mechanics are a contract:
warm-reboot sets the warm-boot flag and restarts the system, typically via kexec, leaving the ASIC powered.syncd starts in warm mode and asks the vendor SAI to restore its ASIC view rather than reset it.orchagent runs bake(), reading the previous boot's state, including m_recoverySessionMap — the mirror sessions that were active.orchagent replays CONFIG_DB into a temporary view. Creates are recorded there, not sent to the ASIC.orchagent sends APPLY_VIEW. syncd compares the temporary view with the current ASIC view, matches replayed objects to hardware objects, and removes anything the new view does not contain.Step 5 is where the mirror bug lives. MirrorOrch::createEntry() called isHwResourcesAvailable() before every create. That call goes to sai_object_type_get_availability(), answered by the vendor from the live hardware, where every restored session already sits. With the pool full, the answer is zero, so every replay is rejected before it reaches the temporary view. At APPLY_VIEW, the new view has no mirror sessions and the current view has N, so syncd deletes all N. CONFIG_DB still lists them; the CLI shows error; mirrored traffic stops.
The real fix, merged as sonic-swss PR #5122, is one condition:
// A session restored by warm reboot still owns its HW resources, and the
// availability count includes them, so the check would reject it
if ((m_recoverySessionMap.find(key) == m_recoverySessionMap.end()) && !isHwResourcesAvailable())
A replayed session needs no new hardware. A new session still gets checked. That is read-modify-write, by map lookup.
The QoS defect is in the test harness. tests/saitests/probe/probing_base.py enables TX on the probing ports before saving the original scheduler configuration. On Mellanox, that helper writes the legacy names scheduler.0 and scheduler.1. Custom per-queue schedulers are overwritten; the later Hold saves the overwritten references, so Drain cannot restore the originals.
The BGP test defect is also in sonic-mgmt: test_bgp_session_interface_down chooses warm reboot for any t0 topology without checking ISSU support. The fix checks is_mellanox_device() and is_issu_enabled() first.

Next: Part 6 — the smaller failures first: the maintenance backlog around the four named bugs, and why the test harness is a second product.