This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
  
  
  
Description
Description
When using SET_HOSTNAME, the new hostname is defined but the Syslog Service does not use the new hostname until the next reboot.
To Reproduce
Start a new VM, use SET_HOSTNAME and then look at the logs in /var/log/syslog, you will see the previous/original hostname.
Expected behavior
The new hostname should be visible in /var/log/syslog as soon as the new hostname is applied by /etc/one-context.d/net-15-hostname.
Details
- Affected Component: addon-context-linux
- Hypervisor: KVM
- Version: 6.0.0.2
Additional context
# cat /var/log/syslog
<.. other lines with old hostname ...>
Oct 12 10:02:55 ubuntu systemd[1]: motd-news.service: Succeeded.
Oct 12 10:02:55 ubuntu systemd[1]: Finished Message of the Day.
### <--- manually running "service syslog restart"
Oct 12 10:04:54 webserver01 systemd[1]: Stopping System Logging Service...
Oct 12 10:04:54 webserver01 rsyslogd: [origin software="rsyslogd" swVersion="8.2001.0" x-pid="858" x-info="https://www.rsyslog.com"] exiting on signal 15.
Oct 12 10:04:54 webserver01 systemd[1]: rsyslog.service: Succeeded.
Oct 12 10:04:54 webserver01 systemd[1]: Stopped System Logging Service.
Oct 12 10:04:54 webserver01 systemd[1]: Starting System Logging Service...
Progress Status