What do you get when you run "ip -4 -o a" ?
Another possibility is here: my $nics = `ip -4 -o a|grep '$installnic\\\\' >/dev/null 2>&1`; if ($?) { push @$error_ref, "There isn't NIC '$installnic' in current server"; $rst = 1; } else { Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein From: "Stagneth, Andre" <andre.stagn...@dxc.com> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net> Date: 11/04/2021 04:45 PM Subject: [EXTERNAL] Re: [xcat-user] xcatprobe NIC issue We try both: net=172.18.0.0/16 without mask and also net=172.18.0.0 and mask=255.255.0.0 But same result. The second mentioned was our first try. But after it does not work we try use the /16 notation. I am wondering about eth0 is not a NIC. Holen Sie sich Outlook für Android From: Mark Gurevich <gurev...@us.ibm.com> Sent: Thursday, November 4, 2021 9:15:03 PM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Subject: Re: [xcat-user] xcatprobe NIC issue I suspect this is probably because there is no "mask" attribute defined for "mgtnet" network. The xcatproble code calls probe_utils.pm->is_ip_belong_to_net(). And there it tests "return 0 if ($mask !~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/);" Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein Inactive hide details for "Stagneth, Andre" ---11/04/2021 03:58:45 PM---It is xcat 2.14.6 ________________________________"Stagneth, Andre" ---11/04/2021 03:58:45 PM---It is xcat 2.14.6 ________________________________ From: "Stagneth, Andre" <andre.stagn...@dxc.com> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net> Date: 11/04/2021 03:58 PM Subject: [EXTERNAL] Re: [xcat-user] xcatprobe NIC issue It is xcat 2.14.6 Von: Mark Gurevich <gurev...@us.ibm.com> Gesendet: Donnerstag, 4. November 2021, 20:20 An: xCAT Users Mailing list Betreff: Re: [xcat-user] xcatprobe NIC issue Which version of xCAT ? Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein Inactive hide details for "Stagneth, Andre" ---11/04/2021 02:54:13 PM---Hi, Can't find what's wrong. Any ideas?"Stagneth, Andre" ---11/04/2021 02:54:13 PM---Hi, Can't find what's wrong. Any ideas? From: "Stagneth, Andre" <andre.stagn...@dxc.com> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net> Date: 11/04/2021 02:54 PM Subject: [EXTERNAL] [xcat-user] xcatprobe NIC issue Hi, Can’t find what’s wrong. Any ideas? # xcatprobe xcatmn -i eth0 -V [mn]: Checking all xCAT daemons are running... [ OK ] [mn]: Checking xcatd can receive command request... [ OK ] [mn]: Checking 'site' table is configured... [ OK ] [mn]: Checking provision network is configured... [FAIL] [mn]: There isn't NIC 'eth0' in current server [mn]: IP of eth0 doesn't belong to any network defined in 'networks' table =================================== SUMMARY ==================================== [MN]: Checking on MN... [FAIL] Checking provision network is configured... [FAIL] There isn't NIC 'eth0' in current server IP of eth0 doesn't belong to any network defined in 'networks' table But eth0 is present: # ip a | grep eth0 -A1 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 link/ether 8c:dc:d4:aa:c1:a0 brd ff:ff:ff:ff:ff:ff inet 172.18.10.51/16 brd 172.18.255.255 scope global eth0 inet6 fe80::8edc:d4ff:feaa:c1a0/64 scope link valid_lft forever preferred_lft forever And network is configured too: # lsdef -t network -o mgtnet Object name: mgtnet ddnsdomain=rolls-royce.local dhcpserver=172.18.10.51 dynamicrange=172.18.254.200-172.18.254.250 mgtifname=eth0 nameservers=172.18.10.51 net=172.18.0.0/16 ntpservers=172.18.10.51 tftpserver=172.18.10.51 see site configuration too: # lsdef -t site -o clustersite Object name: clustersite SNsyncfiledir=/var/xcat/syncfiles blademaxp=64 cleanupxcatpost=yes consoleondemand=yes databaseloc=/var/lib db2installloc=/mntdb2 dhcpinterfaces=eth0,eth1 dnshandler=ddns domain=xxx.local enableASMI=no fsptimeout=0 gateway=172.18.10.0 installdir=/install ipmimaxp=64 ipmiretries=3 ipmitimeout=2 master=172.18.10.51 maxssh=8 nameservers=172.18.0.1 powerinterval=0 ppcmaxp=64 ppcretry=3 ppctimeout=0 sharedtftp=1 site=RRUK sshbetweennodes=ALLGROUPS syspowerinterval=0 tftpdir=/tftpboot timezone=Europe/London useNmapfromMN=yes vsftp=y xcatconfdir=/etc/xcat xcatdport=3001 xcatiport=3002 Regards, André EntServ Deutschland GmbH: Schickardstraße 32, 71034 Böblingen, Germany - Board of Directors: Joachim Löffler (Chairman) - Registered in Stuttgart: HRB 757510.. DXC Technology Company -- This message is transmitted to you by or on behalf of DXC Technology Company or one of its affiliates. It is intended exclusively for the addressee. The substance of this message, along with any attachments, may contain proprietary, confidential or privileged information or information that is otherwise legally exempt from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate any part of this message. If you have received this message in error, please destroy and delete all copies and notify the sender by return e-mail. Regardless of content, this e-mail shall not operate to bind DXC Technology Company or any of its affiliates to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. --. _______________________________________________ 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 _______________________________________________ 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