<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:31:30 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[OPNFLWPLUG-76] Get Topology fails against CPqD switch</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-76</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Get Topology is failing all the time at our integration repo. &lt;/p&gt;

&lt;p&gt;Error: I could not see any links between the switches on the GUI, hence the response for GET request fails.&lt;/p&gt;

&lt;p&gt;Steps to replicate the issue:&lt;/p&gt;

&lt;p&gt;1. Start the latest controller using ./run.sh -of13&lt;br/&gt;
2. Bring up the mininet: sudo mn --controller=remote,ip=10.125.136.52 --topo tree,2&lt;br/&gt;
3. Check the GUI: 3 switches are showing up, but with no links&lt;br/&gt;
4. Do GET requests from RESTAPI client&lt;br/&gt;
&lt;a href=&quot;http://10.125.136.52:8080/controller/nb/v2/topology/default&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10.125.136.52:8080/controller/nb/v2/topology/default&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BR&lt;br/&gt;
Madhusudhan&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="27344">OPNFLWPLUG-76</key>
            <summary>Get Topology fails against CPqD switch</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10002">Duplicate</resolution>
                                        <assignee username="madhusudhan.opendaylight@yahoo.com">Madhusudhan Ananderi</assignee>
                                    <reporter username="madhusudhan.opendaylight@yahoo.com">Madhusudhan Ananderi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Mar 2014 01:18:29 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:05 +0000</updated>
                            <resolved>Tue, 12 Aug 2014 13:36:55 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="55404" author="madhusudhan.opendaylight@yahoo.com" created="Sat, 8 Mar 2014 01:38:17 +0000"  >&lt;p&gt;This testcase is working fine. Moved the status to FIXED&lt;/p&gt;</comment>
                            <comment id="55405" author="mirehak@cisco.com" created="Mon, 10 Mar 2014 13:34:11 +0000"  >&lt;p&gt;Hi Madhusudhan,&lt;br/&gt;
I tried with cpqd (ofsoftswitch) with no success. It seems like there is no LLDP packet even sent back to controller at all - which explains missing links in topology and failing pings (controller will never get alerted regarding ping packets).&lt;/p&gt;

&lt;p&gt;On the other hand it all works fine with ovs (openvswitch) which by default sends all packets (not covered by any flow) up to controller. So the controller gets the topology discovered and also reacts upon ping packet by creating appropriate flows.&lt;/p&gt;

&lt;p&gt;Are you sure, you get ping working in cpqd and not ovs? If yes, can you attach flows on your virtual devices?&lt;/p&gt;


&lt;p&gt;After adding flow in order to forward all packets to controller I got links in topology and ping in --topo tree,2 looks liek this:&lt;br/&gt;
h1 -&amp;gt; X h3 h4 &lt;br/&gt;
h2 -&amp;gt; X h3 h4 &lt;br/&gt;
h3 -&amp;gt; h1 h2 X &lt;br/&gt;
h4 -&amp;gt; h1 h2 X &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;Results: 33% dropped (4/12 lost)&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I never get h1 &amp;lt;&lt;del&gt;&amp;gt; h2 and h3 &amp;lt;&lt;/del&gt;&amp;gt; h4 pinged.&lt;/p&gt;</comment>
                            <comment id="55406" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 10 Mar 2014 18:01:18 +0000"  >&lt;p&gt;Hi Michal,&lt;/p&gt;

&lt;p&gt;Yes. I tried with cpqd (ofsoftswitch) with no success. Maybe there is no LLDP packet even sent back to controller at all. &lt;/p&gt;

&lt;p&gt;I used this sudo mn --topo tree,2 --mac --switch user --controller=remote,ip=127.0.0.1 for CPqD&lt;/p&gt;

&lt;p&gt;I am able to see the topology on the GUI and when I do pingall, I get the following:&lt;/p&gt;

&lt;p&gt;mininet&amp;gt; pingall&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;Ping: testing ping reachability&lt;br/&gt;
h1 -&amp;gt; h2 X X &lt;br/&gt;
h2 -&amp;gt; h1 X X &lt;br/&gt;
h3 -&amp;gt; X X h4 &lt;br/&gt;
h4 -&amp;gt; X X h3 &lt;/li&gt;
			&lt;li&gt;Results: 66% dropped (8/12 lost)&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Using OVS, it is found to be working fine. So, the problem lies in CPqD switch.&lt;/p&gt;

&lt;p&gt;Note: I normally try with OVS. Guys from India will be tested against CPqD. &lt;/p&gt;

&lt;p&gt;However, I am going to try in both the switches going forward.&lt;/p&gt;</comment>
                            <comment id="55407" author="madhusudhan.opendaylight@yahoo.com" created="Tue, 11 Mar 2014 01:17:51 +0000"  >&lt;p&gt;Hi Michal,&lt;/p&gt;

&lt;p&gt;GET topology fails against CPqD switch.&lt;/p&gt;

&lt;p&gt;1. Download and start latest controller using ./run.sh -of13&lt;/p&gt;

&lt;p&gt;2. sudo mn --topo tree,2 --mac --switch user --controller=remote,ip=127.0.0.1&lt;/p&gt;

&lt;p&gt;3. Check the topology on the GUI and check whether you are able to see the links between the switches (In my case, I could not see the links)&lt;/p&gt;

&lt;p&gt;4. Use GET &lt;a href=&quot;http://127.0.0.1:8080/controller/nb/v2/topology/default&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://127.0.0.1:8080/controller/nb/v2/topology/default&lt;/a&gt; and I could not see the topology. Thus the ping fails using CPqD.&lt;/p&gt;</comment>
                            <comment id="55408" author="mirehak@cisco.com" created="Fri, 14 Mar 2014 15:23:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/5650/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/5650/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="55414" author="mirehak@cisco.com" created="Fri, 14 Mar 2014 15:26:31 +0000"  >&lt;p&gt;Attachment flow-f54t0.xml has been added with description: flow sending all packets up to controller&lt;/p&gt;</comment>
                            <comment id="55409" author="mirehak@cisco.com" created="Fri, 14 Mar 2014 15:41:40 +0000"  >&lt;p&gt;One of the differences between cpqd and ovs is that ovs sends packets not covered by any flow up to controller by default. And cpqd drops them.&lt;/p&gt;

&lt;p&gt;In order to alter this behavior of cpqd I added the flow (attached - flow-f54t0.xml) to each switch (tableId=0, priority=0, all packets, action=send to controller port).&lt;/p&gt;

&lt;p&gt;Then the topology got discovered and ping worked (sometimes I get &amp;lt;100% success on 1st try).&lt;/p&gt;

&lt;p&gt;Steps:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;start controller&lt;/li&gt;
	&lt;li&gt;start cpqd&lt;/li&gt;
	&lt;li&gt;wait till connected&lt;/li&gt;
	&lt;li&gt;add flows to all nodes:&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;for i = 1 .. x:&lt;br/&gt;
  action: POST&lt;br/&gt;
  url: &lt;a href=&quot;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:i/table/0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:i/table/0&lt;/a&gt;&lt;br/&gt;
  content: attached file&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Or do it via osgi console command (change 5650 is lowering the priority of this flow to 0):&lt;br/&gt;
  osgi&amp;gt; addMDFlow openflow:i f54 0&lt;/li&gt;
&lt;/ol&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;observe packetIn in wireshark&lt;/li&gt;
	&lt;li&gt;run pingall in mininet&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Could you replicate this, please? (the attached xml already contains priority = 0, higher priority of this flow is causing this: h1 never pings h2, h3 never pings h4)&lt;/p&gt;</comment>
                            <comment id="55410" author="madhusudhan.opendaylight@yahoo.com" created="Mon, 17 Mar 2014 20:30:17 +0000"  >&lt;p&gt;Exactly. Using CPqD, OF packets are not forwarded to the controller by default. It worked only after inserting a flow of action, Output=CONTROLLER to all the nodes. Eventually, ping worked!&lt;/p&gt;

&lt;p&gt;I think the issue is in CPqD switch and believe that, it started behaving like this recently. Maybe, we need to file a bug for CPqD people to start looking into it.&lt;/p&gt;

&lt;p&gt;Thanks for the resolution.&lt;/p&gt;</comment>
                            <comment id="55411" author="mirehak@cisco.com" created="Tue, 18 Mar 2014 07:18:55 +0000"  >&lt;p&gt;Assuming this is cpqd specific behavior and wont be fixed on controller side.&lt;/p&gt;</comment>
                            <comment id="55412" author="tony.tkacik@gmail.com" created="Tue, 27 May 2014 13:38:53 +0000"  >&lt;p&gt;Reopened,&lt;br/&gt;
since this behaviour is not CPQD specific, but may be observed on switches which&lt;br/&gt;
faitfully implement openflow specification.&lt;/p&gt;

&lt;p&gt;Section 5.1 of OF 1.3 specification clearly states that packet may be forwarded to controller or dropped based on table configuration and this behaviour is left to table configuration.&lt;/p&gt;

&lt;p&gt;In order for controller to reliably perfom LLDP topology discovery controller must not depend on &quot;unknown conditions&quot; such as forwarding all packet misses to controller.&lt;/p&gt;

&lt;p&gt;So controller needs to install flows, which will forward LLDP packets to controller, in order to do topology discovery reliable and to not be dependent&lt;br/&gt;
on out-of-the-band configuration of table.&lt;/p&gt;</comment>
                            <comment id="55413" author="abhijit2511" created="Tue, 12 Aug 2014 13:35:54 +0000"  >&lt;p&gt;Same recommendation as in &lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=974&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=974&lt;/a&gt; to add an explicit LLDP flow to punt the LLDP packets to the controller.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="27422">OPNFLWPLUG-154</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13861" name="flow-f54t0.xml" size="1438" author="michal.rehak" created="Fri, 14 Mar 2014 15:26:31 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>480</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=480]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10301"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02yx3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>