xcat-core icon indicating copy to clipboard operation
xcat-core copied to clipboard

Could not add the subnet ::1 for interface lo

Open aolloh opened this issue 2 years ago • 3 comments
trafficstars

Hello Team, I tried to set up dhcp server on my xCat management node and I got the error below

### xCat and OS version that I'm using
[xcatmanager2 ]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.5 (Ootpa)

[xcatmanager]# lsxcatd -a
Version 2.16.3 (git commit d6c76ae...)
This is a Management Node
dbengine=SQLite

### DHCP services initialized
[xcatmanager]# lsdef -t site clustersite
...
dhcpinterfaces=ens3
...

I got this first error and I solved it by disabling ipv6.method on both interfaces ens3 and ens9

[xcatmanager]# makedhcp -n
Renamed existing dhcp configuration file to  /etc/dhcp/dhcpd.conf.xcatbak

Error: [xcatmanager]: Could not add the subnet ::1 for interface lo into /etc/dhcp/dhcpd.conf.
Please verify the xCAT database matches networks defined on this system.
Warning: [xcatmanager]: No dynamic range specified for 2001:a18:a:a017::/64. Hosts with no static address will receive no addresses on this subnet.
Warning: [xcatmanager]: No dynamic range specified for 2001:a18:a:a018::/64. Hosts with no static address will receive no addresses on this subnet.

Someone can help me to solve this issue. Is it a good idea to disable ipv6 on the loopback interface also ?

[xcatmanager2]#  makedhcp -n
Renamed existing dhcp configuration file to  /etc/dhcp/dhcpd.conf.xcatbak

Error: [xcatmanager]: Could not add the subnet ::1 for interface lo into /etc/dhcp/dhcpd.conf.
Please verify the xCAT database matches networks defined on this system.

Here's the precheck summary

[xcatmanager]# xcatprobe xcatmn
...
=================================== SUMMARY ====================================
[MN]: Checking on MN...                                                                                           [FAIL]
    No interface provided by '-i' option, detected 'site' table IP attribute 172.17.4.40, checking xCAT configu...[WARN]
    If this is incorrect, rerun with -i <ifname> option                                                           [WARN]
    Checking DHCP service is configured...                                                                        [FAIL]
        makedhcp xcatmntest failed
        Run 'makedhcp -n' if it has not been ran before.

Any advice will be welcomed Thx

aolloh avatar Dec 30 '22 17:12 aolloh

As a workaround add lo:noboot to your site.dhcpinterfaces variable. That should to the trick.

Obihoernchen avatar Jan 09 '23 20:01 Obihoernchen

Thx Obihörnchen

aolloh avatar Jun 08 '23 15:06 aolloh

As a further precaution, please check on /etc/hosts and remove any IPv6 localhost entries.

samveen avatar Jun 12 '23 09:06 samveen