[ovs-discuss] Failing ovs tests on big-endian system

Mijo Safradin mijo at linux.vnet.ibm.com
Thu Dec 4 11:23:31 UTC 2014


>
> I posted a patch that should resolve this, any chance you could try it out?
>
> Here: http://openvswitch.org/pipermail/dev/2014-December/049420.html
>
> Thanks,
>
>  Jarno
>
>

Hi Jarno,

I've applied the patch, and the test does pass now.

testlog:
---
[root at ppc64 ovs-test]# make check TESTSUITEFLAGS='-v 79'
make  check-recursive
make[1]: Entering directory `/root/ovs-test'
Making check in datapath
make[2]: Entering directory `/root/ovs-test/datapath'
make[3]: Entering directory `/root/ovs-test/datapath'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/ovs-test/datapath'
make[2]: Leaving directory `/root/ovs-test/datapath'
make[2]: Entering directory `/root/ovs-test'
make[3]: Entering directory `/root/ovs-test/datapath'
make[3]: `distfiles' is up to date.
make[3]: Leaving directory `/root/ovs-test/datapath'
make  tests/flowgen.pl tests/testpki-cacert.pem tests/testpki-cert.pem 
tests/testpki-privkey.pem tests/testpki-req.pem tests/testpki-cert2.pem 
tests/testpki-privkey2.pem tests/testpki-req2.pem
make[3]: Entering directory `/root/ovs-test'
make[3]: Nothing to be done for `tests/flowgen.pl'.
make[3]: `tests/testpki-cacert.pem' is up to date.
make[3]: `tests/testpki-cert.pem' is up to date.
make[3]: `tests/testpki-privkey.pem' is up to date.
make[3]: `tests/testpki-req.pem' is up to date.
make[3]: `tests/testpki-cert2.pem' is up to date.
make[3]: `tests/testpki-privkey2.pem' is up to date.
make[3]: `tests/testpki-req2.pem' is up to date.
make[3]: Leaving directory `/root/ovs-test'
make  check-local
make[3]: Entering directory `/root/ovs-test'
/bin/sh './tests/testsuite' -C tests 
AUTOTEST_PATH=utilities:vswitchd:ovsdb:vtep:tests -v 79
## ------------------------------ ##
## openvswitch 2.3.90 test suite. ##
## ------------------------------ ##
79. classifier.at:27: testing flow classifier - lookup segmentation ...
./classifier.at:28: ovsdb-tool create conf.db 
$abs_top_srcdir/vswitchd/vswitch.ovsschema
./classifier.at:28: ovsdb-server --detach --no-chdir --pidfile --log-file 
--remote=punix:$OVS_RUNDIR/db.sock
stderr:
2014-12-04T10:19:29Z|00001|vlog|INFO|opened log file 
/root/ovs-test/tests/testsuite.dir/0079/ovsdb-server.log
./classifier.at:28: sed < stderr '
/vlog|INFO|opened log file/d
/ovsdb_server|INFO|ovsdb-server (Open vSwitch)/d'
./classifier.at:28: ovs-vsctl --no-wait init
./classifier.at:28: ovs-vswitchd --detach --no-chdir --pidfile 
--enable-dummy --disable-system --log-file -vvconn -vofproto_dpif
stderr:
2014-12-04T10:19:29Z|00001|vlog|INFO|opened log file 
/root/ovs-test/tests/testsuite.dir/0079/ovs-vswitchd.log
2014-12-04T10:19:29Z|00002|ovs_numa|INFO|Discovered 16 CPU cores on NUMA 
node 0
2014-12-04T10:19:29Z|00003|ovs_numa|INFO|Discovered 1 NUMA nodes and 16 
CPU cores
2014-12-04T10:19:29Z|00004|reconnect|INFO|unix:/root/ovs-test/tests/testsuite.dir/0079/db.sock: 
connecting...
2014-12-04T10:19:29Z|00005|reconnect|INFO|unix:/root/ovs-test/tests/testsuite.dir/0079/db.sock: 
connected
./classifier.at:28: sed < stderr '
/ovs_numa|INFO|Discovered /d
/vlog|INFO|opened log file/d
/vswitchd|INFO|ovs-vswitchd (Open vSwitch)/d
/reconnect|INFO|/d
/ofproto|INFO|using datapath ID/d
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
./classifier.at:28: ovs-vsctl -- add-br br0 -- set bridge br0 
datapath-type=dummy other-config:datapath-id=fedcba9876543210 
other-config:hwaddr=aa:55:aa:55:00:00 
protocols=[OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14,OpenFlow15] 
fail-mode=secure --
./classifier.at:40: ovs-ofctl add-flows br0 flows.txt
./classifier.at:41: ovs-appctl ofproto/trace br0 
'in_port=2,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80'
stdout:
Bridge: br0
Flow: 
tcp,in_port=2,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0

Rule: table=0 cookie=0 priority=16,tcp,in_port=2,nw_dst=192.168.0.0/16
OpenFlow actions=output:1

Final flow: 
tcp,in_port=2,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0
Megaflow: recirc_id=0,tcp,in_port=2,nw_dst=192.168.0.0/16,nw_frag=no
Datapath actions: 1
./classifier.at:42: tail -2 stdout
./classifier.at:46: ovs-appctl ofproto/trace br0 
'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=11.1.2.15,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80'
stdout:
Bridge: br0
Flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=11.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0

Rule: table=0 cookie=0 priority=0,ip,in_port=1
OpenFlow actions=drop

Final flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=11.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0
Megaflow: recirc_id=0,ip,in_port=1,nw_dst=1.0.0.0/1.0.0.0,nw_frag=no
Datapath actions: drop
./classifier.at:47: tail -2 stdout
./classifier.at:51: ovs-appctl ofproto/trace br0 
'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80'
stdout:
Bridge: br0
Flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0

Rule: table=0 cookie=0 
priority=33,tcp,in_port=1,nw_dst=10.1.2.15,tp_dst=80
OpenFlow actions=drop

Final flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=0
Megaflow: recirc_id=0,tcp,in_port=1,nw_dst=10.1.2.15,nw_frag=no,tp_dst=80
Datapath actions: drop
./classifier.at:52: tail -2 stdout
./classifier.at:56: ovs-appctl ofproto/trace br0 
'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=79'
stdout:
Bridge: br0
Flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=79,tcp_flags=0

Rule: table=0 cookie=0 priority=32,tcp,in_port=1,nw_dst=10.1.2.15
OpenFlow actions=output:2

Final flow: 
tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=10.1.2.15,nw_tos=0,nw_ecn=0,nw_ttl=128,tp_src=8,tp_dst=79,tcp_flags=0
Megaflow: 
recirc_id=0,tcp,in_port=1,nw_dst=10.1.2.15,nw_frag=no,tp_dst=0x1/0x1
Datapath actions: 2
./classifier.at:57: tail -2 stdout
./classifier.at:61: check_logs
./classifier.at:61: ovs-appctl -t ovs-vswitchd exit
./classifier.at:61: ovs-appctl -t ovsdb-server exit
cat: ovsdb-server.pid: No such file or directory
cat: ovs-vswitchd.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or 
kill -l [sigspec]
79. classifier.at:27:  ok

## ------------- ##
## Test results. ##
## ------------- ##

1 test was successful.
make[3]: Leaving directory `/root/ovs-test'
make[2]: Leaving directory `/root/ovs-test'
make[1]: Leaving directory `/root/ovs-test'
---


Thanks,
Mijo




More information about the discuss mailing list