Page MenuHomeVyOS Platform

Regression in 1.2.1-S2 hostname & logging
Closed, ResolvedPublic


The new 1.2.1-S2 version provides an incorrect hostname in output sent to a syslog server. A couple lines in the /etc/hosts file are different between 1.2.1 and 1.2.1-S2:

1.2.1       localhost debian	vr16-1 # VyOS entry


### Autogenerated by ###       localhost vr24-1

This produces different results when trying to find the FQDN:


bmtauer@vr16-1:~$ hostname -f


bmtauer@vr24-1:~$ hostname -f

The end results is that syslog data for ALL our vyos instances are getting lumped together as "localhost" rather than under specific instance names. This isn't the end of the world, but it does present difficulty.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close

Related Objects

Event Timeline

bmtauer created this object in space S1 VyOS Public.

@bmtauer I have made a fix in the rolloing release and also backpurted to crux. so should be in 1.2.2

UnicronNL claimed this task.

I think there's still an issue in the latest rolling. The hostname is not being set to the one in the config.

vyos@vyos:~$ configure
vyos@vyos# show system host-name
 host-name VyOS-Lake
vyos@vyos# cat /etc/hosts

### Autogenerated by ###       localhost       vyos

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

# static hostname mappings

### modifications from other scripts should be added below

vyos@vyos# run show system image
The system currently has the following image(s) installed:

   1: 1.2.0-rolling+201906251727 (default boot)
   2: 1.2.0-rolling+201906161708

@bmtauer, @mb300sd, the proper fix was applied. You can check again with any rolling release after 2019-07-17. Write back, please, if the problem will be still there.

@zsdc Rolling builds appear to be broken. ( T1533 ) Nothing newer than 201907150337.

@mb300sd, yes - nothing newer yet. Just test, please, when a new build will be available. :)