[pve-devel] [PATCH pve-cluster] pve-cluster.service : remove from /etc/hosts

DERUMIER, Alexandre alexandre.derumier at groupe-cyllene.com
Wed Jun 28 09:47:47 CEST 2023

> >  
> >  [Service]
> > +ExecStartPre=/usr/bin/sed -i '/' /etc/hosts
> .. and so is this, messing with hosts on every  pve-cluster start or
> update..
> So no, please don't, messing with such things can be really subtle!
ok, I was not sure.

> Let's rather improve pmxcfs logic for getting the non-local IP
> configured on
> a node via getaddrinfo with the ALL flag and filtering out local
> IPs..
oh, I didn't known than getaddrinfo could return multiple ips.
(I thinked it was doing a simple dns resolution)
I'll look at that, thanks !

More information about the pve-devel mailing list