<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:40 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>[ODLPARENT-114] Binding to IP in jetty results in extra connector which causes ODL REST not to respond</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-114</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;When modifying the jetty connectors to bind to a specific IP and port, the ports seem to bind correctly.  However a 3rd connector is brought up (which is not defined in jetty.xml) called &quot;default&quot; that fails to bind.  After this, the ports are bound but curling them results in no response.  There are more execptions thrown as well around binding.  Will attach full jetty.xml and karaf log.&lt;/p&gt;

&lt;p&gt;2017-09-13 20:25:00,996 | INFO  | onfig-1-thread-1 | JettyServerImpl                  | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at &lt;span class=&quot;error&quot;&gt;&amp;#91;192.0.2.9&amp;#93;&lt;/span&gt;:&lt;span class=&quot;error&quot;&gt;&amp;#91;8181&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-09-13 20:25:00,996 | INFO  | onfig-1-thread-1 | JettyServerImpl                  | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at &lt;span class=&quot;error&quot;&gt;&amp;#91;192.0.2.9&amp;#93;&lt;/span&gt;:&lt;span class=&quot;error&quot;&gt;&amp;#91;8081&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-09-13 20:25:00,996 | INFO  | onfig-1-thread-1 | JettyFactoryImpl                 | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | SPDY not available, creating standard ServerConnector for Http&lt;br/&gt;
2017-09-13 20:25:00,997 | INFO  | onfig-1-thread-1 | JettyServerImpl                  | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at &lt;span class=&quot;error&quot;&gt;&amp;#91;0.0.0.0&amp;#93;&lt;/span&gt;:&lt;span class=&quot;error&quot;&gt;&amp;#91;8181&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;2017-09-13 20:25:15,658 | INFO  | pool-2-thread-1  | ServerConnector                  | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-default@5c4c7169&lt;/p&gt;
{HTTP/1.1}{192.0.2.9:8181}&lt;br/&gt;
2017-09-13 20:25:15,665 | INFO  | pool-2-thread-1  | ServerConnector                  | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-legacy@31dbf2a5{HTTP/1.1}
{192.0.2.9:8081}
&lt;p&gt;2017-09-13 20:25:15,667 | WARN  | pool-2-thread-1  | AbstractLifeCycle                | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | FAILED default@46a53a87&lt;/p&gt;
{HTTP/1.1}
{0.0.0.0:8181}
&lt;p&gt;: java.net.BindException: Address already in use&lt;br/&gt;
java.net.BindException: Address already in use&lt;br/&gt;
        at sun.nio.ch.Net.bind0(Native Method)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at sun.nio.ch.Net.bind(Net.java:433)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at sun.nio.ch.Net.bind(Net.java:425)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22237">ODLPARENT-114</key>
            <summary>Binding to IP in jetty results in extra connector which causes ODL REST not to respond</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="10000">Done</resolution>
                                        <assignee username="skitt">Stephen Kitt</assignee>
                                    <reporter username="trozet">Tim Rozet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Sep 2017 20:39:28 +0000</created>
                <updated>Wed, 24 Jan 2018 14:26:41 +0000</updated>
                            <resolved>Tue, 19 Sep 2017 12:31:29 +0000</resolved>
                                    <version>2.0.5</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42069" author="trozet@redhat.com" created="Wed, 13 Sep 2017 20:47:55 +0000"  >&lt;p&gt;Attachment jetty.xml has been added with description: jetty config&lt;/p&gt;</comment>
                            <comment id="42070" author="trozet@redhat.com" created="Wed, 13 Sep 2017 20:50:03 +0000"  >&lt;p&gt;Attachment karaf.zip has been added with description: karaf log&lt;/p&gt;</comment>
                            <comment id="42066" author="skitt@redhat.com" created="Thu, 14 Sep 2017 11:48:19 +0000"  >&lt;p&gt;Can you try&lt;/p&gt;

&lt;p&gt;                &amp;lt;Set name=&quot;host&quot;&amp;gt;&lt;br/&gt;
                    &amp;lt;Property name=&quot;jetty.host&quot; default=&quot;192.0.2.9&quot;/&amp;gt;&lt;br/&gt;
                &amp;lt;/Set&amp;gt;&lt;/p&gt;

&lt;p&gt;instead of&lt;/p&gt;

&lt;p&gt;                &amp;lt;Set name=&quot;host&quot;&amp;gt;192.0.2.9&lt;br/&gt;
                &amp;lt;/Set&amp;gt;&lt;/p&gt;

&lt;p&gt;The jetty.host declaration means we&apos;re supposed to be able to specify it &quot;somewhere else&quot;, I haven&apos;t figured out where yet...&lt;/p&gt;</comment>
                            <comment id="42067" author="trozet@redhat.com" created="Thu, 14 Sep 2017 14:52:29 +0000"  >&lt;p&gt;(In reply to Stephen Kitt from comment #3)&lt;br/&gt;
&amp;gt; Can you try&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt;                 &amp;lt;Set name=&quot;host&quot;&amp;gt;&lt;br/&gt;
&amp;gt;                     &amp;lt;Property name=&quot;jetty.host&quot; default=&quot;192.0.2.9&quot;/&amp;gt;&lt;br/&gt;
&amp;gt;                 &amp;lt;/Set&amp;gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; instead of&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt;                 &amp;lt;Set name=&quot;host&quot;&amp;gt;192.0.2.9&lt;br/&gt;
&amp;gt;                 &amp;lt;/Set&amp;gt;&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; The jetty.host declaration means we&apos;re supposed to be able to specify it&lt;br/&gt;
&amp;gt; &quot;somewhere else&quot;, I haven&apos;t figured out where yet...&lt;/p&gt;

&lt;p&gt;Hi I tried:&lt;br/&gt;
                &amp;lt;Set name=&quot;host&quot;&amp;gt;&lt;br/&gt;
                    &amp;lt;Property name=&quot;jetty.host&quot; default=&quot;192.0.2.9&quot;/&amp;gt;&lt;br/&gt;
                &amp;lt;/Set&amp;gt;&lt;/p&gt;


&lt;p&gt;2017-09-14 14:36:59,906 | INFO  | pool-2-thread-1  | ServerConnector                  | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-default@79814611&lt;/p&gt;
{HTTP/1.1}{192.0.2.9:8181}&lt;br/&gt;
2017-09-14 14:36:59,944 | INFO  | pool-2-thread-1  | ServerConnector                  | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-legacy@73fafbce{HTTP/1.1}
{192.0.2.9:8081}
&lt;p&gt;2017-09-14 14:36:59,955 | INFO  | rint Extender: 1 | SouthboundProvider               | 363 - org.opendaylight.ovsdb.southbound-impl - 1.5.0 | SouthboundProvider ovsdbConnectionService Initialized&lt;br/&gt;
2017-09-14 14:36:59,965 | INFO  | rint Extender: 1 | SouthboundProvider               | 363 - org.opendaylight.ovsdb.southbound-impl - 1.5.0 | SouthboundProvider Session Initiated&lt;br/&gt;
2017-09-14 14:36:59,945 | WARN  | pool-2-thread-1  | AbstractLifeCycle                | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | FAILED default@6df34902&lt;/p&gt;
{HTTP/1.1}
{0.0.0.0:8181}
&lt;p&gt;: java.net.BindException: Address already in use&lt;br/&gt;
java.net.BindException: Address already in use&lt;br/&gt;
        at sun.nio.ch.Net.bind0(Native Method)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at sun.nio.ch.Net.bind(Net.java:433)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at sun.nio.ch.Net.bind(Net.java:425)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_141&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="42068" author="skitt@redhat.com" created="Tue, 19 Sep 2017 12:31:29 +0000"  >&lt;p&gt;It turns out in current Pax Web (at least, the version used in Karaf 4.0.9), the embedded server &lt;b&gt;combines&lt;/b&gt; connectors set up in jetty.xml and in org.ops4j.pax.web.cfg. When it finds matching connectors in both, it edits them, otherwise it adds them.&lt;/p&gt;

&lt;p&gt;Thus to reconfigure the existing connectors, both files need to be edited.&lt;/p&gt;

&lt;p&gt;In jetty.xml, replace both &amp;lt;Property name=&quot;jetty.host&quot;/&amp;gt; with &amp;lt;Property name=&quot;jetty.host&quot; default=&quot;192.0.2.9&quot;/&amp;gt;. In org.ops4j.pax.web.cfg, add a line saying&lt;/p&gt;

&lt;p&gt;        org.ops4j.pax.web.listening.addresses = 192.0.2.9&lt;/p&gt;

&lt;p&gt;With this configuration in place, the embedded server will match the connectors from its configuration file with those from the XML file, and only start the two connectors mentioned there.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12941" name="jetty.xml" size="6329" author="trozet" created="Wed, 13 Sep 2017 20:47:55 +0000"/>
                            <attachment id="12942" name="karaf.zip" size="67941" author="trozet" created="Wed, 13 Sep 2017 20:50:03 +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>9158</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=9158]]></customfieldvalue>

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

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