http://pad.lv/1709180 https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1709180 # ensure contiguous logs across timezone changes in cloud-init === Begin SRU Template === [Impact] Logs don't contain timezone information so cloud-config changes to timezone may make logs appear to go backwards across time changes. This change ensures UTC is used for all logging. [Test Case] # create a timezone changing cloud-config cat >timestamp.yaml <) with frequency once-per-instance 2017-10-16 22:39:29,443 - handlers.py[DEBUG]: start: modules-config/config-timezone: running config-timezone with frequency once-per-instance 2017-10-16 22:39:29,443 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/test-xenial/sem/config_timezone - wb: [644] 24 bytes 2017-10-16 22:39:29,444 - helpers.py[DEBUG]: Running config-timezone using lock () 2017-10-16 22:39:29,444 - util.py[DEBUG]: Writing to /etc/timezone - wb: [644] 17 bytes 2017-10-16 22:39:29,445 - util.py[DEBUG]: Attempting to remove /etc/localtime 2017-10-16 22:39:29,445 - handlers.py[DEBUG]: finish: modules-config/config-timezone: SUCCESS: config-timezone ran successfully 2017-10-16 22:39:29,446 - stages.py[DEBUG]: Running module disable-ec2-metadata () with frequency always ----- zesty Creating zesty-proposed-315387554 The configuration file contains legacy configuration keys. Please update your configuration file! --proposed -- Get:1 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 cloud-init all 17.1-18-gd4f70470-0ubuntu1~17.04.1 [340 kB] Preconfiguring packages ... 2017-10-16 22:40:41,855 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceNoCloud'] ... 2017-10-16 22:40:48,354 - util.py[DEBUG]: Read 0 bytes from /etc/system-image/channel.ini 2017-10-16 22:40:48,354 - cc_apt_configure.py[DEBUG]: handling apt config: {} 2017-10-16 22:40:48,470 - handlers.py[DEBUG]: finish: modules-config/config-ntp: SUCCESS: config-ntp ran successfully 2017-10-16 22:40:48,470 - stages.py[DEBUG]: Running module timezone () with frequency once-per-instance 2017-10-16 22:40:48,470 - handlers.py[DEBUG]: start: modules-config/config-timezone: running config-timezone with frequency once-per-instance 2017-10-16 22:40:48,470 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/test-zesty/sem/config_timezone - wb: [644] 24 bytes 2017-10-16 22:40:48,471 - helpers.py[DEBUG]: Running config-timezone using lock () 2017-10-16 22:40:48,471 - util.py[DEBUG]: Writing to /etc/timezone - wb: [644] 17 bytes 2017-10-16 22:40:48,472 - util.py[DEBUG]: Attempting to remove /etc/localtime 2017-10-16 22:40:48,473 - handlers.py[DEBUG]: finish: modules-config/config-timezone: SUCCESS: config-timezone ran successfully 2017-10-16 22:40:48,473 - stages.py[DEBUG]: Running module disable-ec2-metadata () with frequency always