Re: hostname-mode : short vs fqdn name

2020-04-20 Thread Thomas HUMMEL
On 4/17/20 10:23 PM, Beniamino Galvani wrote: Hello Beniamino, No, I don't think it does. I think that DHCP is run before NM, probably in initrd or by other services. Indeed, in between I came to a similar conclusion. And tracing further (helping my with NM dans my initrd sources) I figured

Re: hostname-mode : short vs fqdn name

2020-04-17 Thread Beniamino Galvani via networkmanager-list
On Fri, Apr 10, 2020 at 07:44:51PM +0200, Thomas HUMMEL wrote: > On 4/9/20 10:59 AM, Beniamino Galvani wrote: > > > alking about D-Bus, I see this in the begining of all 3 (default, none, > > > dhcp) traces : > > > > > > Apr 08 14:53:29 maestro-1000.maestro.pasteur.fr NetworkManager[25235]: > > >

Re: hostname-mode : short vs fqdn name

2020-04-10 Thread Thomas HUMMEL
On 4/9/20 10:59 AM, Beniamino Galvani wrote: alking about D-Bus, I see this in the begining of all 3 (default, none, dhcp) traces : Apr 08 14:53:29 maestro-1000.maestro.pasteur.fr NetworkManager[25235]: [1586350409.2521] policy: get-hostname: "maestro-1000.maestro.pasteur.fr" (from dbus) Apr

Re: hostname-mode : short vs fqdn name

2020-04-10 Thread Beniamino Galvani via networkmanager-list
On Thu, Apr 09, 2020 at 11:20:17AM +0200, Thomas HUMMEL wrote: > On 4/9/20 10:59 AM, Beniamino Galvani wrote: > > > > how is this hostname fully qualified who sets it ? The original hostname > > > always seems to be this one. > > > > I don't know, it is set before NM starts. > > Ok, I'll look

Re: hostname-mode : short vs fqdn name

2020-04-09 Thread Thomas HUMMEL
On 4/9/20 10:59 AM, Beniamino Galvani wrote: how is this hostname fully qualified who sets it ? The original hostname always seems to be this one. I don't know, it is set before NM starts. Ok, I'll look into this but this is not related to my initial problem indeed. In the 'none' log,

Re: hostname-mode : short vs fqdn name

2020-04-09 Thread Beniamino Galvani via networkmanager-list
On Wed, Apr 08, 2020 at 04:18:32PM +0200, Thomas HUMMEL wrote: > Hello, thanks for your answer > > On 4/8/20 10:25 AM, Beniamino Galvani wrote: > > >> - step2 (I guess) puts HOSTNAME=maestro-1000 in /etc/sysconfig/network > > > > AFAIK, NetworkManager doesn't do that. > > Although I saw that it

Re: hostname-mode : short vs fqdn name

2020-04-08 Thread Thomas HUMMEL
On 4/8/20 4:18 PM, Thomas HUMMEL wrote: >> b) : NM just don't play with the transient name and sets a static hostname >> coming from /etc/sysconfig/network > > NM sets the transient host name. It doesn't know about > /etc/sysconfig/network. The hostname is determined in this way: But man

Re: hostname-mode : short vs fqdn name

2020-04-08 Thread Thomas HUMMEL
Hello, thanks for your answer On 4/8/20 10:25 AM, Beniamino Galvani wrote: >> - step2 (I guess) puts HOSTNAME=maestro-1000 in /etc/sysconfig/network > > AFAIK, NetworkManager doesn't do that. Although I saw that it was the postscript which wrote into this file, I thought NetworkManager was

Re: hostname-mode : short vs fqdn name

2020-04-08 Thread Beniamino Galvani via networkmanager-list
On Tue, Apr 07, 2020 at 10:48:28PM +0200, Thomas HUMMEL wrote: > Hello, > > I'm trying to figure out how exactly my stateless HPC nodes (CentOS > 8.1/NetworkManager-1.20.0) get their hostnames. > > As a matter of fact, they can either get a "short" (non fqdn - something > like 'maestro-1000')