Debug while switch port cannot up

Issue 1, During add port error.

admin@PicOS-OVS$ovs-vsctl add-port br0 te-1/1/49 vlan_mode=trunk tag=1 -- set i
nterface te-1/1/49 type=pica8 
ovs-vsctl: Error detected while setting up 'te-1/1/49'.  See ovs-vswitchd log for details.
admin@PicOS-OVS$

Please check license installed or not. 

admin@PicOS-OVS$license -s

If no license installed, please install license first; If license has installed but the port also add error, please check the port whether is valid in the switch.

admin@PicOS-OVS$ovs-appctl pica/show


Issue 2, Port cannot up.

admin@PicOS-OVS$ovs-ofctl show br0
OFPT_FEATURES_REPLY (OF1.4) (xid=0x2):
dpid:0x5e3e047d7b6293ff(6790870225108767743)
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS
OFPST_PORT_DESC reply (OF1.4) (xid=0x3):
 1(te-1/1/1): addr:04:7d:7b:62:93:ff
     config:     0
     state:      LINK_DOWN
     current:    FIBER
     advertised: 1GB-FD 10GB-FD FIBER
     supported:  1GB-FD 10GB-FD FIBER AUTO_NEG
     speed: 0 Mbps now, 10000 Mbps max

1, Please verify the connection, make sure the connect is correct.

2, Use CLI check module plugin or not.

admin@PicOS-OVS$ovs-invctl enable-sfp true
admin@PicOS-OVS$ovs-invctl show-sfp-qsfp 

3, If there is no module informations about the port, please repeat plugin module to check log messages.

admin@PicOS-OVS$ovs-appctl vlog/set hwlog
admin@PicOS-OVS$ovs-appctl hwlog/set-type config true
admin@PicOS-OVS$ovs-appctl hwlog/set-level all debug
 
Jan  5 2017 14:32:41 XorPlus daemon.warning : 14:32:41.220|ovs|00009|pica_private|WARN|SFP te-1/1/1 is plugged in, optical module type 10G_BASE_SR, vendor: OEM, serial number: A85351050280

4, If there is no log message as above. This is bug, please contract us.

5, If there have log message, and can read module use cammand 'ovs-invctl show-sfp-qsfp'. But port still cannot up, this also one bug, please contract us.

ec869713-92af-406e-abb4-f60efdec59f3
  port_name: "te-1/1/1"
  vendor_name: OEM
  vendor_sn: "A85351050280"
  wavelength: "850 nm"
  temperature: "82 F"
  supply_voltage: "3.00 V"
  connector: LC
  length_copper: "0 m"
  length_50m: "80 m"
  length_625m: "20 m"
  length_9m: "300 m"
  length_9m_km: "0 m"
  plugged_in: true
  rx_receive_power: "-2.68 dbM"
  tx_bias_current: "6.00 mA"
  tx_optical_power: "-3.26 dbM"

6, If there have plug-in log message, but the module is unknown. Like below.

Jan  5 2017 14:41:14 XorPlus daemon.warning : 14:41:14.631|ovs|00014|pica_private|WARN|SFP te-1/1/1 is plugged in, optical module type unknown, vendor: FINISAR, serial number: P117EWY
 
admin@PicOS-OVS$ovs-invctl show-sfp-qsfp 
d664a803-a6a1-4582-b162-6b9e617df2ea
  port_name: "te-1/1/1"
  vendor_name: FINISAR
  vendor_sn: "P117EWY"
  wavelength: "850 nm"
  temperature: "117995 F"
  supply_voltage: "65535.00 V"
  connector: LC
  length_copper: "0 m"
  length_50m: "300 m"
  length_625m: "150 m"
  length_9m: "0 m"
  length_9m_km: "0 m"
  plugged_in: true
  rx_receive_power: "65535.00 dbM"
  tx_bias_current: "65535.00 mA"
  tx_optical_power: "65535.00 dbM"

7, Please check the speed of module is same as the max speed of port supported. If it is, this is a bug, please contract us;

If the speed of module less than the max speed of port, please configure the port speed as the module. If the port also cannot up this time, please contract us.

admin@PicOS-OVS$ovs-vsctl set interface te-1/1/1 options:link_speed=1G
 
admin@PicOS-OVS$ovs-ofctl show br0
OFPT_FEATURES_REPLY (OF1.4) (xid=0x2):
dpid:0x5e3e047d7b6293ff(6790870225108767743)
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS
OFPST_PORT_DESC reply (OF1.4) (xid=0x3):
 1(te-1/1/1): addr:04:7d:7b:62:93:ff
     config:     0
     state:      LINK_UP
     current:    1GB-FD FIBER
     advertised: 1GB-FD FIBER
     supported:  1GB-FD 10GB-FD FIBER AUTO_NEG
     speed: 1000 Mbps now, 10000 Mbps max



Copyright © 2024 Pica8 Inc. All Rights Reserved.