watcher fails because of missing /etc/timezone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
In Progress
|
Medium
|
Dincer Celik | ||
Rocky |
New
|
Medium
|
Unassigned | ||
Stein |
New
|
Medium
|
Unassigned | ||
Train |
New
|
Medium
|
Unassigned | ||
Ussuri |
In Progress
|
Medium
|
Dincer Celik |
Bug Description
Trying to bring watcher up and running on stein but it fails with error below because /etc/timezone is not introduced into containers.
2020-01-21 16:34:06.790 6 INFO oslo.service.wsgi [req-fa0b6e56-
2020-01-21 16:34:06.791 6 INFO watcher.cmd.api [req-fa0b6e56-
2020-01-21 16:34:06.840 6 CRITICAL python-watcher [req-323a698f-
2020-01-21 16:34:06.840 6 ERROR python-watcher Traceback (most recent call last):
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher sys.exit(main())
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher api_schedule.
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher seconds=
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher 'trigger': self._create_
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher return self._create_
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher return plugin_
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher self.timezone = astimezone(
2020-01-21 16:34:06.840 6 ERROR python-watcher File "/var/lib/
2020-01-21 16:34:06.840 6 ERROR python-watcher 'Unable to determine the name of the local timezone -- you must explicitly '
2020-01-21 16:34:06.840 6 ERROR python-watcher ValueError: Unable to determine the name of the local timezone -- you must explicitly specify the name of the local timezone. Please refrain from using timezones like EST to prevent problems with daylight saving time. Instead, use a locale based timezone name (such as Europe/Helsinki).
Maybe we should introduce /etc/timezone to all containers by default.