[OPNFLWPLUG-118] Error at OSGi log after starting mininet (of13 & of10) Created: 21/Apr/14 Updated: 27/Sep/21 Resolved: 14/May/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Madhusudhan Ananderi | Assignee: | Madhusudhan Ananderi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Windows |
||
| Attachments: |
|
| External issue ID: | 782 |
| Description |
|
Hello, When I connect mininet(of10 & of13) with the controller (using of13 option), I get the following error at the OSGi command line. Attached the links for the detailed error. Link 1 to mininet(of10) : http://pastebin.com/46hrz3yM Link 2 to mininet(of13) : http://pastebin.com/aczRP2M8 Please let me know if you need any additional information. BR/Madhusudhan |
| Comments |
| Comment by Michal Rehak [ 22/Apr/14 ] |
|
Hi Madhusudhan, The of13 part looks like you are pushing flows into disconnected device. Could you provide more details about you setup - which build are you using, OS? Thank you, |
| Comment by Madhusudhan Ananderi [ 22/Apr/14 ] |
|
For OF13 part, I used the build from integration repo. After running the controller using -of13 option, I started mininet, however it found to be working fine but I could see those errors in OSGi logs. Regarding OS, I used CentOS. Thanks, |
| Comment by Michal Rehak [ 28/Apr/14 ] |
|
regarding mininet(of10): |
| Comment by Michal Rehak [ 28/Apr/14 ] |
|
regarding mininet(of13): How many exceptions of this type are you getting? There should be none or only a few (sometimes the switch disconnects right after connecting - but happens only at the beginning). Also could you check if all expected switches are registered? http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/ Thank you. |
| Comment by Madhusudhan Ananderi [ 28/Apr/14 ] |
|
Attachment OSGi_Errors.txt has been added with description: OSGi errors |
| Comment by Madhusudhan Ananderi [ 28/Apr/14 ] |
|
Hi Michel, I just picked the latest build from integration repo. The things are encountered during the testing and have attached the document(OSGi_Errors) for clear information. Please let me know if you need any additional information. Thanks, |
| Comment by Michal Rehak [ 29/Apr/14 ] |
|
java.lang.InterruptedException are kind of new issue - will be solved separately ERROR o.o.o.protocol.impl.core.OFEncoder - Serializer for key: msgVersion: 1 msgType: org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action msgType2: org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.DecNwTtl was not found This shows, that you are trying to use OF-1.3 feature on OF-1.0 device. java.lang.IllegalArgumentException: Session for the cookie is invalid. Reason: the switch has been recently disconnected OR inventory provides outdated information. This comes after devices disconnected and probably ad-sal apps are still trying to add/remove flows on devices. Those will be covered by sal-compatibility bugs. Could you please retest with either using OF-1.0 features in flow or with OF-1.3 device? |
| Comment by Madhusudhan Ananderi [ 30/Apr/14 ] |
|
Hi Michal, I tested the following using the latest controller. I still facing the same issues when I try to add a flow using mininet 0f10 simulation running with of13 option in controller. The issue is only using mininet of10 simulation with of13 option controller 1. wget 'https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/org.opendaylight.integration$distributions-base/artifact/org.opendaylight.integration/distributions-base/0.1.2-SNAPSHOT/distributions-base-0.1.2-SNAPSHOT-osgipackage.zip' 2. Start the controller using ./run.sh -of13 -Xmx1G -start Body: https://wiki.opendaylight.org/view/Flow_body 7. At the switch, I could not see the flows as well when dumping the flows at the switch: 8. I get this error in OSGi after adding a flow: 2014-04-29 16:59:01.751 PDT [nioEventLoopGroup-10-1] ERROR o.o.o.protocol.impl.core.OFEncoder - Message serialization failed I could see the same issue happening at jenkins as well: https://jenkins.opendaylight.org/integration/job/integration-csit-base-of13/805/robot/report/log.html - Please check "Restconf Flows" after "restart mininet OF10" testcase. Please note: Issue is happening at FRM (after adding a flow) and Host Tracker (After adding a flow) as well. I can raise it separately to avoid confusion with this one. Please let me know if there is something wrong with my testing. Thanks, |
| Comment by Michal Rehak [ 02/May/14 ] |
|
https://git.opendaylight.org/gerrit/#/c/6660/ |
| Comment by Michal Rehak [ 02/May/14 ] |
|
Madhusudhan, https://wiki.opendaylight.org/view/Openflow_Protocol_Library:OpenVirtualSwitch |
| Comment by Madhusudhan Ananderi [ 02/May/14 ] |
|
Hi Michal, Yes. Thats right. 1. If I want to use of13 mininet to the controller running of13 option, I should specify the protocols=OpenFlow13 i.e., sudo mn --topo tree,2 --controller 'remote,ip=127.0.0.1,port=6633' --switch ovsk,protocols=OpenFlow13 2. If I want to use of10 mininet to the controller running of13 option, I should specify the protocols=OpenFlow10 i.e., (a)sudo mn --topo tree,2 --controller 'remote,ip=127.0.0.1,port=6633' --switch ovsk,protocols=OpenFlow10 OR (b) sudo mn --topo tree,2 --controller 'remote,ip=127.0.0.1,port=6633' -------------------------------------------------------------------------------- A quick question: What is the correct way for invoking mininet(of10)? Should it (a) or (b). I get different behaviors when I chose two of them. Different responses can be seen at Thanks, |
| Comment by Michal Rehak [ 05/May/14 ] |
|
Hi Madhusudhan, Regarding different behavior - those are effects of 2 issues:
Regarding your testing scenario: In order not to get this exception you should use some of actions supported by OF-1.0. Otherwise there is no way for OFJava/OFPlugin to recover from the state. |
| Comment by Madhusudhan Ananderi [ 06/May/14 ] |
|
Sorry Michal for creating inconvenience and for the wrong body - Actually I was bit confused with the body (The link: https://wiki.opendaylight.org/view/CrossProject:Integration_Group:CSIT_Test_Plan_Base_of13 is updated with the correct response body now to avoid this type of silly mistakes in the future) Anyways, using of10 mininet simulation, when I try to push a flow with an action <output-node-connector>openflow:1:1</output-node-connector>, I could not see the change reflected in operational datastore. Steps to reproduce: 1. Start the mininet OF10 simulation |
| Comment by Michal Rehak [ 14/May/14 ] |
|
So I did some experimenting and:
Could you please try with table_id set to 0 (in xml), so that controller will be less confused? Anyway the behavior after flow removal resulting into cleaned operational part is not expected. |
| Comment by Luis Gomez [ 14/May/14 ] |
|
Hi Michal, Madhusudhan left the OpenDaylight project for a while to finish his college. I do not think this is a bug so you can close it. BR/Luis |
| Comment by Michal Rehak [ 14/May/14 ] |
|
ok |