Skip to content
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

[201911] [Systemd] Upgrade systemd to fix timer elapsed issue #12485

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Oct 25, 2022

Upgrade systemd to fix timer elapsed issue.

Why I did it

On 201911 release, snmp.timer become elapsed status and snmp.service will not be trigger by snmp.timer:

● snmp.service - SNMP container
Loaded: loaded (/usr/lib/systemd/system/snmp.service; static; vendor preset: enabled)
Active: inactive (dead)
● snmp.timer - Delays snmp container until SONiC has started
Loaded: loaded (/usr/lib/systemd/system/snmp.timer; enabled; vendor preset: enabled)
Active: active (elapsed) since Wed 2022-08-03 18:12:59 UTC; 2 months 17 days ago

This issue caused by systemd bug: https://github.com/systemd/systemd/pull/10778/files

This issue can be reproduce with following steps:

  1. reboot system.
  2. continusly run following commands till timer elapsed:
    systemctl status snmp.timer
    sudo systemctl daemon-reload

How I did it

Install latest version systemd from offical backport source.

How to verify it

Pass all test case.
Manually check reproduce steps, verify the issue fixed.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Upgrade systemd to fix timer elapsed issue.

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 25, 2022

The reason we install systemd from stretch_backport is because currently we are using it from stretch:

https://dev.azure.com/mssonic/be1b070f-be15-4154-aade-b1d3bfb17054/_apis/build/builds/165006/logs/23
2022-10-25T07:55:45.2530904Z Get:1409 http://deb.debian.org/debian stretch/main amd64 dh-systemd all 10.2.5 [99.7 kB]

@liuh-80 liuh-80 marked this pull request as ready for review October 25, 2022 14:16
@liuh-80 liuh-80 changed the title [Systemd] Upgrade systemd to fix timer elapsed issue [201911] [Systemd] Upgrade systemd to fix timer elapsed issue Oct 25, 2022
@liuh-80 liuh-80 merged commit 90c9811 into sonic-net:201911 Oct 31, 2022
@liuh-80 liuh-80 deleted the dev/liuh/fix-systemd branch October 31, 2022 02:25
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