[ovs-discuss] OFTest failure

sonny sonny sonny085 at gmail.com
Thu May 3 09:33:45 UTC 2012


Hi,



I am  running OFTest on software switch ( OVS) ( OFTest running on
localhost)



I have downloaded OFtest from "git://openflow.org/oftest"

br0 is created and linked with physical interface of switch, ip of br0 is
10.0.1.1 .OVS is in listening mode by using following command:- ovs-vsctl
set-controller br0 tcp:127.0.0.1:6633



I have created 4 veth pairs on same machine by using following commands:-



ip link add type veth

ifconfig veth0 10.0.1.101/22 up

route add -host 10.0.1.102 dev veth0

ifconfig veth1 10.0.1.102/22 up

ifconfig lo up



now repeated above for next 3 veth pairs



I have added ports veth1,veth3,veth5,veth7 to br0 by using following
command:-

 ovs-vsctl add-port br0 veth1

ovs-vsctl add-port br0 veth3

ovs-vsctl add-port br0 veth5

 ovs-vsctl add-port br0 veth7



[root at localhost openvswitch-1.2.2]# ovs-vsctl show

88cb2707-16da-4c07-982b-f099a5624de6

    Bridge "br0"

        Controller "tcp:127.0.0.1"

        fail_mode: secure

        Port "em1"

            Interface "em1"

        Port "veth7"

            Interface "veth7"

        Port "veth5"

            Interface "veth5"

        Port "veth3"

            Interface "veth3"

        Port "veth1"

            Interface "veth1"

        Port "br0"

            Interface "br0"

                type: internal



 [root at localhost openvswitch-1.2.2]# ovs-dpctl show

system at br0:

                lookups: frags:0, hit:11, missed:154, lost:0

                port 0: br0 (internal)

                port 1: em1

                port 2: veth1

                port 3: veth3

                port 4: veth5

                port 5: veth7



After above all steps,when I am running OFT by following command, it is a
failure



./oft --host=127.0.0.1 --port=6633 --verbose --test-spec=PacketIn

WARNING: No route found for IPv6 destination :: (no default route?)

runTest (basic.PacketIn) ... FAIL



======================================================================

FAIL: runTest (basic.PacketIn)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/root/oftest/tests/basic.py", line 226, in runTest

    ' for port ' + str(of_port))

AssertionError: Response packet does not match send packet for port 1



----------------------------------------------------------------------

Ran 1 test in 5.073s



FAILED (failures=1)



 [root at localhost tests]# ./oft --host=127.0.0.1 --port=6633 --verbose
--test-spec=PacketIn --base-of-port=2

WARNING: No route found for IPv6 destination :: (no default route?)

runTest (basic.PacketIn) ... FAIL



======================================================================

FAIL: runTest (basic.PacketIn)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/root/oftest/tests/basic.py", line 226, in runTest

    ' for port ' + str(of_port))

AssertionError: Response packet does not match send packet for port 2



----------------------------------------------------------------------

Ran 1 test in 7.480s



FAILED (failures=1)





Please suggest where I am wrong?

Along with that please confirm is remote.py used for “hardware” switches
only? Please confirm the format for local.py configuration for port
mapping, if need.





         - Sonny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120503/b338f242/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.log
Type: application/octet-stream
Size: 8707 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120503/b338f242/attachment-0002.obj>


More information about the discuss mailing list