Code Monkey home page Code Monkey logo

oftest's Introduction

Floodlight OpenFlow Controller (OSS)

Attention!

As of August 2018, the Floodlight mailing list has moved to [email protected]! Archives and the new group home page can be found here. Please see Documentation and Support below for up-to-date support information.

Build Status

Build Status

What is Floodlight?

Floodlight is the leading open source OpenFlow controller. It is supported by a community of developers, including a number of engineers from Big Switch Networks.

What is OpenFlow?

OpenFlow is a open standard managed by Open Networking Foundation. It specifies a protocol by which a remote controller can modify the behavior of networking devices through a well-defined “forwarding instruction set”. Floodlight is designed to work with the growing number of switches, routers, virtual switches, and access points that support the OpenFlow standard.

Getting Started

The quickest way to use Floodlight is to start with our pre-built VM, which includes the controller, IDE, and everything you need to use Floodlight and/or start developing. You can also deploy and develop with Floodlight in your own environment.

If you are a developer and are looking for project ideas, please take a look at our current issues. They are a great way to get started developing with Floodlight and provide a concrete way in which to give back!

Documentation and Support

Ready to get started using Floodlight? The Floodlight wiki contains user and developer documentation, as well as helpful tutorials from beginner to advanced.

Do you have a question, comment, or a great idea you'd like to propose to the community? Please subscribe and send to our mailing list [email protected]. Archives and additional content can be found on the group homepage.

Contribution

Floodlight is supported by contributions from developers like yourself. If you found and fixed something that needed attention or have added a feature, please consider giving back by opening a pull request. We value each and every contribution, no matter how large or how small.

If you have found a bug or have a feature request, please send a note to [email protected] and open a issue to track it. If you are able to give back by addressing the issue yourself, please read the above and thank you! If you are unable to contribute a solution, following these simple steps will allow someone the opportunity to do so.

Interested in contributing but don't know where to start? Check out and consider addressing any of our current issues.

Authors and Contributors

Thank you to all who have contributed to Floodlight! Please reach out if we have missed you, so that you can be added to this growing list.

oftest's People

Contributors

archerhungbsn avatar blp avatar cdickmann avatar dtalayco avatar gregor-bsn avatar grg avatar harishraghavendra avatar harshsin avatar jnealtowns avatar jonstout avatar poolakiran avatar rlane avatar shudongz avatar stephenfin avatar sumithdev09 avatar tony-vanderpeet avatar yabetatsuya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oftest's Issues

groups.GroupAddSelectNoWeight test is wrong

The groups.GroupAddSelectNoWeight test checks that a bucket with weight 0 in a select group yields an error, but:

  • OF1.2 doesn't actually say that.

  • OF1.3 defines a zero weight to mean that the switch should not use the bucket (not as an error).

I suggest deleting this test.

TestCases to send packets to the switch are failing

I have created a simple mininet topology (1 controller, 1 switch and 2 host) and ran the topology.

Then after I ran the oftest suite by following all the steps as mentioned in the doc
TestCases that use SimpleProtocol Class i.e. all those dealing with communication between controller and switch are passing,
while the TestCases using SimpleDataPlane Class( i.e. to send packets to the switch and among different interfaces) are failing.
E.g. Classes like PacketIn, PacketOut of basic.py file are failing at verify_packet() function check.

Can you please tell if there are any more prerequisites for running oftest suite
Do we need to make any changes in the configuration files ?

run_switch.py (file used for creating interfaces) that we run before running the oftest creates interfaces on different networks. We even tried putting the interfaces in the same network. But it even didn't help.

Thanks

OF1.0 Make tests with ethertype 0x8922 optional

Linux kernel as well as some ASICs reject 0x8922. IMHO these tests should be optional:

  • DirectVlanPackets: testPacket with 0x8922 eth_type values

(attached patch is not suggesting the deletion of such tests; it is only attached for the sake of easy location of the tests.

diff --git a/tests/pktact.py b/tests/pktact.py
index cceb13e..ed90aff 100644
--- a/tests/pktact.py
+++ b/tests/pktact.py
@@ -2649,16 +2649,6 @@ class DirectVlanPackets(DirectBadPacketBase):
             scapy.Ether(dst=eth_dst, src=eth_src, type=0x800) / scapy.IP(),
             self.RESULT_MATCH
         )
-        testPacket("Basic MAC matching - VMware beacon - no payload",
-            self.createMatch(eth_dst=parse_mac(eth_dst), eth_src=parse_mac(eth_src)),
-            scapy.Ether(dst=eth_dst, src=eth_src, type=0x8922),
-            self.RESULT_MATCH
-        )
-        testPacket("Basic MAC matching - VMware beacon - with payload",
-            self.createMatch(eth_dst=parse_mac(eth_dst), eth_src=parse_mac(eth_src)),
-            scapy.Ether(dst=eth_dst, src=eth_src, type=0x8922)/ ("X" * 1),
-            self.RESULT_MATCH
-        )
         testPacket("Basic MAC matching - IPv6 payload",
             self.createMatch(eth_dst=parse_mac(eth_dst), eth_src=parse_mac(eth_src)),
             scapy.Ether(dst=eth_dst, src=eth_src) / scapy.IPv6(),

DELETE_ALL flowmods should use 0xffffffffffffffff as cookie_value

Since some tests use random value cookies on some flowmods, delete_all should use 0xffffffffffffffff as cookie value.

Attached patch:

diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py
index 5b2e365..5606870 100644
--- a/src/python/oftest/testutils.py
+++ b/src/python/oftest/testutils.py
@@ -43,6 +43,8 @@ def delete_all_flows(ctrl, send_barrier=True):
         msg.buffer_id = ofp.OFP_NO_BUFFER
         msg.out_port = ofp.OFPP_ANY
         msg.out_group = ofp.OFPG_ANY
+    #Make sure cookie is set to ALL
+    msg.cookie = 0xffffffffffffffff
     ctrl.message_send(msg)
     if send_barrier:
         do_barrier(ctrl)

Floodlight throwing error on using openflow 1.4 with OVS switch 2.8.0

I am using floodlight as a controller for my OVS. All works well if I configure floodlight to use Openflow 1.3 by removing 1.4 and 1.5 versions from file floodlight/src/main/resources/floodlightdefault.properties.

However, If I enable openflow 1.4 then I start getting errors on my floodlight home page. Although the openflow APIs towards OVS still work fine and OVS works as expected.
Please let me know how to remove the home page errors.

image

how could I achieve the interaction between JavaScript and oftest?

In Linux system,I want to use the platform developed by javascript language to show the web Interface of oftest framework, which is required to run through the test cases one by one。 how could I achieve the interaction between JavaScript and oftest?Wish someone could help,thank u very much!

Invalid packet-in generates confusing message

When running the basic.PacketIn test in relax mode, if we get a packet-in with data that doesn't correspond to the expected, the test fails with:

AssertionError: Packet in message not received on port 1

When it should be more like:

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

This is happening because we have a packet-in, but it's not valid, so it's being ignored (relax mode). If there isn't another (valid) packet-in, the first message shows up.

I know it's technically not a wrong behavior, but a clearer message or warning such as "Received packet in message with unexpected data" could be helpful (I lost some time debugging what was going on :D).

Unable to run basic test

Hi All,

I am new to oftest framework and trying to understand basic using setup guide. As per instructions, I am running an OVS switch on my pc where I am trying to test the ovs switch. I can see that switch is trying to connect to controller and seeing a timed out message.

After starting the switch using sudo ./run_switch.py
I am using sudo ./oft basic -i 1@eth1 -i 2@eth3
But, result shows that all tests are failed.

Can some one help me with above?

Many Thanks,

Basavaraj

cxn and bsn_mirror ERROR issue

ERROR: runTest (cxn.HandshakeNoFeaturesRequest)

Traceback (most recent call last):
File "/home/openflow/oftest/tests/cxn.py", line 91, in runTest
self.controllers[0].message_send(ofp.message.hello())
File "/home/openflow/oftest/src/python/oftest/controller.py", line 666, in message_send
raise Exception("no socket")
Exception: no socket

ERROR: runTest (bsn_mirror.BSNMirrorAction)

Traceback (most recent call last):
File "/home/openflow/oftest/tests/bsn_mirror.py", line 41, in runTest
ports = [p for p in config["port_map"].keys() if p not in mirror_ports]
TypeError: argument of type 'NoneType' is not iterable

pypcap Installation

Firstly, we've just begun using OFTest as part of this project. I must compliment ye on a job well done - it's definitely a quite nifty tool.

Now onto business. The one major difficulty we've had with OFTeste has been getting pypcap setup. We use a number of non-Debian distros so the package isn't available in the repos, and installation from source is a nightmare. There's load of issues, ranging from it not finding libpcap when it is installed to some weird build routines and myriad other documented issues). This is a pypcap issue moreso than a OFTest one but seeing as pypcap appears to be a dead project it seems like something ye can't rely on.

As a feature request, could I ask that ye carry out one of the following?

  • Fork pypcap, update if necessary and provide instructions on how to run it
  • Move pypcap into the OFTest mainline (reducing requirements)
  • Provide instructions on setting it up from source (these instructions do not appear to exist elsewhere)

I don't like filing issues without providing at least some code but I'm not sure which of the following is an option yet (and we've still to get pypcap running so I can't contribute here yet).

Support for OF1.2 or OF1.3

I did not see any documentation to see if OFTest supports testing OF1.2 or 1.3 based OpenFlow Switches. If I missed anything, can you please point me to the right place? Thanks

tests-1.3 - groups.GroupDescStats compares non-existent field 'type'

The test GroupDescStats currently compares a non-existent field 'type' in the stats response

The correct field to test is 'group_type':

diff --git tests-1.3/groups.py tests-1.3/groups.py
index 1a2903d..e1cece4 100644
--- tests-1.3/groups.py
+++ tests-1.3/groups.py
@@ -636,15 +636,15 @@ class GroupDescStats(GroupTest):
         self.assertEquals(len(stats), 3)

         self.assertEquals(stats[0].group_id, msg0.group_id)
-        self.assertEquals(stats[0].type, msg0.group_type)
+        self.assertEquals(stats[0].group_type, msg0.group_type)
         self.assertEquals(stats[0].buckets, msg0.buckets)

         self.assertEquals(stats[1].group_id, msg1.group_id)
-        self.assertEquals(stats[1].type, msg1.group_type)
+        self.assertEquals(stats[1].group_type, msg1.group_type)
         self.assertEquals(stats[1].buckets, msg1.buckets)

         self.assertEquals(stats[2].group_id, msg2.group_id)
-        self.assertEquals(stats[2].type, msg2.group_type)
+        self.assertEquals(stats[2].group_type, msg2.group_type)
         self.assertEquals(stats[2].buckets, msg2.buckets)

Oftest-1.4 Error: Need Help

Currently working on oftest/test-1.4 test cases ; but i'm getting below error Please help me out understand the issue.
Also how do i can new testcase to 1.4 spec please help me out like what all the changes i need to do to add new test case

root@sdnhubvm:/home/ubuntu/oftest# ovs-vsctl show
873c293e-912d-4067-82ad-d1116d2ad39f
ovs_version: "2.3.90"
root@sdnhubvm:/home/ubuntu/oftest#

FAIL: bundle.Barrier

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 227, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd3146a63d0> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>

FAIL: bundle.Commit

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 25, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd31460a050> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>

FAIL: bundle.Discard

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 64, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd31460a050> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>

FAIL: bundle.Disconnect

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 102, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd31460a050> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>

FAIL: bundle.TooManyBytes

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 175, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd31460a050> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>

FAIL: bundle.TooManyMsgs

Traceback (most recent call last):
File "/home/ubuntu/oftest/tests-1.4/bundle.py", line 127, in runTest
self.assertIsInstance(response, ofp.message.bundle_ctrl_msg)
AssertionError: <loxi.of14.message.bad_request_error_msg object at 0x7fd31460a050> is not an instance of <class 'loxi.of14.message.bundle_ctrl_msg'>


Ran 6 tests in 5.951s

FAILED (failures=6)
root@sdnhubvm:/home/ubuntu/oftest#

question about execution on the group testcases

Hi all
When I want to choose some cases from multiple testcases directory ,what should I add before the the case subclass ,then the framwork will run the flag cases.

example about my case:
class ceth_ping_test(base_tests.BaseTest):
"""
Type:TEST_CASE
Test ceth ping function
Simply verify by output of ping
"""
def runTest(self):
logging.info("Running " + str(self))
case_name = self.class.name

    response_ping = ping_func()

    vm_check_flag = check_vm_crash_function()
    if vm_check_flag != 0 and vm_check_flag != 4 :
       crash_flag = vm_crash_info_aggregation(case_name,vm_check_flag,phy_node_dir='/usr/vm_crash')
       self.assertEqual(crash_flag,0, "[ERROR]VM crash.VM_crash clollection failed.")
       mesg_recovery = vm_recovery()
       self.assertEqual(mesg_recovery,0, "[ERROR]VM crash.VM recovery failed.")

    self.assertEqual(vm_check_flag, 4, "[ERROR]VM crash. VM crash info is in the dir /usr/vm_crash/%s" %(case_name))

    self.assertEqual(response_ping, "1", "[ERROR]The ping Operation from the SRC node to the DST node!")

also whether there will be another could solve the problem I could get the some cases as my sanity cases?I have found the involved code lines as following:
file/testutils.py:
def nonstandard(cls):
"""
Testcase decorator that marks the test as being non-standard.
These tests are not automatically added to the "standard" group.
"""
cls._nonstandard = True
return cls

def disabled(cls):
"""
Testcase decorator that marks the test as being disabled.
These tests are not automatically added to the "standard" group or
their module's group.
"""
cls._disabled = True
return cls

def group(name):
"""
Testcase decorator that adds the test to a group.
"""
def fn(cls):
if not hasattr(cls, "_groups"):
cls._groups = []
cls._groups.append(name)
return cls
return fn

in the oft function load_test_module:
if tests:
for (testname, test) in tests.items():
# Set default annotation values
if not hasattr(test, "_groups"):
test._groups = []
if not hasattr(test, "_nonstandard"):
test._nonstandard = False
if not hasattr(test, "_disabled"):
test._disabled = False

                # Put test in its module's test group
                if not test._disabled:
                    test._groups.append(modname)

                # Put test in the standard test group
                if not test._disabled and not test._nonstandard:
                    test._groups.append("standard")
                    test._groups.append("all") # backwards compatibility

            result[modname] = (mod, tests)

Thanks
Yiting.Li

Running OFTest on a different board

Has anyone run OFTest against physical NICs rather than vEth devices? At the moment I'm thinking I could put two boards back-to-back with a NIC in each, run OFTest of the first and run the vSwitch on the second. This requires a second board though. There's surely another way to test such a setup?

Need test case to exercise many field rewrite actions

Some platforms may have limits in the number of field rewrite operations due to internal implementations. This test should generate a number of flows all with different field rewrite actions. The test should verify the flows are active by sending packets that match the flows and checking that the rewrite occurs.

Starting with the destination L2 address would be a good start.

Add Windows Support

Feature request: Add Windows Support.

Virtual switches exist for Windows, such as this Open vSwitch port. It should be possible to test these using OFTest on the same platform. This is not currently possible due to Linux dependencies, such as fcntl. These need to be replaced to extend support for OFTest.

tests-1.0 - several tests create an invalid match when here is no VLAN by using packet_to_flow_match_v1

Several 1.0 tests (flow_expire.FlowExpire, flow_stats.AggregateFlowStats and flow_stats.SingleFlowStats) create a match from a packet, and then compare that match to the stats request received.

The packet match created when there is no VLAN is vlan VID = OFP_VLAN_NONE and PCP=0, however according to errata 1.0.1 this is an illegal match:
_"The dl_vlan_pcp field must be ignored when the OFPFW_DL_VLAN wildcard bit is set or when the dl_vlan value is set to OFP_VLAN_NONE."_

Propose to change the match created from packet when there is no VLAN in the following manner:

    diff --git src/python/oftest/parse.py src/python/oftest/parse.py
    index 0d57443..f3edea2 100644
    --- src/python/oftest/parse.py
    +++ src/python/oftest/parse.py
    @@ -123,11 +123,10 @@ def packet_to_flow_match_v1(packet):
             match.vlan_vid = dot1q.vlan
             match.vlan_pcp = dot1q.prio
             match.eth_type = dot1q.type
    +       match.wildcards &= ~ofp.OFPFW_DL_VLAN_PCP
         else:
             match.vlan_vid = ofp.OFP_VLAN_NONE
    -        match.vlan_pcp = 0
         match.wildcards &= ~ofp.OFPFW_DL_VLAN
    -    match.wildcards &= ~ofp.OFPFW_DL_VLAN_PCP

OF1.0 flow_matches.WildcardMatchPrio; exact matches should have higher priority than wildcarded

According to spec (v1.0):

"... An entry that specifies an exact match (i.e., it has no wildcards) is always the highest priority. "

Test therefore IMHO wrong. Attached patch.

diff --git a/tests/flow_matches.py b/tests/flow_matches.py
index 141ac0c..dcf067f 100644
--- a/tests/flow_matches.py
+++ b/tests/flow_matches.py
@@ -877,7 +877,7 @@ class WildcardMatchPrio(base_tests.SimpleDataPlane):
         logging.info("Verifying matching packets implements the action specified in the flow with higher priority")

         (pkt,match) = wildcard_all(self,of_ports,priority=20) 
-        (pkt1,match1) =  wildcard_all_except_ingress1(self,of_ports,priority=10)  
+        (pkt1,match1) =  wildcard_all(self,of_ports,priority=10)  

         #Sending packet matching both the flows , verify it implements the action specified by Higher Priority flow
         self.dataplane.send(of_ports[0], str(pkt1))

How do I create Auxiliary Connection in OFtest

Hi,

I am using OFtest-master for testing Openflow 1.3 .

Openflow 1.3 Specifies about Auxiliary Connections, How will I be able to create an auxiliary connection in oftest.
And How do I check if there is a single connection intially(by default).
Can I get a help in knowing how to solve the above queries.

Thanks,
Asha

Oftest-1.0.0 gives controller start up failed(no switch addr)

Hi,

I have downloaded OF Test (oftest-1.0.1) that I found at this site " https://www.opennetworking.org/openflow-conformance-certification " and I have installed it in Ubuntu 14.04 version to test it with a physical switch.

I have followed the guideline prescribed in "Readme" of OFTest .

I have OFTest controller running in my system(ip=192.168.1.21 ) and I have connected the controller's eth0 to the switch(ip=192.168.1.12) at port 1 , there are 4 dataplane connections i.e, 12 -> eth1 , 13 -> eth2 , 14 -> eth3, 15 -> eth4 that are connected using NIC card.

Before running the controller(OFTest) i have made sure that switch is listening at port 6633.

But when i run this command

sudo ./oft --test-spec=Echo

I get following result

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ERROR

ERROR: runTest (basic.Echo)


Traceback (most recent call last):

File "/home/user/oftest-1.0.0/src/python/oftest/base_tests.py", line 47, in setUp

raise Exception("Controller startup failed (no switch addr)")

Exception: Controller startup failed (no switch addr)


Ran 1 test in 20.002s

FAILED (errors=1)

and sometimes it works fine

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ok


Ran 1 test in 5.241s

OK

Most of the time it gives controller start up failed.

I have tried with different options

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo --port=6633

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ERROR

ERROR: runTest (basic.Echo)


Traceback (most recent call last):

File "/home/user/oftest-1.0.0/src/python/oftest/base_tests.py", line 47, in setUp

raise Exception("Controller startup failed (no switch addr)")

Exception: Controller startup failed (no switch addr)


Ran 1 test in 20.002s

FAILED (errors=1)

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo -H 192.168.1.21

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ok


Ran 1 test in 10.199s

OK

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo -H 192.168.1.21

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ERROR

ERROR: runTest (basic.Echo)


Traceback (most recent call last):

File "/home/user/oftest-1.0.0/src/python/oftest/base_tests.py", line 47, in setUp

raise Exception("Controller startup failed (no switch addr)")

Exception: Controller startup failed (no switch addr)


Ran 1 test in 20.002s

FAILED (errors=1)

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo -H 192.168.1.21 --port=6633

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ERROR

ERROR: runTest (basic.Echo)


Traceback (most recent call last):

File "/home/user/oftest-1.0.0/src/python/oftest/base_tests.py", line 47, in setUp

raise Exception("Controller startup failed (no switch addr)")

Exception: Controller startup failed (no switch addr)


Ran 1 test in 20.002s

FAILED (errors=1)

root@user-OptiPlex-7010:/home/user/oftest-1.0.0# ./oft --test-spec=Echo -H 192.168.1.21 --port=6633 --platform=remote (tried with –platform=local also)

WARNING: No route found for IPv6 destination :: (no default route?) runTest (basic.Echo) ... ERROR

ERROR: runTest (basic.Echo)


Traceback (most recent call last):

File "/home/user/oftest-1.0.0/src/python/oftest/base_tests.py", line 47, in setUp

raise Exception("Controller startup failed (no switch addr)")

Exception: Controller startup failed (no switch addr)


Ran 1 test in 20.002s

FAILED (errors=1)

Log file contains the following contents

11:31:57 root : INFO : ++++++++ Wed Mar 25 11:31:57 2015 ++++++++
11:31:57 root : INFO : Importing platform: local
11:31:57 root : INFO : OF port map: {1: 'veth1', 2: 'veth3', 3: 'veth5', 4: 'veth7'}
11:31:57 root : INFO : Importing profile: default
11:32:58 root : INFO : ++++++++ Wed Mar 25 11:32:58 2015 ++++++++
11:32:58 root : INFO : Importing platform: local
11:32:58 root : INFO : OF port map: {1: 'veth1', 2: 'veth3', 3: 'veth5', 4: 'veth7'}
11:32:58 root : INFO : Importing profile: default
11:32:58 root : INFO : Adding test basic.Echo
11:32:58 root : INFO : *** TEST RUN START: Wed Mar 25 11:32:58 2015
11:32:58 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:32:58 controller: INFO : Create/listen at 0.0.0.0:6633
11:32:58 controller: INFO : Waiting for switch connection
11:33:01 controller: INFO : Incoming connection from ('192.168.1.12', 61624)
11:33:01 root : INFO : Connected ('192.168.1.12', 61624)
11:33:01 root : INFO : Supported actions: 0x7f7
11:33:01 root : INFO : ** END TEST CASE runTest (basic.Echo)
11:33:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7fcecf012280>
11:33:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7fcecf0122f0>
11:33:01 controller: INFO : Exiting controller thread
11:33:01 controller: INFO : Ignoring switch soc shutdown error
11:33:01 controller: INFO : Ignoring listen soc shutdown error
11:33:01 root : INFO : *** TEST RUN END : Wed Mar 25 11:33:01 2015
11:33:31 root : INFO : ++++++++ Wed Mar 25 11:33:31 2015 ++++++++
11:33:31 root : INFO : Importing platform: local
11:33:31 root : INFO : OF port map: {1: 'veth1', 2: 'veth3', 3: 'veth5', 4: 'veth7'}
11:33:31 root : INFO : Importing profile: default
11:33:31 root : INFO : Adding test basic.Echo
11:33:31 root : INFO : *** TEST RUN START: Wed Mar 25 11:33:31 2015
11:33:31 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:33:31 controller: INFO : Create/listen at 0.0.0.0:6633
11:33:31 controller: INFO : Waiting for switch connection
11:33:51 controller: INFO : Ignoring switch soc shutdown error
11:33:51 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f4446e79280>
11:33:51 controller: INFO : Exiting controller thread
11:33:51 controller: INFO : Ignoring switch soc shutdown error
11:33:51 controller: INFO : Ignoring listen soc shutdown error
11:33:51 root : INFO : *** TEST RUN END : Wed Mar 25 11:33:51 2015
11:35:12 root : INFO : ++++++++ Wed Mar 25 11:35:12 2015 ++++++++
11:35:12 root : INFO : Importing platform: local
11:35:12 root : INFO : OF port map: {1: 'veth1', 2: 'veth3', 3: 'veth5', 4: 'veth7'}
11:35:12 root : INFO : Importing profile: default
11:35:12 root : INFO : Adding test basic.Echo
11:35:12 root : INFO : *** TEST RUN START: Wed Mar 25 11:35:12 2015
11:35:12 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:35:12 controller: INFO : Create/listen at 0.0.0.0:6633
11:35:12 controller: INFO : Waiting for switch connection
11:35:32 controller: INFO : Ignoring switch soc shutdown error
11:35:32 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f7f5b516280>
11:35:32 controller: INFO : Exiting controller thread
11:35:32 controller: INFO : Ignoring switch soc shutdown error
11:35:32 controller: INFO : Ignoring listen soc shutdown error
11:35:32 root : INFO : *** TEST RUN END : Wed Mar 25 11:35:32 2015
11:36:49 root : INFO : ++++++++ Wed Mar 25 11:36:49 2015 ++++++++
11:36:49 root : INFO : Importing platform: local
11:36:49 root : INFO : OF port map: {1: 'veth1', 2: 'veth3', 3: 'veth5', 4: 'veth7'}
11:36:49 root : INFO : Importing profile: default
11:36:49 root : INFO : Adding test basic.Echo
11:36:49 root : INFO : *** TEST RUN START: Wed Mar 25 11:36:49 2015
11:36:49 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:36:49 controller: INFO : Create/listen at 192.168.1.21:6633
11:36:49 controller: INFO : Waiting for switch connection
11:37:01 controller: INFO : Incoming connection from ('192.168.1.12', 51114)
11:37:01 root : INFO : Connected ('192.168.1.12', 51114)
11:37:01 root : INFO : Supported actions: 0x7f7
11:37:01 root : INFO : ** END TEST CASE runTest (basic.Echo)
11:37:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1939766280>
11:37:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f19397662f0>
11:37:01 controller: INFO : Exiting controller thread
11:37:01 controller: INFO : Ignoring switch soc shutdown error
11:37:01 controller: INFO : Ignoring listen soc shutdown error
11:37:01 root : INFO : *** TEST RUN END : Wed Mar 25 11:37:01 2015
11:39:29 root : INFO : ++++++++ Wed Mar 25 11:39:29 2015 ++++++++
11:39:29 root : INFO : Importing platform: remote
11:39:29 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:39:29 root : INFO : Importing profile: default
11:39:29 root : INFO : Adding test basic.Echo
11:39:29 root : INFO : *** TEST RUN START: Wed Mar 25 11:39:29 2015
11:39:29 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:39:29 controller: INFO : Create/listen at 192.168.1.21:6633
11:39:29 controller: INFO : Waiting for switch connection
11:39:49 controller: INFO : Ignoring switch soc shutdown error
11:39:49 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f225926a210>
11:39:49 controller: INFO : Exiting controller thread
11:39:49 controller: INFO : Ignoring switch soc shutdown error
11:39:49 controller: INFO : Ignoring listen soc shutdown error
11:39:49 root : INFO : *** TEST RUN END : Wed Mar 25 11:39:49 2015
11:40:17 root : INFO : ++++++++ Wed Mar 25 11:40:17 2015 ++++++++
11:40:17 root : INFO : Importing platform: remote
11:40:17 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:40:17 root : INFO : Importing profile: default
11:40:17 root : INFO : Adding test basic.Echo
11:40:17 root : INFO : *** TEST RUN START: Wed Mar 25 11:40:17 2015
11:40:17 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:40:17 controller: INFO : Create/listen at 192.168.1.21:6633
11:40:17 controller: INFO : Waiting for switch connection
11:40:37 controller: INFO : Ignoring switch soc shutdown error
11:40:37 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ff6335a5210>
11:40:37 controller: INFO : Exiting controller thread
11:40:37 controller: INFO : Ignoring switch soc shutdown error
11:40:37 controller: INFO : Ignoring listen soc shutdown error
11:40:37 root : INFO : *** TEST RUN END : Wed Mar 25 11:40:37 2015
11:40:46 root : INFO : ++++++++ Wed Mar 25 11:40:46 2015 ++++++++
11:40:46 root : INFO : Importing platform: remote
11:40:46 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:40:46 root : INFO : Importing profile: default
11:40:46 root : INFO : Adding test basic.Echo
11:40:46 root : INFO : *** TEST RUN START: Wed Mar 25 11:40:46 2015
11:40:46 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:40:46 controller: INFO : Create/listen at 192.168.1.21:6633
11:40:46 controller: INFO : Waiting for switch connection
11:41:01 controller: INFO : Incoming connection from ('192.168.1.12', 56095)
11:41:01 root : INFO : Connected ('192.168.1.12', 56095)
11:41:01 root : INFO : Supported actions: 0x7f7
11:41:01 root : INFO : ** END TEST CASE runTest (basic.Echo)
11:41:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f9dedbc3210>
11:41:01 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f9dedbc3280>
11:41:01 controller: INFO : Exiting controller thread
11:41:01 controller: INFO : Ignoring switch soc shutdown error
11:41:01 controller: INFO : Ignoring listen soc shutdown error
11:41:01 root : INFO : *** TEST RUN END : Wed Mar 25 11:41:01 2015
11:41:27 root : INFO : ++++++++ Wed Mar 25 11:41:27 2015 ++++++++
11:41:27 root : INFO : Importing platform: remote
11:41:27 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:41:27 root : INFO : Importing profile: default
11:41:27 root : INFO : Adding test basic.Echo
11:41:27 root : INFO : *** TEST RUN START: Wed Mar 25 11:41:27 2015
11:41:27 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:41:27 controller: INFO : Create/listen at 192.168.1.21:6633
11:41:27 controller: INFO : Waiting for switch connection
11:41:47 controller: INFO : Ignoring switch soc shutdown error
11:41:47 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ff68b223210>
11:41:47 controller: INFO : Exiting controller thread
11:41:47 controller: INFO : Ignoring switch soc shutdown error
11:41:47 controller: INFO : Ignoring listen soc shutdown error
11:41:47 root : INFO : *** TEST RUN END : Wed Mar 25 11:41:47 2015
11:42:14 root : INFO : ++++++++ Wed Mar 25 11:42:14 2015 ++++++++
11:42:14 root : INFO : Importing platform: remote
11:42:14 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:42:14 root : INFO : Importing profile: default
11:42:14 root : INFO : Adding test basic.Echo
11:42:14 root : INFO : *** TEST RUN START: Wed Mar 25 11:42:14 2015
11:42:14 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:42:14 controller: INFO : Create/listen at 192.168.1.21:6633
11:42:14 controller: INFO : Waiting for switch connection
11:42:34 controller: INFO : Ignoring switch soc shutdown error
11:42:34 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7fc0c202f210>
11:42:34 controller: INFO : Exiting controller thread
11:42:34 controller: INFO : Ignoring switch soc shutdown error
11:42:34 controller: INFO : Ignoring listen soc shutdown error
11:42:34 root : INFO : *** TEST RUN END : Wed Mar 25 11:42:34 2015
11:42:36 root : INFO : ++++++++ Wed Mar 25 11:42:36 2015 ++++++++
11:42:36 root : INFO : Importing platform: remote
11:42:36 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:42:36 root : INFO : Importing profile: default
11:42:36 root : INFO : Adding test basic.Echo
11:42:36 root : INFO : *** TEST RUN START: Wed Mar 25 11:42:36 2015
11:42:36 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:42:36 controller: INFO : Create/listen at 192.168.1.21:6633
11:42:36 controller: INFO : Waiting for switch connection
11:42:56 controller: INFO : Ignoring switch soc shutdown error
11:42:56 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f3aa5542210>
11:42:56 controller: INFO : Exiting controller thread
11:42:56 controller: INFO : Ignoring switch soc shutdown error
11:42:56 controller: INFO : Ignoring listen soc shutdown error
11:42:56 root : INFO : *** TEST RUN END : Wed Mar 25 11:42:56 2015
11:43:16 root : INFO : ++++++++ Wed Mar 25 11:43:16 2015 ++++++++
11:43:16 root : INFO : Importing platform: remote
11:43:16 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:43:16 root : INFO : Importing profile: default
11:43:16 root : INFO : Adding test basic.Echo
11:43:16 root : INFO : *** TEST RUN START: Wed Mar 25 11:43:16 2015
11:43:16 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:43:16 controller: INFO : Create/listen at 192.168.1.21:6633
11:43:16 controller: INFO : Waiting for switch connection
11:43:36 controller: INFO : Ignoring switch soc shutdown error
11:43:36 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f2fd12a6210>
11:43:36 controller: INFO : Exiting controller thread
11:43:36 controller: INFO : Ignoring switch soc shutdown error
11:43:36 root : INFO : *** TEST RUN END : Wed Mar 25 11:43:36 2015
11:45:22 root : INFO : ++++++++ Wed Mar 25 11:45:22 2015 ++++++++
11:45:22 root : INFO : Importing platform: remote
11:45:22 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:45:22 root : INFO : Importing profile: default
11:45:22 root : INFO : Adding test basic.Echo
11:45:22 root : INFO : *** TEST RUN START: Wed Mar 25 11:45:22 2015
11:45:22 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:45:22 controller: INFO : Create/listen at 192.168.1.21:6633
11:45:22 controller: INFO : Waiting for switch connection
11:45:42 controller: INFO : Ignoring switch soc shutdown error
11:45:42 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f6c1fbac210>
11:45:42 controller: INFO : Exiting controller thread
11:45:42 controller: INFO : Ignoring switch soc shutdown error
11:45:42 controller: INFO : Ignoring listen soc shutdown error
11:45:42 root : INFO : *** TEST RUN END : Wed Mar 25 11:45:42 2015
11:47:34 root : INFO : ++++++++ Wed Mar 25 11:47:34 2015 ++++++++
11:47:34 root : INFO : Importing platform: remote
11:47:34 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:47:34 root : INFO : Importing profile: default
11:47:34 root : INFO : Adding test basic.Echo
11:47:34 root : INFO : *** TEST RUN START: Wed Mar 25 11:47:34 2015
11:47:34 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:47:34 controller: INFO : Create/listen at 192.168.1.21:6633
11:47:34 controller: INFO : Waiting for switch connection
11:47:54 controller: INFO : Ignoring switch soc shutdown error
11:47:54 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f8af27d2210>
11:47:54 controller: INFO : Exiting controller thread
11:47:54 controller: INFO : Ignoring switch soc shutdown error
11:47:54 controller: INFO : Ignoring listen soc shutdown error
11:47:54 root : INFO : *** TEST RUN END : Wed Mar 25 11:47:54 2015
11:53:29 root : INFO : ++++++++ Wed Mar 25 11:53:29 2015 ++++++++
11:53:29 root : INFO : Importing platform: remote
11:53:29 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:53:29 root : INFO : Importing profile: default
11:53:29 root : INFO : Adding test basic.Echo
11:53:29 root : INFO : *** TEST RUN START: Wed Mar 25 11:53:29 2015
11:53:29 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:53:29 controller: INFO : Create/listen at 192.168.1.21:6633
11:53:49 controller: INFO : Ignoring switch soc shutdown error
11:53:49 controller: INFO : Ignoring listen soc shutdown error
11:53:49 root : INFO : *** TEST RUN END : Wed Mar 25 11:53:49 2015
11:54:10 root : INFO : ++++++++ Wed Mar 25 11:54:10 2015 ++++++++
11:54:10 root : INFO : Importing platform: remote
11:54:10 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:54:10 root : INFO : Importing profile: default
11:54:10 root : INFO : Adding test basic.Echo
11:54:10 root : INFO : *** TEST RUN START: Wed Mar 25 11:54:10 2015
11:54:10 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:54:10 controller: INFO : Create/listen at 192.168.1.21:6633
11:54:10 controller: INFO : Waiting for switch connection
11:54:30 controller: INFO : Ignoring switch soc shutdown error
11:54:30 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f0689bf1210>
11:54:30 controller: INFO : Exiting controller thread
11:54:30 controller: INFO : Ignoring switch soc shutdown error
11:54:30 controller: INFO : Ignoring listen soc shutdown error
11:54:30 root : INFO : *** TEST RUN END : Wed Mar 25 11:54:30 2015
11:56:03 root : INFO : ++++++++ Wed Mar 25 11:56:03 2015 ++++++++
11:56:03 root : INFO : Importing platform: remote
11:56:03 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
11:56:03 root : INFO : Importing profile: default
11:56:03 root : INFO : Adding test basic.Echo
11:56:03 root : INFO : *** TEST RUN START: Wed Mar 25 11:56:03 2015
11:56:03 root : INFO : ** START TEST CASE runTest (basic.Echo)
11:56:03 controller: INFO : Create/listen at 192.168.1.21:6633
11:56:03 controller: INFO : Waiting for switch connection
11:56:23 controller: INFO : Ignoring switch soc shutdown error
11:56:23 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f2c93452210>
11:56:23 controller: INFO : Exiting controller thread
11:56:23 controller: INFO : Ignoring switch soc shutdown error
11:56:23 controller: INFO : Ignoring listen soc shutdown error
11:56:23 root : INFO : *** TEST RUN END : Wed Mar 25 11:56:23 2015
12:02:57 root : INFO : ++++++++ Wed Mar 25 12:02:57 2015 ++++++++
12:02:57 root : INFO : Importing platform: remote
12:02:57 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
12:02:57 root : INFO : Importing profile: default
12:02:57 root : INFO : Adding test basic.Echo
12:02:57 root : INFO : *** TEST RUN START: Wed Mar 25 12:02:57 2015
12:02:57 root : INFO : ** START TEST CASE runTest (basic.Echo)
12:02:57 controller: INFO : Create/listen at 192.168.1.21:6633
12:02:57 controller: INFO : Waiting for switch connection
12:03:17 controller: INFO : Ignoring switch soc shutdown error
12:03:17 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ffb557cd210>
12:03:17 controller: INFO : Exiting controller thread
12:03:17 controller: INFO : Ignoring switch soc shutdown error
12:03:17 controller: INFO : Ignoring listen soc shutdown error
12:03:17 root : INFO : *** TEST RUN END : Wed Mar 25 12:03:17 2015
12:04:45 root : INFO : ++++++++ Wed Mar 25 12:04:45 2015 ++++++++
12:04:45 root : INFO : Importing platform: remote
12:04:45 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
12:04:45 root : INFO : Importing profile: default
12:04:45 root : INFO : Adding test basic.Echo
12:04:45 root : INFO : *** TEST RUN START: Wed Mar 25 12:04:45 2015
12:04:45 root : INFO : ** START TEST CASE runTest (basic.Echo)
12:04:45 controller: INFO : Create/listen at 192.168.1.21:6633
12:04:45 controller: INFO : Waiting for switch connection
12:04:46 controller: INFO : Incoming connection from ('192.168.1.12', 54027)
12:04:46 root : INFO : Connected ('192.168.1.12', 54027)
12:04:46 root : INFO : Supported actions: 0x7f7
12:04:46 root : INFO : ** END TEST CASE runTest (basic.Echo)
12:04:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f7d75202210>
12:04:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f7d75202280>
12:04:46 controller: INFO : Exiting controller thread
12:04:46 controller: INFO : Ignoring switch soc shutdown error
12:04:46 controller: INFO : Ignoring listen soc shutdown error
12:04:46 root : INFO : *** TEST RUN END : Wed Mar 25 12:04:46 2015
12:07:15 root : INFO : ++++++++ Wed Mar 25 12:07:15 2015 ++++++++
12:07:15 root : INFO : Importing platform: remote
12:07:15 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
12:07:15 root : INFO : Importing profile: default
12:07:15 root : INFO : Adding test basic.PacketOut
12:07:15 root : INFO : *** TEST RUN START: Wed Mar 25 12:07:15 2015
12:07:15 root : INFO : ** START TEST CASE runTest (basic.PacketOut)
12:07:15 controller: INFO : Create/listen at 192.168.1.21:6633
12:07:15 controller: INFO : Waiting for switch connection
12:07:35 controller: INFO : Ignoring switch soc shutdown error
12:07:35 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f8f0dd0c210>
12:07:35 controller: INFO : Exiting controller thread
12:07:35 controller: INFO : Ignoring switch soc shutdown error
12:07:35 controller: INFO : Ignoring listen soc shutdown error
12:07:35 root : INFO : *** TEST RUN END : Wed Mar 25 12:07:35 2015
14:42:59 root : INFO : ++++++++ Wed Mar 25 14:42:59 2015 ++++++++
14:42:59 root : INFO : Importing platform: remote
14:42:59 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
14:42:59 root : INFO : Importing profile: default
14:42:59 root : INFO : Adding test basic.Echo
14:42:59 root : INFO : *** TEST RUN START: Wed Mar 25 14:42:59 2015
14:42:59 root : INFO : ** START TEST CASE runTest (basic.Echo)
14:42:59 controller: INFO : Create/listen at 192.168.1.21:6633
14:42:59 controller: INFO : Waiting for switch connection
14:43:19 controller: INFO : Ignoring switch soc shutdown error
14:43:19 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f6e6da0a210>
14:43:19 controller: INFO : Exiting controller thread
14:43:19 controller: INFO : Ignoring switch soc shutdown error
14:43:19 controller: INFO : Ignoring listen soc shutdown error
14:43:19 root : INFO : *** TEST RUN END : Wed Mar 25 14:43:19 2015
14:43:32 root : INFO : ++++++++ Wed Mar 25 14:43:32 2015 ++++++++
14:43:32 root : INFO : Importing platform: remote
14:43:32 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
14:43:32 root : INFO : Importing profile: default
14:43:32 root : INFO : Adding test basic.Echo
14:43:32 root : INFO : *** TEST RUN START: Wed Mar 25 14:43:32 2015
14:43:32 root : INFO : ** START TEST CASE runTest (basic.Echo)
14:43:32 controller: INFO : Create/listen at 192.168.1.21:6633
14:43:32 controller: INFO : Waiting for switch connection
14:43:46 controller: INFO : Incoming connection from ('192.168.1.12', 58001)
14:43:46 root : INFO : Connected ('192.168.1.12', 58001)
14:43:46 root : INFO : Supported actions: 0x7f7
14:43:46 root : INFO : ** END TEST CASE runTest (basic.Echo)
14:43:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1b8df83210>
14:43:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1b8df83280>
14:43:46 controller: INFO : Exiting controller thread
14:43:46 controller: INFO : Ignoring switch soc shutdown error
14:43:46 controller: INFO : Ignoring listen soc shutdown error
14:43:46 root : INFO : *** TEST RUN END : Wed Mar 25 14:43:46 2015
15:03:19 root : INFO : ++++++++ Wed Mar 25 15:03:19 2015 ++++++++
15:03:19 root : INFO : Importing platform: remote
15:03:19 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:03:19 root : INFO : Importing profile: default
15:03:19 root : INFO : Adding test basic.Echo
15:03:19 root : INFO : *** TEST RUN START: Wed Mar 25 15:03:19 2015
15:03:19 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:03:19 controller: INFO : Create/listen at 192.168.1.21:6633
15:03:19 controller: INFO : Waiting for switch connection
15:03:39 controller: INFO : Ignoring switch soc shutdown error
15:03:39 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f71f1e60210>
15:03:39 controller: INFO : Exiting controller thread
15:03:39 controller: INFO : Ignoring switch soc shutdown error
15:03:39 controller: INFO : Ignoring listen soc shutdown error
15:03:39 root : INFO : *** TEST RUN END : Wed Mar 25 15:03:39 2015
15:04:28 root : INFO : ++++++++ Wed Mar 25 15:04:28 2015 ++++++++
15:04:28 root : INFO : Importing platform: remote
15:04:28 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:04:28 root : INFO : Importing profile: default
15:04:28 root : INFO : Adding test basic.Echo
15:04:28 root : INFO : *** TEST RUN START: Wed Mar 25 15:04:28 2015
15:04:28 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:04:28 controller: INFO : Create/listen at 192.168.1.21:6633
15:04:28 controller: INFO : Waiting for switch connection
15:04:46 controller: INFO : Incoming connection from ('192.168.1.12', 61175)
15:04:46 root : INFO : Connected ('192.168.1.12', 61175)
15:04:46 root : INFO : Supported actions: 0x7f7
15:04:46 root : INFO : ** END TEST CASE runTest (basic.Echo)
15:04:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ff96748f210>
15:04:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ff96748f280>
15:04:46 controller: INFO : Exiting controller thread
15:04:46 controller: INFO : Ignoring switch soc shutdown error
15:04:46 controller: INFO : Ignoring listen soc shutdown error
15:04:46 root : INFO : *** TEST RUN END : Wed Mar 25 15:04:46 2015
15:04:51 root : INFO : ++++++++ Wed Mar 25 15:04:51 2015 ++++++++
15:04:51 root : INFO : Importing platform: remote
15:04:51 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:04:51 root : INFO : Importing profile: default
15:04:51 root : INFO : Adding test basic.Echo
15:04:51 root : INFO : *** TEST RUN START: Wed Mar 25 15:04:51 2015
15:04:51 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:04:51 controller: INFO : Create/listen at 192.168.1.21:6633
15:04:51 controller: INFO : Waiting for switch connection
15:05:11 controller: INFO : Ignoring switch soc shutdown error
15:05:11 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7fef9b6c3210>
15:05:11 controller: INFO : Exiting controller thread
15:05:11 controller: INFO : Ignoring switch soc shutdown error
15:05:11 controller: INFO : Ignoring listen soc shutdown error
15:05:11 root : INFO : *** TEST RUN END : Wed Mar 25 15:05:11 2015
15:05:36 root : INFO : ++++++++ Wed Mar 25 15:05:36 2015 ++++++++
15:05:36 root : INFO : Importing platform: remote
15:05:36 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:05:36 root : INFO : Importing profile: default
15:05:36 root : INFO : Adding test basic.Echo
15:05:36 root : INFO : *** TEST RUN START: Wed Mar 25 15:05:36 2015
15:05:36 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:05:36 controller: INFO : Create/listen at 192.168.1.21:6633
15:05:36 controller: INFO : Waiting for switch connection
15:05:46 controller: INFO : Incoming connection from ('192.168.1.12', 49207)
15:05:46 root : INFO : Connected ('192.168.1.12', 49207)
15:05:46 root : INFO : Supported actions: 0x7f7
15:05:46 root : INFO : ** END TEST CASE runTest (basic.Echo)
15:05:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1a2f635210>
15:05:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1a2f635280>
15:05:46 controller: INFO : Exiting controller thread
15:05:46 controller: INFO : Ignoring switch soc shutdown error
15:05:46 controller: INFO : Ignoring listen soc shutdown error
15:05:46 root : INFO : *** TEST RUN END : Wed Mar 25 15:05:46 2015
15:05:51 root : INFO : ++++++++ Wed Mar 25 15:05:51 2015 ++++++++
15:05:51 root : INFO : Importing platform: remote
15:05:51 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:05:51 root : INFO : Importing profile: default
15:05:51 root : INFO : Adding test basic.Echo
15:05:51 root : INFO : *** TEST RUN START: Wed Mar 25 15:05:51 2015
15:05:51 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:05:51 controller: INFO : Create/listen at 192.168.1.21:6633
15:05:51 controller: INFO : Waiting for switch connection
15:06:11 controller: INFO : Ignoring switch soc shutdown error
15:06:11 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f57aae06210>
15:06:11 controller: INFO : Exiting controller thread
15:06:11 controller: INFO : Ignoring switch soc shutdown error
15:06:11 controller: INFO : Ignoring listen soc shutdown error
15:06:11 root : INFO : *** TEST RUN END : Wed Mar 25 15:06:11 2015
15:06:45 root : INFO : ++++++++ Wed Mar 25 15:06:45 2015 ++++++++
15:06:45 root : INFO : Importing platform: remote
15:06:45 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:06:45 root : INFO : Importing profile: default
15:06:45 root : INFO : Adding test basic.Echo
15:06:45 root : INFO : *** TEST RUN START: Wed Mar 25 15:06:45 2015
15:06:45 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:06:45 controller: INFO : Create/listen at 192.168.1.21:6633
15:06:45 controller: INFO : Waiting for switch connection
15:06:46 controller: INFO : Incoming connection from ('192.168.1.12', 49911)
15:06:46 root : INFO : Connected ('192.168.1.12', 49911)
15:06:46 root : INFO : Supported actions: 0x7f7
15:06:46 root : INFO : ** END TEST CASE runTest (basic.Echo)
15:06:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ffb6cf1a210>
15:06:46 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7ffb6cf1a280>
15:06:46 controller: INFO : Exiting controller thread
15:06:46 controller: INFO : Ignoring switch soc shutdown error
15:06:46 controller: INFO : Ignoring listen soc shutdown error
15:06:46 root : INFO : *** TEST RUN END : Wed Mar 25 15:06:46 2015
15:06:48 root : INFO : ++++++++ Wed Mar 25 15:06:48 2015 ++++++++
15:06:48 root : INFO : Importing platform: remote
15:06:48 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:06:48 root : INFO : Importing profile: default
15:06:48 root : INFO : Adding test basic.Echo
15:06:48 root : INFO : *** TEST RUN START: Wed Mar 25 15:06:48 2015
15:06:48 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:06:48 controller: INFO : Create/listen at 192.168.1.21:6633
15:06:48 controller: INFO : Waiting for switch connection
15:07:08 controller: INFO : Ignoring switch soc shutdown error
15:07:08 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7fd81839f210>
15:07:08 controller: INFO : Exiting controller thread
15:07:08 controller: INFO : Ignoring switch soc shutdown error
15:07:08 controller: INFO : Ignoring listen soc shutdown error
15:07:08 root : INFO : *** TEST RUN END : Wed Mar 25 15:07:08 2015
15:07:21 root : INFO : ++++++++ Wed Mar 25 15:07:21 2015 ++++++++
15:07:21 root : INFO : Importing platform: remote
15:07:21 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:07:21 root : INFO : Importing profile: default
15:07:21 root : INFO : Adding test basic.Echo
15:07:21 root : INFO : *** TEST RUN START: Wed Mar 25 15:07:21 2015
15:07:21 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:07:21 controller: INFO : Create/listen at 192.168.1.21:6633
15:07:21 controller: INFO : Waiting for switch connection
15:07:41 controller: INFO : Ignoring switch soc shutdown error
15:07:41 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f1ef330b210>
15:07:41 controller: INFO : Exiting controller thread
15:07:41 controller: INFO : Ignoring switch soc shutdown error
15:07:41 controller: INFO : Ignoring listen soc shutdown error
15:07:41 root : INFO : *** TEST RUN END : Wed Mar 25 15:07:41 2015
15:07:59 root : INFO : ++++++++ Wed Mar 25 15:07:59 2015 ++++++++
15:07:59 root : INFO : Importing platform: remote
15:07:59 root : INFO : OF port map: {12: 'eth1', 13: 'eth2', 14: 'eth3', 15: 'eth4'}
15:07:59 root : INFO : Importing profile: default
15:07:59 root : INFO : Adding test basic.Echo
15:07:59 root : INFO : *** TEST RUN START: Wed Mar 25 15:07:59 2015
15:07:59 root : INFO : ** START TEST CASE runTest (basic.Echo)
15:07:59 controller: INFO : Create/listen at 192.168.1.21:6633
15:07:59 controller: INFO : Waiting for switch connection
15:08:19 controller: INFO : Ignoring switch soc shutdown error
15:08:19 controller: ERROR : Unknown socket ready: <socket._socketobject object at 0x7f23edabb210>
15:08:19 controller: INFO : Exiting controller thread
15:08:19 controller: INFO : Ignoring switch soc shutdown error
15:08:19 controller: INFO : Ignoring listen soc shutdown error
15:08:19 root : INFO : *** TEST RUN END : Wed Mar 25 15:08:19 2015

Can anyone suggest me some solution to fix this.

Thanks and Regards,

Asha Singh P

Bucket watch_port and watch_group defaults

The default values for watch_port and watch_group in the Bucket class are both 0. However, according to the OF 1.3.4 standard these should be set to OFPP_ANY and OFPG_ANY if they are to be ignored. I believe port 0 is invalid, whereas group 0 can be a valid ID.

bsn_error undefined

In testing OVS with OFTest, I came across the following exception when OVS sent an unexpected error message. It happens in a number of tests:

groups.GroupAddIndirectWeight ... Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/blp/nicira/oftest/src/python/oftest/controller.py", line 451, in run
    if self._socket_ready_handle(s) == -1:
  File "/home/blp/nicira/oftest/src/python/oftest/controller.py", line 380, in _socket_ready_handle
    self._pkt_handle(pkt)
  File "/home/blp/nicira/oftest/src/python/oftest/controller.py", line 298, in _pkt_handle
    if msg.version >= 3 and isinstance(msg, ofp.message.bsn_error):
AttributeError: 'module' object has no attribute 'bsn_error'

Auxiliary Connection in OFtest

Hi,

I am using OFtest-master

Openflow 1.4 Specifies about Auxiliary Connections, How will I be able to create an auxiliary connection in oftest.
Can I get a help in knowing how to solve the above queries.

Thanks,
Asha

OFTest for Hardware switch

Hi,
I am new to OFTest. I am planning to run OFTest to test a Hardware openflow Switch.
I understand that a single OFtest instance emulates a controller and also generates the data necessary for the switch dataplane.

  1. Is it possible run OFtest on a commodity PC with a single NIC and connect it to a Hardware Switch to test the OpenFlow features (for e.g.. different features of openflow 1.0 and 1.3).

  2. do i need to have a PC with multi-port NIC ? or Can i run 2 OFtest instances on 2 different commodity PCs(one instance to emulate controller and the other to generate the data) which can be connected to a hardware switch under test?

Any response is highly appreciated.

Thanks,
Basavaraj

XML Output

This is part-question, part-feature request.

Does OFTest support some form of XML-based output, or something easily parsed by machines. I'm interested in using it with Jenkins, but as it stands I'll need manual parsing rules to check for ok/fail conditions.

How to run test cases of tests-1.3 in OFTest

Hi,

I want to run openflow 1.3 test cases given in tests-1.3 folder of oftest.
I am using ofsoftswitch13 for this purpose.
I run the test case basic.Echo in file tests-1.3 using this ./oft basic.Echo --test-dir=tests-1.3 --port=6633 command and it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ...ok


Ran 1 test in 1.425s

OK

but when I run some other test case it gives error,
root@infmy10527:/home/user/a/oftest#./oft basic.PacketInMiss --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.PacketInMiss ... ERROR

ERROR: basic.PacketInMiss

Traceback (most recent call last):
File "tests-1.3/basic.py", line 248, in runTest
ofp.instruction.apply_actions(
AttributeError: 'module' object has no attribute 'instruction'


Ran 1 test in 4.391s

I run the test case using following command
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.3 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... ERROR

ERROR: basic.Echo

Traceback (most recent call last):
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 59, in setUp
"Did not complete features_request for handshake")
File "/home/user/a/oftest/src/python/oftest/base_tests.py", line 97, in assertTrue
unittest.TestCase.assertTrue(self, cond, msg)
AssertionError: Did not complete features_request for handshake


Ran 1 test in 5.440s

FAILED (errors=1)

when I do the same with --of-version=1.0 instead of --of-version=1.3 it works fine.
root@infmy10527:/home/user/a/oftest# ./oft basic.Echo --of-version=1.0 --test-dir=tests-1.3 --port=6633
WARNING: No route found for IPv6 destination :: (no default route?)
basic.Echo ... tests-1.3
ok


Ran 1 test in 1.425s

OK

I want all openflow 1.3 test cases to run without any error, can anyone help me out with this.

Thanks,
Asha

OFTest fails to parse messages for various OpenFlow versions

When writing some test cases involving devices that support multiple OpenFlow versions, a controller error is reported (

self.logger.error("Switch only supports up to OpenFlow version %d (OFTest version is %d)",
) and the message is dropped.

Switch only supports up to OpenFlow version 3 (OFTest version is 4)

It would be useful if these messages could be parsed regardless of specified oftest OpenFlow version, and forwarded to the test framework.

Supported Python version?

What version of Python is officially supported by OFTest?

The README would suggest Python 2.4. However, I notice a number of with statements in oft, which requires Python 2.6 (or a __future__ statement in Python 2.5, which is missing).

If this README is out of date, can I go about updating both this and oft to use some of the features Python 2.6+ offers?

Is it Possible to create two instance of Controller in OFTest

Hi,

I am using OFtest for testing Openflow 1.3 switches.
I use Cpqd softswitch (of13softswitch) for this Purpose.

In Openflow 1.3 there is Multiple Controllers,

(for ex:) In Openflow 1.3 Specification It tells
"Asynchronous messages may need to be send to multiple controllers, the message is duplicated for each eligible OpenFlow channel and each message sent when the respective controller connection allows it."

Suppose I want to test the above statements, How should i use/create Multiple Controllers in OFTest.

Can Someone Help me out with this ..

Thanks
Asha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.