yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92221
[Bug 1888298] Re: cc_timezone fails on Ubuntu Bionic and Xenial minimal
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3761
** Bug watch added: github.com/canonical/cloud-init/issues #3761
https://github.com/canonical/cloud-init/issues/3761
** Changed in: cloud-init
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1888298
Title:
cc_timezone fails on Ubuntu Bionic and Xenial minimal
Status in cloud-images:
Invalid
Status in cloud-init:
Expired
Bug description:
Summary
===
On Ubuntu Bionic and Xenial minimal images, there is no tzdata package. As a result, when cloud-init tries to set the timezone it will fail and produce a stack trace.
Expected Result
===
No trace and no failure of the cloud-config.service :)
Actual result
===
2020-07-20 18:13:22,515 - util.py[DEBUG]: Running module timezone (<module 'cloudinit.config.cc_timezone' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.py'>) failed
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_timezone.py", line 47, in handle
cloud.distro.set_timezone(timezone)
File "/usr/lib/python3/dist-packages/cloudinit/distros/debian.py", line 165, in set_timezone
distros.set_etc_timezone(tz=tz, tz_file=self._find_tz_file(tz))
OSError: Invalid timezone America/Vancouver, no file found at /usr/share/zoneinfo/America/Vancouver
Steps to reproduce
===
$ wget https://cloud-images.ubuntu.com/daily/server/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img
$ multipass launch file:///$(pwd)/ubuntu-18.04-minimal-cloudimg-amd64.img --name=bionic-minimal
$ multipass exec bionic-minimal -- sudo systemctl list-units --failed --no-legend
# note that cloud-config.service fails
$ multipass exec bionic-minimal -- sudo cat /var/log/cloud-init.log | grep timezone
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1888298/+subscriptions
References