Page MenuHomeVyOS Platform

Changing timezone, does not restart rsyslog
Closed, ResolvedPublicBUG

Description

When changing the timezone, rsyslog doesn't restart.
In this case, the logs for example '/var/log/messages' have old time until restart rsyslog.

vyos@r2-roll# sudo cat /var/log/messages 
Aug 10 17:37:19 r2-roll systemd[1]: opt-vyatta-config-tmp-new_config_9910.mount: Succeeded.
Aug 10 17:37:20 r2-roll commit: Successful change to active configuration by user vyos on /dev/pts/0
Aug 10 17:37:21 r2-roll ntpd[1440]: Deleting interface #7 br0, 10.0.0.1#123, interface stats: received=0, sent=0, dropped=0, active_time=3680 secs
Aug 10 17:37:21 r2-roll ntpd[1440]: Deleting interface #10 br0, fe80::8045:c2ff:fed4:99bf%5#123, interface stats: received=0, sent=0, dropped=0, active_time=110 secs
[edit]
vyos@r2-roll# 
[edit]
vyos@r2-roll# 
[edit]
vyos@r2-roll# date
Mon 10 Aug 2020 05:37:36 PM UTC


vyos@r2-roll# set system time-zone Europe/Kiev 
[edit]
vyos@r2-roll# commit
[edit]
vyos@r2-roll# 

[edit]
vyos@r2-roll# date
Mon 10 Aug 2020 08:38:16 PM EEST
[edit]


vyos@r2-roll# set interfaces ethernet eth1 address 10.0.0.1/30
[edit]
vyos@r2-roll# commit
[edit]
vyos@r2-roll# 

vyos@r2-roll#  sudo cat /var/log/messages 


Aug 10 17:39:14 r2-roll ntpd[1440]: Listen normally on 11 eth1 10.0.0.1:123
Aug 10 17:39:14 r2-roll ntpd[1440]: Listen normally on 12 eth1 [fe80::5054:ff:fe81:d601%3]:123
[edit]
vyos@r2-roll# 

vyos@r2-roll# sudo service rsyslog restart

vyos@r2-roll# sudo cat /var/log/messages | tail -n 5
Aug 10 20:39:49 r2-roll systemd[1]: Stopped System Logging Service.
Aug 10 20:39:49 r2-roll systemd[1]: Starting System Logging Service...
Aug 10 20:39:49 r2-roll systemd[1]: Started System Logging Service.
Aug 10 20:39:49 r2-roll rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
Aug 10 20:39:49 r2-roll rsyslogd:  [origin software="rsyslogd" swVersion="8.1901.0" x-pid="11083" x-info="https://www.rsyslog.com"] start
[edit]
vyos@r2-roll#

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-rolling-202008101519
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

PR https://github.com/vyos/vyos-1x/pull/565

vyos@r6-roll# date
Tue 06 Oct 2020 10:03:42 AM EEST
[edit]
vyos@r6-roll# 

vyos@r6-roll# set system time-zone America/New_York 
[edit]
vyos@r6-roll# commit
[edit]
vyos@r6-roll# 

vyos@r6-roll# date
Tue 06 Oct 2020 03:04:34 AM EDT
[edit]
vyos@r6-roll# 

vyos@r6-roll# cat /var/log/messages | tail -n 5
Oct  6 03:04:23 r6-roll rsyslogd:  [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3614" x-info="https://www.rsyslog.com"] start
Oct  6 03:04:23 r6-roll systemd[1]: opt-vyatta-config-tmp-new_config_1644.mount: Succeeded.
Oct  6 03:04:24 r6-roll commit: Successful change to active configuration by user vyos on /dev/pts/0
Oct  6 03:04:24 r6-roll systemd[1]: logrotate.service: Succeeded.
Oct  6 03:04:24 r6-roll systemd[1]: Started Rotate log files.
Viacheslav changed the task status from Open to Needs testing.Oct 6 2020, 7:24 PM
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:30 PM
erkin removed a subscriber: Active contributors.