Hello,

I'm successfully using xCAT 2.15.1 to provision CentOS 8.1 stateless nodes.

For that matter my osimage has got the confignetwork -s postscript configured.

By default genimage does not generate a hostname-mode directive in NetworkManager.conf(5) causing it to have its default value.

This causes the following behavior :

- osimage without confignetwork -s : node hostname ends up being a non fqdn name (ex: maestro-1000) : this is good

- osimage with confignetwork -s : node hostname ends up being the fqdn name : (ex : maestro-1000.maestro.pasteur.fr) : this is to me not recommended and anyway not consistent with the above case

This is because DHCP sends the non fqdn hostname and dracut/initrd sets the transient hostname to the fqdn hostname and, according to the semantic of the default value of NetworkManager(5) hostname-mode, the original hostname (i.e. initrd/dracut fqdn one in this case) is restored once the DHCP connection is deactivated, which is the case when the xcat- static profile is created by confignetwork -s takes over.

This can be worked around by inserting into the image the hostname-mode=none NetworkManager.conf(5) setting.

However I saw in configeth script code (which is called be confignetwork) that the transient hostname is set using the hostname(1) command (hostname $NODE)

I think it may be the problem as NetworkManager has no way to be aware of it (as it uses systemd-hostnamed service as a proxy).

Wouldn't configeth rather use dbus-send or hostnamectl(1) --transient to achieve the same ?

What do you think ?

Thanks for your help

--
Thomas HUMMEL


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to