confignics has been deprecated, equivalent function is now available in the
confignetwork postscript.

Changing your definition to:
postscripts=confignetwork -s,setupntp,hpc3-postscripts/hpc3postscript.1
should replicate the old behavior.




From:   Imam Toufique <techie...@gmail.com>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   12/15/2020 04:05 AM
Subject:        [EXTERNAL] [xcat-user] question on setting static IP
            in /etc/sysconfig/network-script/ifcfg-* files



Hi,
I ran into an issue setting static IP addresses, that I am not sure what
changed.

I had 'confignics -s' in postscripts, to write-out
an /etc/sysconfig/network-scripts/ifcfg-<interfacename> file with static IP
address, for a node.

I have this:
postscripts=confignics -s,setupntp,hpc3-postscripts/hpc3postscript.1

This was working all along. When nodes were being built, my
ifcfg-<interfacename> files were being written out as the one (example)
below:

DEVICE=eno3
IPADDR=10.240.58.14
NETMASK=255.255.254.0
BOOTPROTO=none
ONBOOT=yes
NAME=xcat-eno3
MTU=1500

Recently(about 2 months ago or so), I upgraded to xcat 2.16 release.

[root@hpc3-xcat-1 dhcpd]# lsxcatd -v
Version 2.16 (git commit 7fc773bd8e82ff9270bd7832558422dd17e23e66, built
Tue Jun 16 16:07:25 EDT 2020

Now, the ifcfg-<interfacename> files are no longer being setup like that.
Files are being written out like that.

# Generated by parse-kickstart
DEVICE="eno5"
IPV6INIT="yes"
BOOTPROTO="dhcp"
UUID="2e7e3e1c-c2ad-4004-bedd-b8f975fae95c"
ONBOOT="yes"

I haven't changed any postscript configuration, perhaps there was a change
needed related to this, which I am not sure of.

network table look like this:

[root@hpc3-xcat-1 ansible]# lsdef -t network compute_net_1
Object name: compute_net_1
    domain=local
    dynamicrange=10.240.58.221-10.240.58.240
    gateway=10.240.58.1
    mask=255.255.254.0
    mgtifname=eno1
    mtu=1500
    nameservers=10.240.58.4,8.8.8.8
    net=10.240.58.0
    staticrange=10.240.58.4-10.240.58.220
    tftpserver=<xcatmaster>

Is 'confignics' no longer supported in the new version of xcat? What is the
process of writing/configuring an static IP address for nodes in xcat?

Please give me a hand with this, as I would really like to avoid setting
network card settings with DHCP.

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



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

Reply via email to