[BlueOnyx:24438] Re: strange issue vsite and hostname

Michael Stauber mstauber at blueonyx.it
Wed Oct 28 23:07:23 -05 2020


Hi Gerrit,

> *Hostname changed via GUI*
> 
> [root at abc ~]# /usr/sausalito/constructor/base/system/10_addSystem.pl
> [root at abc ~]# hostnamectl
>    Static hostname: abc.xyz.net
>          Icon name: computer-vm
>            Chassis: vm
>         Machine ID: 61a25cca94654edd804920d9823a9ebd
>            Boot ID: 9625f63cb4ff4adca2576623de1deca2
>     Virtualization: vmware
>   Operating System: CentOS Linux 7 (Core)
>        CPE OS Name: cpe:/o:centos:centos:7
>             Kernel: Linux 3.10.0-1127.19.1.el7.x86_64
>       Architecture: x86-64
> [root at abc ~]# reboot
> 
> 
> System back up:
> 
> [root at abc ~]# hostnamectl
>    Static hostname: abc
> Transient hostname: abc.def.net
>          Icon name: computer-vm
>            Chassis: vm
>         Machine ID: 61a25cca94654edd804920d9823a9ebd
>            Boot ID: ce9ebe123ee1437db7517c2b9b757183
>     Virtualization: vmware
>   Operating System: CentOS Linux 7 (Core)
>        CPE OS Name: cpe:/o:centos:centos:7
>             Kernel: Linux 3.10.0-1127.19.1.el7.x86_64
>       Architecture: x86-64
> 
> Nah.
Yeah, this ain't funny, right? :-/

Today while I was working on the base-email and base-ssl fixes I noticed
that 5209R and 5210R *both* were doing unrequested hostname flips on
their own.

Here is a small excerpt from /var/log/messages that happened *just* when
turning SSL on or off for a Vsite:

systemd-hostnamed[1188684]: Changed static host name to '5210r.smd.net'
NetworkManager[904]: <info>  [1603944094.5183] hostname: hostname
changed from "5210r.smd.net" to "5210r"
NetworkManager[904]: <info>  [1603944094.5354] policy: set-hostname: set
hostname to '5210r' (from system configuration)
NetworkManager[904]: <info>  [1603944094.5358] hostname: hostname
changed from "5210r" to "5210r.smd.net"
systemd-hostnamed[1188684]: Changed host name to '5210r'
systemd[1]: Starting Network Manager Script Dispatcher Service...
NetworkManager[904]: <info>  [1603944094.5482] policy: set-hostname: set
hostname to '5210r.smd.net' (from system configuration)
systemd-hostnamed[1188684]: Changed host name to '5210r.smd.net'

Which is totally ridiculous, as no transaction was requested that should
mess with the servers hostname. I'm sure this is somehow related to your
issues as well.

I'll go digging and see what I find out.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list