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

[Bookworm] Fix timezone propagation to containers #21079

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

vivekrnv
Copy link
Contributor

@vivekrnv vivekrnv commented Dec 6, 2024

Why I did it

Fix #20925

Not cherry-pickable to 202405, will raise a separate PR

How I did it

Mount /etc/localtime on containers and remove /etc/timezone dependency

How to verify it

root@sonic:/home/admin# zdump /etc/localtime
/etc/localtime  Fri Dec  6 23:24:03 2024 IST

root@sonic:/home/admin# docker exec swss zdump /etc/localtime
/etc/localtime  Fri Dec  6 23:24:12 2024 IST

Verify swss.rec/sairedis.rec and syslog are following same time

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@vivekrnv
Copy link
Contributor Author

vivekrnv commented Dec 7, 2024

/azpw run ms_conflict

@mssonicbld
Copy link
Collaborator

/AzurePipelines run ms_conflict

Copy link

No pipelines are associated with this pull request.

@vivekrnv
Copy link
Contributor Author

vivekrnv commented Dec 7, 2024

@nmoray FYI

@liat-grozovik
Copy link
Collaborator

thanks @vivekrnv for the fix.

@liat-grozovik
Copy link
Collaborator

/azpw ms_conflict

@liat-grozovik
Copy link
Collaborator

@saiarcot895 would you like to review or suggest someone else? if not, i would take Sud approval as good enough and merge

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202411: #21406

dgsudharsan pushed a commit to dgsudharsan/sonic-buildimage that referenced this pull request Jan 15, 2025
VladimirKuk pushed a commit to Marvell-switching/sonic-buildimage that referenced this pull request Jan 21, 2025
- Why I did it
Fix sonic-net#20925

Not cherry-pickable to 202405, will raise a separate PR

- How I did it
Mount /etc/localtime on containers and remove /etc/timezone dependency

- How to verify it
root@sonic:/home/admin# zdump /etc/localtime
/etc/localtime  Fri Dec  6 23:24:03 2024 IST

root@sonic:/home/admin# docker exec swss zdump /etc/localtime
/etc/localtime  Fri Dec  6 23:24:12 2024 IST
Verify swss.rec/sairedis.rec and syslog are following same time

Signed-off-by: Vivek <[email protected]>
ayurkiv-nvda pushed a commit to ayurkiv-nvda/sonic-buildimage that referenced this pull request Jan 22, 2025
tshalvi pushed a commit to tshalvi/sonic-buildimage that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bookworm] Timezone setting is not propagated to containers
7 participants