You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xCAT::MsgUtils->message("S", "Failed to get mac table with ssh to $switch, fall back to snmp! To obtain mac table with ssh, please make sure the passwordless root ssh to $switch is available");
Unfortunately, when the SSH connection fails, and despite the "fall back to snmp" comment, there doesn't seem to be any kind of fallback to SNMP, an error is reported and the function exists.
Example
For instance, let's consider the following ONIE switch:
If passwordless SSH is not configured, xcatprobe switch_macmap fails with the following error:
# xcatprobe switch_macmap esw
esw: [mn01]: Error: Failed to get MAC table from esw. Make sure passwordless SSH to the ...[FAIL]
and logs this to cluster.log:
xcat[28008]: INFO Failed to get mac table with ssh to esw, fall back to snmp! To obtain mac table with ssh, please make sure the passwordless root ssh to esw is available
xcat[28008]: INFO xcatprobe refresh_switch esw ElapsedTime:0 sec
It doesn't seem like it tries to retrieve the MAC table via SNMP, although it should work, because removing the switchtype=onie attribute makes switch_macmap work, which proves that SNMP discovery is working:
# chdef esw switchtype=""
1 object definitions have been created or modified.
# xcatprobe switch_macmap esw
Switch Port(MTU) MAC address(VLAN) Node
--------------------------------------------------------------------------------------
esw bond1(9216) b8:cb:29:a7:7d:d9(1) nm01
[...]
Do you have any insight as why the SNMP fallback mechanism doesn't work here?
The text was updated successfully, but these errors were encountered:
Description
For ONIE switches, the MacMap / refresh_switches routine first tries to connect via SSH to retrieve the MAC table:
xcat-core/perl-xCAT/xCAT/MacMap.pm
Lines 720 to 728 in c8cb1d6
Unfortunately, when the SSH connection fails, and despite the "fall back to snmp" comment, there doesn't seem to be any kind of fallback to SNMP, an error is reported and the function exists.
Example
For instance, let's consider the following ONIE switch:
If passwordless SSH is not configured,
xcatprobe switch_macmap
fails with the following error:and logs this to
cluster.log
:It doesn't seem like it tries to retrieve the MAC table via SNMP, although it should work, because removing the
switchtype=onie
attribute makesswitch_macmap
work, which proves that SNMP discovery is working:Do you have any insight as why the SNMP fallback mechanism doesn't work here?
The text was updated successfully, but these errors were encountered: