Hi all,

I bumped into a configuration error while trying to add a physical network
interface to a switch:
$ ovs-vsctl add-br myswitch
$ ovs-vsctl add-port myswitch eth9
ovs-vsctl: Error detected while setting up 'eth9': could not add network
device eth9 to ofproto (File exists).  See ovs-vswitchd log for details.
ovs-vsctl: The default log directory is "/opt/oa/var/log/openvswitch".

Then I go to the specified log file and I don't see much more:
2018-04-20T14:26:05.226Z|00174|dpif|WARN|system@ovs-system: failed to add
eth9 as port: File exists
2018-04-20T14:26:05.226Z|00175|bridge|WARN|could not add network device
eth9 to ofproto (File exists)

The interface is up and bound to the correct driver:
# ip a show dev eth9
206: eth9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master
ovs-system state UP group default qlen 1000
    link/ether 00:90:0b:54:88:58 brd ff:ff:ff:ff:ff:ff

# ls -l /sys/class/net/eth9/device/driver
lrwxrwxrwx 1 root root 0 Apr 20 14:21 /sys/class/net/eth9/device/driver ->
../../../../bus/pci/drivers/igb

Deleting the port or the switch and re-doing the steps above won't help.

What am I missing here?

Here are more details from ovsdb:

# ovs-vsctl list bridge myswitch
_uuid               : 585d63aa-bcb4-467a-a206-fa71ce239fe6
auto_attach         : []
controller          : []
datapath_id         : "0000aa635d587a46"
datapath_type       : ""
datapath_version    : "<unknown>"
external_ids        : {}
fail_mode           : []
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mcast_snooping_enable: false
mirrors             : []
name                : myswitch
netflow             : []
other_config        : {}
ports               : [51c23178-5e3b-456d-bd91-f02358a06d16,
f0764ed6-197a-4d5f-962a-e9d9e3ede485]
protocols           : []
rstp_enable         : false
rstp_status         : {}
sflow               : []
status              : {}
stp_enable          : false

# ovs-vsctl list port eth9
_uuid               : f0764ed6-197a-4d5f-962a-e9d9e3ede485
bond_active_slave   : []
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
cvlans              : []
external_ids        : {}
fake_bridge         : false
interfaces          : [823e7827-4a34-4aa6-98aa-dc5964d456c6]
lacp                : []
mac                 : []
name                : "eth9"
other_config        : {}
protected           : false
qos                 : []
rstp_statistics     : {}
rstp_status         : {}
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []

# ovs-vsctl list interface eth9
_uuid               : 823e7827-4a34-4aa6-98aa-dc5964d456c6
admin_state         : []
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : []
error               : "could not add network device eth9 to ofproto (File
exists)"
external_ids        : {}
ifindex             : []
ingress_policing_burst: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : []
link_speed          : []
link_state          : []
lldp                : {}
mac                 : []
mac_in_use          : []
mtu                 : []
mtu_request         : []
name                : "eth9"
ofport              : -1
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {}
status              : {}
type                : ""


Thanks!

Riccardo
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to