How to reproduce:
1.down the latest build
2.[root@c910f04x27v02 ~]# switchdiscover --range 10.2.3.4/24 -w
Discovering switches using nmap. It may take long time...
ip name vendor mac
------------ ------------ ------------ ------------
Writing the data into xCAT DB....
---------------------------------> no switch discovered so this is wrong info here
[root@c910f04x27v02 ~]# lsdef
c910f04x27v03 (node)
c910f04x27v04 (node)
[root@c910f04x27v02 ~]#
cat /opt/xcat/lib/perl/xCAT_plugin/switchdiscover.pm
.......
if (exists($globalopt{w})) {
send_msg(\%request, 0, "Writing the data into xCAT DB....");
xCATdB($result, \%request, $sub_req);
}
......
----------------->no switch discovered here,so
will exit the routine if there is no switch discovered.
switchdiscover --range 10.2.3.4/24 -w
Discovering switches using nmap for 10.2.3.4/24. It may take long time...
No switch found
Last edit: Casandra Qiu 2015-06-16
commit to xcat 2.10
commit d707d7f12d5c787420e8e7e836eae150e4a6928a