Skip to content

nokia armhf config reload with swss sync restart + time.monotonic#4581

Open
yanmarkman wants to merge 2 commits into
sonic-net:202505from
yanmarkman:yanm-Nokia-armhf-config-reload-with-swss-sync-restart-time.monotonic
Open

nokia armhf config reload with swss sync restart + time.monotonic#4581
yanmarkman wants to merge 2 commits into
sonic-net:202505from
yanmarkman:yanm-Nokia-armhf-config-reload-with-swss-sync-restart-time.monotonic

Conversation

@yanmarkman

Copy link
Copy Markdown
Contributor

What I did

  1. Nokia-armhf config-reload with swss and sync restart
    Fix for issue reported by the: Bug: swss/orchagent "config reload" failed on armhf sonic-buildimage#24766
  2. On chrony or "date -s SET" command the wall-time is changed
    and abrupts the wall/realtime taken by the time.time().

How I did it

  1. Back-port from 202511 and master Nokia-armhf config-reload with swss and sync restart #4174
    Guaranty "config reload" by a swss.service restart "inside" the command implementation.
    The restart is done ONLY for the device Nokia-7215 and does not impact other devices and platforms
  2. Use the time.monotonic() which is not changed un date/wall-time.

How to verify it

  1. Loop with "config reload -y"
  2. 2 loops -- for("config reload -y") + for('date -s "+15 min"' ; 'date -s -10 min"')

Previous command output (if the output of a command-line utility has changed)

Check "docker ps -a"
swss and syncd (but could be other) containers/services are exited (failed)

New command output (if the output of a command-line utility has changed)

Check "docker ps -a"
All containers are running

Back-port from 202511 and master sonic-net#4174

Fix for issue reported by the: sonic-net/sonic-buildimage#24766

Guaranty "config reload" by a swss.service restart "inside" the command implementation.
The restart is done ONLY for the device Nokia-7215 and does not impact other devices and platforms

Signed-off-by: Yan Markman <ymarkman@marvell.com>
PROBLEM:
On chrony or "date -s SET" command the wall-time is changed
and abrupts the wall/realtime taken by the time.time().
FIX:
Use the time.monotonic() which is not changed un date/wall-time.

Signed-off-by: Yan Markman <ymarkman@marvell.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@yanmarkman yanmarkman changed the title Yanm nokia armhf config reload with swss sync restart time.monotonic nokia armhf config reload with swss sync restart + time.monotonic Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants