Skip to content

[config reload] [202012] Call systemctl reset-failed for snmp,telemetry,mgmt-framework services #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Junchao-Mellanox
Copy link
Owner

Back port PR sonic-net#1773 to 202012 branch.

What I did

When issue config reload -y or config load_minigraph -y command, most of the sonic services will be reset by command systemctl reset-failed <service_name>. The purpose is to avoid services reach to its start retry limit and cannot be started. However, systemctl reset-failed only resets those services belong to sonic.target, snmp, telemetry and mgmt-framework are not part of them. So if we run config reload -y or config load_minigraph -y continues, snmp, telemetry and mgmt-framework services might enter into failed state. This PR is to fix the issue.

I would like to cherry-pick this fix to 202012 branch, but this fix also depends on PR sonic-net/sonic-buildimage#7846. So if we decide to cherry-pick this PR to 202012, we need cherry-pick sonic-net/sonic-buildimage#7846 first.

How I did it

Also call systemctl reset-failed for services like snmp, telemetry and mgmt-framework.

How to verify it

Manual test.

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

No command output changes.

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

No command output changes.

…ramework services (sonic-net#1773)

When issue `config reload -y` or `config load_minigraph -y` command, most of the sonic services will be reset by command `systemctl reset-failed <service_name>`. The purpose is to avoid services reach to its start retry limit and cannot be started. However, `systemctl reset-failed` only resets those services belong to sonic.target, snmp, telemetry and mgmt-framework are not part of them. So if we run `config reload -y` or `config load_minigraph -y` continues, snmp, telemetry and mgmt-framework services might enter into failed state. This PR is to fix the issue.

I would like to cherry-pick this fix to 202012 branch, but this fix also depends on PR sonic-net/sonic-buildimage#7846. So if we decide to cherry-pick this PR to 202012, we need cherry-pick sonic-net/sonic-buildimage#7846 first.

Also call `systemctl reset-failed` for services like snmp, telemetry and mgmt-framework.

Manual test.
+
@Junchao-Mellanox Junchao-Mellanox deleted the cherry-pick-1173 branch October 29, 2021 01:46
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