[ovs-dev] [bug] failed to add ovs bridge
fukaige
fukaige at huawei.com
Wed May 17 03:02:47 UTC 2017
I test ovs 2.5.0/2.5.2/2.5.3 on ARM64&x86. All got the same error.
From: fukaige
Sent: Wednesday, May 17, 2017 9:16 AM
To: 'dev at openvswitch.org'
Cc: 'Ben Pfaff'
Subject: [bug] failed to add ovs bridge
Hi, all
I am using ovs-2.5.2 and get error when creating a bridge using “ovs-vsctl add-br br-eth”
ovs-vsctl: Error detected while setting up 'br-eth'. See ovs-vswitchd log for details.
ovs-vswitchd log is as below:
2017-05-11T03:45:25.293Z|00026|ofproto_dpif|INFO|system at ovs-system: Datapath supports recirculation
2017-05-11T03:45:25.293Z|00027|ofproto_dpif|INFO|system at ovs-system: MPLS label stack length probed as 1
2017-05-11T03:45:25.293Z|00028|ofproto_dpif|INFO|system at ovs-system: Datapath supports unique flow ids
2017-05-11T03:45:25.293Z|00029|ofproto_dpif|INFO|system at ovs-system: Datapath supports ct_state
2017-05-11T03:45:25.293Z|00030|ofproto_dpif|INFO|system at ovs-system: Datapath supports ct_zone
2017-05-11T03:45:25.293Z|00031|ofproto_dpif|INFO|system at ovs-system: Datapath supports ct_mark
2017-05-11T03:45:25.293Z|00032|ofproto_dpif|INFO|system at ovs-system: Datapath supports ct_label
2017-05-11T03:45:25.364Z|00001|ofproto_dpif_upcall(handler226)|INFO|received packet on unassociated datapath port 0
2017-05-11T03:45:25.368Z|00033|netdev_linux|WARN|ethtool command ETHTOOL_GFLAGS on network device br-eth failed: No such device
2017-05-11T03:45:25.368Z|00034|dpif|WARN|system at ovs-system: failed to add br-eth as port: No such device
2017-05-11T03:45:25.368Z|00035|bridge|INFO|bridge br-eth: using datapath ID 00002a51cf9f2841
2017-05-11T03:45:25.368Z|00036|connmgr|INFO|br-eth: added service controller "punix:/var/run/openvswitch/br-eth.mgmt"
Reproduce step:
1. sh reproduce.sh
2. sh del_br.sh
Reproduce scripts:
1. reproduce.sh:
#!/bin/sh
outer_loop=1
test ()
{
echo "=====start $outer_loop time test===="
brctl addbr br0;ifconfig br0 up
inner_loop=1
while [ $inner_loop -le 10 ]
do
echo "======start $inner_loop time vm life====="
echo `date`
virsh create /vm.xml
sleep 30
virsh destroy test-ovs
let inner_loop++
done
ifconfig br0 down; brctl delbr br0
ovs-vsctl add-br br0
ovs-vsctl del-br br0
}
while [ $outer_loop -le 100 ]
do
test
let outer_loop++
done
2. del_br.sh
#!/bin/sh
count=1
test ()
{
echo "=====start $count time test===="
echo `date`
sleep 10
ifconfig br0 down; brctl delbr br0
}
while [ $count -le 100 ]
do
test
let count++
done
FYI, more information, please refer to “Failed to add ovs bridge” in ovs-discuss mail list.
More information about the dev
mailing list