<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:33:57 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-1006] ODL Nitrogen (SR1): Cannot control switch with pre-existing meters</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-1006</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;If I start up NetOS with a nitrogen-based ODL, ODL can not take control of a switch which has pre-existing meters.&lt;/p&gt;

&lt;p&gt;The karaf log (attached) shows:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Not able to set MASTER role on device openflow:2465100910524604673, reason: Initial transaction cannot be submitted.
This mastering is mandatory, destroying context chain and closing connection &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; device openflow:2465100910524604673.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;We see other exceptions in the Karaf Log (see below).&lt;/p&gt;

&lt;p&gt;If I delete the meters before restarting NetOS, ODL can take control of the switch.&lt;/p&gt;

&lt;p&gt;If I leave the meters present and start NetOS with a boron-based ODL, that ODL&#160;&lt;b&gt;can&lt;/b&gt;&#160;take control of the switch.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;br/&gt;
1) Make sure there are no meters on the Switch&lt;br/&gt;
2) Take latest nitrogen and run up controller (ODL Nitrogen SR1)&lt;br/&gt;
3) Point switch back to controller&lt;br/&gt;
4) Wait for connected status on switch&lt;br/&gt;
6) Create meter on switch using OpenDaylight (or by CLI directly on the switch)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Check ODL logs for exception below:&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;2018-04-17 15:15:19,134 | WARN | ntLoopGroup-16-6 | StatisticsGatheringUtils | 432 - org.opendaylight.openflowplugin.impl - 0.5.1 | Stats processing of type OFPMPMETERCONFIG for node openflow:2465100910524604673 failed during write-to-tx step&lt;br/&gt;
2018-04-17 15:15:22,224 | WARN | ntLoopGroup-16-6 | StatisticsGatheringUtils | 432 - org.opendaylight.openflowplugin.impl - 0.5.1 | Stats processing of type OFPMPMETERCONFIG for node openflow:2465100910524604673 failed during write-to-tx step&lt;br/&gt;
java.lang.IllegalArgumentException: All keys must be specified for class org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.meter.band.headers.MeterBandHeaderKey. Missing key is getBandId. Supplied key is MeterBandHeaderKey []&lt;/p&gt;</description>
                <environment>&lt;p&gt;PicaOS: 2.9.2.5/30f7332&lt;/p&gt;

&lt;p&gt;EdgeCore Switch:&#160;AS4610-54P&lt;/p&gt;</environment>
        <key id="29830">OPNFLWPLUG-1006</key>
            <summary>ODL Nitrogen (SR1): Cannot control switch with pre-existing meters</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <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="10000">Done</resolution>
                                        <assignee username="Somashekhar">Somashekhar Javalagi</assignee>
                                    <reporter username="amachwe">Azahar Machwe</reporter>
                        <labels>
                            <label>openflow</label>
                    </labels>
                <created>Mon, 23 Apr 2018 09:27:40 +0000</created>
                <updated>Tue, 10 Jul 2018 08:43:33 +0000</updated>
                            <resolved>Tue, 10 Jul 2018 08:43:33 +0000</resolved>
                                                    <fixVersion>Oxygen-SR3</fixVersion>
                    <fixVersion>Fluorine</fixVersion>
                                    <component>openflowplugin</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="62567" author="vishnoianil@gmail.com" created="Mon, 23 Apr 2018 15:50:17 +0000"  >&lt;p&gt;This seems like a bug in writing meter statistics. Are you willing to push a patch for the bug ?&lt;/p&gt;</comment>
                            <comment id="62591" author="amachwe" created="Tue, 24 Apr 2018 08:51:52 +0000"  >&lt;p&gt;We do not have a solution for this. But we do have a workaround that involves disabling meter stats collection. We are happy to upload that as part of the ticket if it helps getting to the root cause.&lt;/p&gt;</comment>
                            <comment id="62860" author="vishnoianil@gmail.com" created="Mon, 7 May 2018 16:18:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=amachwe&quot; class=&quot;user-hover&quot; rel=&quot;amachwe&quot;&gt;amachwe&lt;/a&gt; Can you please upload the karaf.log?&lt;/p&gt;</comment>
                            <comment id="62881" author="amachwe" created="Tue, 8 May 2018 14:15:28 +0000"  >&lt;p&gt;Please find attached to the ticket.&lt;/p&gt;</comment>
                            <comment id="63014" author="somashekhar" created="Mon, 21 May 2018 16:30:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=amachwe&quot; class=&quot;user-hover&quot; rel=&quot;amachwe&quot;&gt;amachwe&lt;/a&gt; can you please provide the meter body, will be helpful in reproduce the issue.&lt;/p&gt;</comment>
                            <comment id="63059" author="amachwe" created="Tue, 22 May 2018 19:47:20 +0000"  >&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-comment&quot;&gt;// Meter Request
&lt;/span&gt;http:&lt;span class=&quot;code-comment&quot;&gt;//localhost:8181/restconf/operations/sal-meter:add-meter
&lt;/span&gt;{
&lt;span class=&quot;code-quote&quot;&gt;&quot;input&quot;&lt;/span&gt;: {
&lt;span class=&quot;code-quote&quot;&gt;&quot;node&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id=\&quot;&lt;/span&gt;openflow:2465100910524604673\&lt;span class=&quot;code-quote&quot;&gt;&quot;]&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;flags&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;meter-kbps&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;meter-id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;12&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;meter-name&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;test&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;meter-band-headers&quot;&lt;/span&gt;: {
&lt;span class=&quot;code-quote&quot;&gt;&quot;meter-band-header&quot;&lt;/span&gt;: [
{
&lt;span class=&quot;code-quote&quot;&gt;&quot;band-id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;0&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;meter-band-types&quot;&lt;/span&gt;: {
&lt;span class=&quot;code-quote&quot;&gt;&quot;flags&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;ofpmbt-drop&quot;&lt;/span&gt;
},
&lt;span class=&quot;code-quote&quot;&gt;&quot;drop-rate&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;100000&quot;&lt;/span&gt;,
&lt;span class=&quot;code-quote&quot;&gt;&quot;drop-burst-size&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;0&quot;&lt;/span&gt;
}
]
}
}
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Please find above.&lt;/p&gt;</comment>
                            <comment id="63381" author="somashekhar" created="Mon, 11 Jun 2018 09:25:04 +0000"  >&lt;p&gt;I am able to reproduce the issue with ovs 2.8.&#160;&lt;/p&gt;</comment>
                            <comment id="63382" author="amachwe" created="Mon, 11 Jun 2018 09:34:46 +0000"  >&lt;p&gt;Thank you for the update.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14641" name="karaf.log" size="805787" author="amachwe" created="Tue, 8 May 2018 14:14:50 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03dpr:</customfieldvalue>

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