I have fixed it on his setup, but there is a bug in the MacMap.pm. It assumes interface names will always be like ‘swp33’ or so in cumulus.
However if you use breakout cables from a QSFP switch, for example, it may be: ‘swp33s2’ For example. It seems the ‘namesmatched’ sub was not used and the logic was attempted to be duplicated. I did a quick tweak: https://github.com/jjohnson42/xcat-core/commit/72d68bc7bd21a51aadf0444fede0067670c0b391 To simplify to just take the whole interface name, so long as it at least begins with swp. From: Casandra H Qiu <cxh...@us.ibm.com> Sent: Friday, July 10, 2020 9:55 AM To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Subject: [External] Re: [xcat-user] xcat switch base discovery failed with cumulus linux in Lenovo NE10032 switch the switch1 doesn't have switchtype defined. [root@mgt ~]# tabdump switches #switch,snmpversion,username,password,privacy,auth,linkports,sshusername,sshpassword,protocol,switchtype,comments,disable "switch1",,,"Pwd2020x0x0x0x0x1",,,,,,,,, what's the output for "xcatprobe switch_macmap switch1 -V " Thanks, Casandra Qiu ................................................................... Casandra Hong Qiu Phone: (845) 433-9291, t/l 293-9291 Office: Building 8, 3-B-04 cxh...@us.ibm.com<mailto:cxh...@us.ibm.com> [Inactive hide details for peter CZ1 Peng ---07/10/2020 12:33:00 AM---Hi ,sir Today I try to use the Lenovo NE switches with Cum]peter CZ1 Peng ---07/10/2020 12:33:00 AM---Hi ,sir Today I try to use the Lenovo NE switches with Cumulus linux system for compute node discove From: peter CZ1 Peng <peng...@lenovo.com<mailto:peng...@lenovo.com>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> Date: 07/10/2020 12:33 AM Subject: [EXTERNAL] [xcat-user] xcat switch base discovery failed with cumulus linux in Lenovo NE10032 switch ________________________________ Hi ,sir Today I try to use the Lenovo NE switches with Cumulus linux system for compute node discovery ,and see this errors [root@mgt ~]# tail -f /var/log/xcat/cluster.log Jul 10 00:27:39 mgt xcat[6209]: INFO xcat.discovery.zzzdiscovery: Notify 172.20.255.87 that its findme request has been processed Jul 10 00:27:45 mgt xcat[6209]: INFO xcatd: Processing discovery request from 172.20.255.87 Jul 10 00:27:45 mgt xcat[6209]: INFO xcat.discovery.aaadiscovery: (bc:97:e1:4d:a9:ca) Got a discovery request, attempting to discover the node... Jul 10 00:27:45 mgt xcat[6209]: INFO xcat.discovery.blade: (bc:97:e1:4d:a9:ca) Warning: Could not find any nodes using blade-based discovery Jul 10 00:27:45 mgt xcat[6408]: INFO Error communicating with switch 172.30.55.1: Unable to get MAC entries via either BRIDGE or Q-BRIDE MIB Jul 10 00:27:45 mgt xcat[6209]: INFO refresh_table ElapsedTime:0 sec Jul 10 00:27:45 mgt xcat[6209]: INFO xcat.discovery.switch: (bc:97:e1:4d:a9:ca) Warning: Could not find any nodes using switch-based discovery Jul 10 00:27:45 mgt xcat[6209]: INFO xcat.discovery.mtms: (bc:97:e1:4d:a9:ca) Warning: Could not find any node for Lenovo:ThinkSystem SR645*J3026HH2 using mtms-based discovery [root@mgt ~]# lsdef node03 Object name: node03 arch=x86_64 bmc=node03-bmc bmcpassword=Pwd2020x0x0x0x0x1 bmcport=0 bmcusername=admin chain=runcmd=bmcsetup,shell groups=ipmi,42perswitch,84nodeperrack,compute,all,RACKA1,MFG202000001,c1,hdr installnic=mac ip=172.20.103.3 mgt=ipmi netboot=xnba ondiscover=nodediscover os=rhels8.1 postbootscripts=otherpkgs postscripts=syslog,remoteshell,syncfiles primarynic=mac profile=compute rack=1 serialport=1 serialspeed=115200 switch=switch1 switchport=swp1s2 unit=3 [root@mgt ~]# tabdump switches #switch,snmpversion,username,password,privacy,auth,linkports,sshusername,sshpassword,protocol,switchtype,comments,disable "switch1",,,"Pwd2020x0x0x0x0x1",,,,,,,,, [root@mgt ~]# snmpwalk -Os -v1 -c Pwd2020x0x0x0x0x1 switch1 1.3.6.1 | grep -i bc:97:e1:4d:a9:ca ipNetToPhysicalPhysAddress.2.ipv6."fe:80:00:00:00:00:00:00:be:97:e1:ff:fe:4d:a9:ca" = STRING: bc:97:e1:4d:a9:ca ipNetToPhysicalPhysAddress.45.ipv6."fe:80:00:00:00:00:00:00:be:97:e1:ff:fe:4d:a9:ca" = STRING: bc:97:e1:4d:a9:ca [root@mgt ~]# Does anyone have same issue or how to debug with this type of switches ? thanks Best wishes, Peter CZ Peng 彭成柱 Global Engineering - Complex Solutions TE Lenovo China Lenovo R & D Center, Gao Xin Road No.16, Nanshan District science and Technology Park, Shenzhen, China Phone: +86 181 2997 7350 peng...@lenovo.com<mailto:peng...@lenovo.com> _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net<mailto: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