[BlueOnyx:23420] 5210R looses resolv.conf

Maurice de Laat mdlaat at muisnetwerken.nl
Mon Nov 11 13:30:29 -05 2019


Hello list,

I keep struggling with a fresh 5210R installation. Every time after I 
use easy-migrate, /etc/resolv.conf gets overwritten and the system can't 
resolve hostnames any more. And I don't see why.

After installation  /etc/resolv.cfg seems happy:
[root at centos8 ~]# cat /etc/resolv.conf
# /etc/resolv.conf
# Auto-generated file.  Keep your customizations at the bottom of this file.
nameserver 1.1.1.1
search centos8
domain centos8
#END of auto-generated code.  Customize beneath this line.
[root at centos8 ~]#

and it stays happy for numerous hours and a few restarts.

But when easy migrate is being run, somehow Network Manager kicks in and 
changes /etc/resolv.conf to the following
[root at centos8 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search localdomain
nameserver 1.1.1.1
[root at centos8 ~]#

Looking at the time it is modified:
[root at centos8 ~]# ls --time-style='+%d-%m-%Y %H:%M:%S' -l /etc/resolv.conf
-rw-r--r-- 1 root root 45 11-11-2019 18:47:52 /etc/resolv.conf
[root at centos8 ~]#

And browsing to logfiles around that time I see easy migrate is creating 
a dummy vsite after which it seems to go wrong:

Nov 11 18:47:51 centos8 cced(smd)[23902]: client 
0:handlers/base/vsite/vsite_create.pl: SET  36 basedir = 
"/home/.sites/site1" name = site1
Nov 11 18:47:52 centos8 dbus-daemon[720]: [system] Activating via 
systemd: service name='org.freedesktop.hostname1' 
unit='dbus-org.freedesktop.hostname1.service' requested by ':1.604' 
(uid=0 pid=24084 comm="/usr/bin/hostnamectl set-hostname centos8.centos8 ")
Nov 11 18:47:52 centos8 systemd[1]: Starting Hostname Service...
Nov 11 18:47:52 centos8 dbus-daemon[720]: [system] Successfully 
activated service 'org.freedesktop.hostname1'
Nov 11 18:47:52 centos8 systemd[1]: Started Hostname Service.
Nov 11 18:47:52 centos8 systemd-hostnamed[24085]: Changed static host 
name to 'centos8.centos8'
Nov 11 18:47:52 centos8 NetworkManager[12882]: <info> [1573494472.9205] 
hostname: hostname changed from "centos8.centos8" to "centos8"
Nov 11 18:47:52 centos8 dbus-daemon[720]: [system] Activating via 
systemd: service name='org.freedesktop.nm_dispatcher' 
unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.115' 
(uid=0 pid=12882 comm="/usr/sbin/NetworkManager --no-daemon ")
Nov 11 18:47:52 centos8 systemd[1]: Starting Network Manager Script 
Dispatcher Service...
Nov 11 18:47:52 centos8 NetworkManager[12882]: <info> [1573494472.9974] 
policy: set-hostname: set hostname to 'centos8' (from system configuration)
Nov 11 18:47:53 centos8 NetworkManager[12882]: <info> [1573494472.9979] 
hostname: hostname changed from "centos8" to "centos8.centos8"

Does anyone know what is going on and why the resolv.conf gets overwritten?

Kind regards
Maurice



More information about the Blueonyx mailing list