[kolla-ansible][watcher]Time zone issue in container

Stefan Bryzga stefanbryzga at gmail.com
Thu Apr 27 08:12:38 UTC 2023


Hi all,

Recently I created fresh deployment based on kolla-ansible yoga and debian
11. Everything works correctly except Watcher services. Containers are in
constant restart loop.
On Debian host OS time-related files are as follows:

lrwxrwxrwx  1 root root      33 Mar 21 07:53 localtime ->
/usr/share/zoneinfo/Europe/Warsaw
-rw-r--r--  1 root root      14 Mar 21 07:53 timezone
x at control01:/etc$ cat timezone
Europe/Warsaw

However every container have:

lrwxrwxrwx 1 root root      27 Apr 11 02:00 localtime ->
/usr/share/zoneinfo/Etc/UTC
-rw-r--r-- 1 root root      14 Mar 21 07:53 timezone
(nova-api)[root at control01 etc]# cat timezone
Europe/Warsaw

In watcher logs I found error:
2023-04-27 10:08:12.607 7 ERROR python-watcher
tzlocal.utils.ZoneInfoNotFoundError: 'Multiple conflicting time zone
configurations found:\n/etc/timezone: Europe/Warsaw\n/etc/localtime is a
symlink to: UTC\nFix the configuration, or set the time zone in a TZ
environment variable.\n'
2023-04-27 10:08:12.607 7 ERROR python-watcher
Which I believe is caused by wrong symlink for /etc/localtime in
containers.

Did anyone experience similar issue and know how to resolve it.

Best regards,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230427/3886c9b0/attachment.htm>


More information about the openstack-discuss mailing list