tzdata missing from upstream ubuntu docker images

Bug #1686830 reported by Jeremy Miracle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Eduardo Gonzalez
Ocata
Fix Released
High
Eduardo Gonzalez
Pike
Fix Released
High
Eduardo Gonzalez

Bug Description

tzdata is not included in upstream Docker image releases any more for Ubuntu 16.04.
This causes issues with Horizon (and possibly other things) due to missing /usr/share/zoneinfo entires everywhere.

Probably directly related to:
https://github.com/docker-library/official-images/issues/2863
https://bugs.launchpad.net/cloud-images/+bug/1682305

From stable/ocata:
[Thu Apr 27 14:53:04.889877 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] mod_wsgi (pid=18): Target WSGI script '/var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Thu Apr 27 14:53:04.890000 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] mod_wsgi (pid=18): Exception occurred processing WSGI script '/var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi'.
[Thu Apr 27 14:53:04.890030 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] Traceback (most recent call last):
[Thu Apr 27 14:53:04.890058 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi", line 14, in <module>
[Thu Apr 27 14:53:04.890162 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] application = get_wsgi_application()
[Thu Apr 27 14:53:04.890183 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Thu Apr 27 14:53:04.904494 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] django.setup()
[Thu Apr 27 14:53:04.904598 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
[Thu Apr 27 14:53:04.913343 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Thu Apr 27 14:53:04.913449 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
[Thu Apr 27 14:53:04.913665 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] self._setup(name)
[Thu Apr 27 14:53:04.913693 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
[Thu Apr 27 14:53:04.913755 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] self._wrapped = Settings(settings_module)
[Thu Apr 27 14:53:04.913776 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 131, in __init__
[Thu Apr 27 14:53:04.913828 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
[Thu Apr 27 14:53:04.913869 2017] [wsgi:error] [pid 18:tid 139983624087296] [remote 172.29.236.105:25984] ValueError: Incorrect timezone setting: UTC

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Jeremy, thanks for pointing this out, I was wondering for a while why horizon was failing.

Changed in kolla:
assignee: nobody → Eduardo Gonzalez (egonzalez90)
status: New → In Progress
importance: Undecided → High
milestone: none → pike-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/460770
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=1aca75111df1fbf65908fecd01a695699c7833a1
Submitter: Jenkins
Branch: master

commit 1aca75111df1fbf65908fecd01a695699c7833a1
Author: Eduardo Gonzalez <email address hidden>
Date: Fri Apr 28 01:03:28 2017 +0200

    Fix Incorrect timezone in ubuntu horizon images

    Ubuntu removed tzdata and locales from docker images by default,
    this is causing horizon to not come up failing
    setting timezone:
    ```ValueError: Incorrect timezone setting: UTC```

    Change-Id: I5bbc4d949ed481d1f6629dbb2f5edad174a36e63
    Closes-Bug: #1686830

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/ocata)

Reviewed: https://review.openstack.org/464214
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=b78becb060b69e353510fabb2f682bf6caa2f961
Submitter: Jenkins
Branch: stable/ocata

commit b78becb060b69e353510fabb2f682bf6caa2f961
Author: Eduardo Gonzalez <email address hidden>
Date: Fri Apr 28 01:03:28 2017 +0200

    Fix Incorrect timezone in ubuntu horizon images

    Ubuntu removed tzdata and locales from docker images by default,
    this is causing horizon to not come up failing
    setting timezone:
    ```ValueError: Incorrect timezone setting: UTC```

    Change-Id: I5bbc4d949ed481d1f6629dbb2f5edad174a36e63
    Closes-Bug: #1686830
    (cherry picked from commit 1aca75111df1fbf65908fecd01a695699c7833a1)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.0.0b2

This issue was fixed in the openstack/kolla 5.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 4.0.2

This issue was fixed in the openstack/kolla 4.0.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.