Skip to content

[202205][config reload] Fixing config reload when timer based services are disabled#2226

Merged
yxieca merged 1 commit intosonic-net:202205from
dgsudharsan:config_rel_fix_2205
Jun 22, 2022
Merged

[202205][config reload] Fixing config reload when timer based services are disabled#2226
yxieca merged 1 commit intosonic-net:202205from
dgsudharsan:config_rel_fix_2205

Conversation

@dgsudharsan
Copy link
Collaborator

Porting of changes #2200

  • 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.

Signed-off-by: Sudharsan Dhamal Gopalarathnam [email protected]

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)

…sabled (sonic-net#2200)

- 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.

Signed-off-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
@yxieca yxieca merged commit bacb15e into sonic-net:202205 Jun 22, 2022
yxieca pushed a commit that referenced this pull request Jun 22, 2022
…sabled (#2200) (#2226)

- 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.

Signed-off-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
@dgsudharsan dgsudharsan deleted the config_rel_fix_2205 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.

3 participants