Skip to content

[config reload][202111] Fixing config reload when timer based services are disabled#2201

Merged
liat-grozovik merged 2 commits intosonic-net:202111from
dgsudharsan:config_rel_2111
Jun 19, 2022
Merged

[config reload][202111] Fixing config reload when timer based services are disabled#2201
liat-grozovik merged 2 commits intosonic-net:202111from
dgsudharsan:config_rel_2111

Conversation

@dgsudharsan
Copy link
Copy Markdown
Collaborator

Porting of #2200 into 202111

What I did

Fixed config reload when timer based delayed services are disabled. When they are disabled, the property property=LastTriggerUSecMonotonic returns "0". This will cause config reload to fail even though all enabled services are up.

How I did it

Fixed the delayed services logic to check if the services are enabled before getting the property LastTriggerUSecMonotonic . Additionally fixed the return codes when config reload fails due to system checks

How to verify it

Added UT to verify it. Modified sonic-mgmt tests to verify it additionally.

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

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

@dgsudharsan
Copy link
Copy Markdown
Collaborator Author

@qiluo-msft @judyjoseph Can we get this approved? The main PR is approved by @qiluo-msft

@dgsudharsan
Copy link
Copy Markdown
Collaborator Author

@qiluo-msft Can we merge this?

@liat-grozovik liat-grozovik merged commit c881e9e into sonic-net:202111 Jun 19, 2022
@dgsudharsan dgsudharsan deleted the config_rel_2111 branch March 9, 2023 02:07
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.

4 participants