Open MauvaisJoueur opened 4 years ago
node01-toto
will be in the /etc/hosts
after ran makehosts
command
# lsdef node01
Object name: node01
groups=compute_group
hostnames=node01-toto
ip=10.0.0.1
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles
switchport=1
[root@boston02 ~]# makehosts node01
[root@boston02 ~]# grep node01 /etc/hosts
10.0.0.1 node01 node01.pok.stglabs.ibm.com node01-toto
The nic table is empty because the node definition doesn't have any nic attributes you can try to add those to node attributes
nicaliases.bond0=node01-toto-bond
nicips.bond0=10.0.0.1
nicnetworks.bond0=10_0_0_0-255_0_0_0
nictypes.bond0=bond
[root@boston02 ~]# makehosts node01
[root@boston02 ~]# grep node01 /etc/hosts
10.0.0.1 node01 node01.pok.stglabs.ibm.com node01-toto-bond
Hi,
Thank you for helping me out.
Sorry I'm not sure to understand.
node01-toto will be in the /etc/hosts after ran makehosts command
Yes it is in my case, as long as I add a single hostname in hosts.hostname
The nic table is empty because the node definition doesn't have any nic attributes you can try to add those to node attributes
nicaliases.bond0=node01-toto-bond nicips.bond0=10.0.0.1 nicnetworks.bond0=10_0_0_0-255_0_0_0 nictypes.bond0=bond
Documentation says that the
nics.nicaliases
field should be left empty. Also, I wanna add aliases for the bond members, once again according to the documentation, not to the bond itself. This to be able to deploy the node using any member of the bond interface.
Best regards
Hi,
Reference
I do have a similar problem to https://github.com/xcat2/xcat-core/issues/3676
Issue
My problem is
makehosts
doesn't work as expected: it doesn't add hosts aliases specified in hosts.hostnames field. I need to setup aliases because deployment interface is a bond interface. This is described/explained in the mac table documentation:Single hostname
Here is the
hosts
table:It works in the sense that
hostnames
field is correctly set:but
makehosts
doesn't generate the alias node01-toto :(Notice that
nics.nicaliases
is empty.Several hostnames
Here, even the node definition is broken, whether I use a space or a comma to separate hostnames, as described in the hosts documentation:
Or
hostnames=/\z/-toto/ /\z/-tata/
Workaround
Only solution I've found is to run a
sed
command that rewrites the /etc/hosts file.xCAT version
The fix to the referenced issue was to upgrade xCAT, but in my case this already is the latest version that runs.
Best regards