Skip to content

[code sync] Merge code from sonic-net/sonic-utilities:202605 to 202608 - #427

Merged
mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge
Aug 1, 2026
Merged

[code sync] Merge code from sonic-net/sonic-utilities:202605 to 202608#427
mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* eb23c848 - (origin/202605) Abort config reload if warm-boot or fast-reboot is still in progress (#4721) (2026-07-31) [Yizhen Zhang]<br>```

Yizhen Zhang (yizhenzha) and others added 2 commits July 31, 2026 15:53
…(#4721)

config reload can inherit a stale WARM_RESTART_ENABLE_TABLE|system=true
flag left by an unfinished warm-boot or fast-reboot finalization (e.g.
BGP reconcile still pending). syncd.sh::check_warm_boot() reads this flag
and issues `syncd_request_shutdown --warm` without a preceding `--pre`
(pre-shutdown).

- Added a boot-in-progress guard in config/main.py (reload()) that uses
  swsscommon.RestartWaiter to detect if a warm-boot or fast-reboot is
  still finalizing; if so, config reload aborts with a clear message
  before syncd is stopped.
- isFastBootInProgress is checked first: fast-reboot sets both
  FAST_RESTART_ENABLE_TABLE and WARM_RESTART_ENABLE_TABLE, so checking
  fast first ensures the correct label.
- Guard is skipped when --no-service-restart (-n) is passed since no
  syncd teardown occurs in that path.
- Added four inline tests in tests/config_test.py.


(cherry picked from commit cd4953c3bcb92b56a2d0c288e0cd4cbb79b98f9d)

Signed-off-by: Yizhen Zhang <evazha@nvidia.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld
mssonicbld merged commit b4b1901 into Azure:202608 Aug 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants