Project

General

Profile

Actions

Bug #49449

closed

cephadm: synchronize container timezone with host

Added by Sebastian Wagner about 3 years ago. Updated almost 3 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Right now, the timezone within the container differs from the host. Timestamps in the future (or past) will hinder troubleshooting customer environments.

I can see different options:

1. add podman --tz=local

https://www.redhat.com/sysadmin/tick-tock-container-time

2. add `-v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime` to the volumes

https://medium.com/@yildirimabdrhm/kubernetes-timezone-management-8cc139b01f9d
https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes/683651

# date
Mi 24. Feb 12:42:13 CET 2021
# podman run -t -i --rm  ubuntu date 
Wed Feb 24 11:42:10 UTC 2021
# podman run -t -i --rm  -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime ubuntu date
Wed Feb 24 12:42:29 CET 2021
# podman run -t -i --rm --tz=local ubuntu date
Wed Feb 24 12:42:45 CET 2021

Related issues 1 (0 open1 closed)

Related to Orchestrator - Bug #53323: the timezone in containers managed by cephadm are not in sync with the hostRejectedGuillaume Abrioux

Actions
Actions #1

Updated by Sebastian Wagner about 3 years ago

  • Tags set to low-hanging-fruit
Actions #2

Updated by Melissa Li about 3 years ago

Hi! can I work on this?

Actions #3

Updated by Sebastian Wagner about 3 years ago

  • Assignee set to Melissa Li
Actions #4

Updated by Kefu Chai about 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 40284
Actions #5

Updated by Sebastian Wagner almost 3 years ago

  • Status changed from Fix Under Review to Won't Fix
Actions #6

Updated by Sebastian Wagner over 2 years ago

  • Related to Bug #53323: the timezone in containers managed by cephadm are not in sync with the host added
Actions

Also available in: Atom PDF