Menu

#4698 [fvt]2.10:switchdiscover -w return wrong info if no swith discovered

2.10
closed
None
unknown
5
2015-07-06
2015-06-12
junxiaw
No

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

Discussion

  • Casandra Qiu

    Casandra Qiu - 2015-06-15
    • assigned_to: Ling --> Casandra Qiu
     
  • Casandra Qiu

    Casandra Qiu - 2015-06-16

    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
  • Casandra Qiu

    Casandra Qiu - 2015-06-16

    commit to xcat 2.10

    commit d707d7f12d5c787420e8e7e836eae150e4a6928a

     
  • Casandra Qiu

    Casandra Qiu - 2015-06-16
    • status: open --> test
     
  • Casandra Qiu

    Casandra Qiu - 2015-06-16
    • status: test --> pending
     
  • junxiaw

    junxiaw - 2015-07-06
    • status: pending --> closed