Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-8119

Incorrect time zone settings within Qserv Docker containers

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:

      Description

      I have noticed that the timezone is not set correctly within the latest version of the Qserv containers. This is an example:

      % hostname
      lsst-qserv-db01
       
      % date
      Fri Oct 28 11:33:00 CDT 2016
       
      % docker exec -it qserv date
      Fri Oct 28 16:33:10 UTC 2016
      

      This may have various (some of them would be unpleasant) side effects, such as (to count just a few):

      • incorrect timing in the log files (which will make it hard to investigate problems)
      • shifted monitoring data (hard to interpret/analyze the monitoring data)
      • anything else which is time-dependent within the application (such as scheduling, etc.)

      It looks like the timezone configuration within the container is set to:

      % docker exec -it qserv cat /etc/timezone
      Etc/UTC
      

      Should this be solved by running the container with this extra option which would override the default setting of Etc/UTC set at a container build time?

      % ls -l /etc/localtime
      lrwxrwxrwx 1 root root 35 Sep 23 09:43 /etc/localtime -> /usr/share/zoneinfo/America/Chicago
       
      % docker run ... -v /etc/localtime:/etc/localtime:ro
      

      This would add the read-only map from the container's configuration file to the hosts's one.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  gapon Igor Gaponenko
                  Reporter:
                  gapon Igor Gaponenko
                  Reviewers:
                  Fabrice Jammes
                  Watchers:
                  Fabrice Jammes, Fritz Mueller, Igor Gaponenko, John Gates, Kian-Tat Lim
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel