<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:22 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>[CONTROLLER-1368] Restconf drops namespace for target-rib type (BGP application peer config)</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1368</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Here is the link describing how to configure application RIB: &lt;a href=&quot;https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#BGP_Application_Peer&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#BGP_Application_Peer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the data is added to 41-example-bgp.xml config file, module is created correctly. But if restconf PUT is used to create (or update) the module, using the following command:&lt;br/&gt;
curl -v -X PUT -H &quot;Content-Type:application/xml&quot; -d &apos;&amp;lt;module xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&lt;br/&gt;
 &amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;prefix:bgp-application-peer&amp;lt;/type&amp;gt;&lt;br/&gt;
 &amp;lt;name&amp;gt;example-bgp-peer-app&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;bgp-peer-id xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;22.22.22.22&amp;lt;/bgp-peer-id&amp;gt;&lt;br/&gt;
 &amp;lt;target-rib xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt; &lt;br/&gt;
  &amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;prefix:rib-instance&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;example-bgp-rib&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/target-rib&amp;gt;&lt;br/&gt;
 &amp;lt;application-rib-id xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;example-app-rib&amp;lt;/application-rib-id&amp;gt;&lt;br/&gt;
 &amp;lt;data-broker xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;type xmlns:sal=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom&quot;&amp;gt;sal:dom-async-data-broker&amp;lt;/type&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;pingpong-broker&amp;lt;/name&amp;gt;&lt;br/&gt;
 &amp;lt;/data-broker&amp;gt;&lt;br/&gt;
&amp;lt;/module&amp;gt;&apos; 127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-bgp-rib-impl-cfg:bgp-application-peer/example-bgp-peer-app&lt;/p&gt;

&lt;p&gt;it returns http status 500. Here is segment of karaf.log:&lt;/p&gt;

&lt;p&gt;2015-06-11 13:39:39,719 | WARN  | oupCloseable-6-1 | NetconfDeviceCommunicator        | 240 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice&lt;/p&gt;
{controller-config}
&lt;p&gt;: Error reply from remote device, request: &amp;lt;rpc message-id=&quot;m-2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;edit-config&amp;gt;&lt;br/&gt;
&amp;lt;target&amp;gt;&lt;br/&gt;
&amp;lt;candidate/&amp;gt;&lt;br/&gt;
&amp;lt;/target&amp;gt;&lt;br/&gt;
&amp;lt;default-operation&amp;gt;none&amp;lt;/default-operation&amp;gt;&lt;br/&gt;
&amp;lt;config&amp;gt;&lt;br/&gt;
&amp;lt;modules xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&lt;br/&gt;
&amp;lt;module xmlns:a=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; a:operation=&quot;replace&quot;&amp;gt;&lt;br/&gt;
&amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;x:bgp-application-peer&amp;lt;/type&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;example-bgp-peer-app&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;application-rib-id xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;example-app-rib&amp;lt;/application-rib-id&amp;gt;&lt;br/&gt;
&amp;lt;data-broker xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
&amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom&quot;&amp;gt;x:dom-async-data-broker&amp;lt;/type&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;pingpong-broker&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;/data-broker&amp;gt;&lt;br/&gt;
&amp;lt;bgp-peer-id xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;22.22.22.22&amp;lt;/bgp-peer-id&amp;gt;&lt;br/&gt;
&amp;lt;target-rib xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;&lt;br/&gt;
&amp;lt;type&amp;gt;rib-instance&amp;lt;/type&amp;gt;&lt;br/&gt;
&amp;lt;name&amp;gt;example-bgp-rib&amp;lt;/name&amp;gt;&lt;br/&gt;
&amp;lt;/target-rib&amp;gt;&lt;br/&gt;
&amp;lt;/module&amp;gt;&lt;br/&gt;
&amp;lt;/modules&amp;gt;&lt;br/&gt;
&amp;lt;/config&amp;gt;&lt;br/&gt;
&amp;lt;/edit-config&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;br/&gt;
, response: &amp;lt;rpc-reply xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;m-2&quot;&amp;gt;&lt;br/&gt;
&amp;lt;rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;error-type&amp;gt;application&amp;lt;/error-type&amp;gt;&lt;br/&gt;
&amp;lt;error-tag&amp;gt;operation-failed&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
&amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;&lt;br/&gt;
&amp;lt;error-message&amp;gt;Unexpected error&amp;lt;/error-message&amp;gt;&lt;br/&gt;
&amp;lt;error-info&amp;gt;&lt;br/&gt;
&amp;lt;error&amp;gt;java.lang.IllegalStateException: Service type value not prefixed with namespace&amp;lt;/error&amp;gt;&lt;br/&gt;
&amp;lt;/error-info&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/p&gt;


&lt;p&gt;The log shows &amp;lt;type&amp;gt;rib-instance&amp;lt;/type&amp;gt;, which would explain which value was not prefixed, but the curl command did have prefix there: &amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl&quot;&amp;gt;prefix:rib-instance&amp;lt;/type&amp;gt;&lt;br/&gt;
It seems the prefix was dropped somewhere in restconf (maybe because target-rib has the same prefix?) but netconf (or config) subsystem still requires it.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25922">CONTROLLER-1368</key>
            <summary>Restconf drops namespace for target-rib type (BGP application peer config)</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="mmarsale@cisco.com">Maros Marsalek</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Jun 2015 14:11:37 +0000</created>
                <updated>Tue, 16 Jun 2015 11:34:05 +0000</updated>
                            <resolved>Tue, 16 Jun 2015 11:34:05 +0000</resolved>
                                    <version>Lithium</version>
                                                    <component>config</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="50833" author="mmarsale@cisco.com" created="Thu, 11 Jun 2015 14:20:12 +0000"  >&lt;p&gt;Looks like config fails to extract default namespace for identityrefs after recent update to identityref serialization (prefix is left out if possible).&lt;/p&gt;</comment>
                            <comment id="50834" author="mmarsale@cisco.com" created="Thu, 11 Jun 2015 15:05:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/22374/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/22374/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="50835" author="vrpolak" created="Tue, 16 Jun 2015 11:34:05 +0000"  >&lt;p&gt;Verified to be fixed on Lithium RC1 2015-06-16 build.&lt;/p&gt;

&lt;p&gt;The PUT curl from description does replace config as expected.&lt;br/&gt;
It returns no text response with HTTP status code 200 (as opposed to 204), but that is not an issue within description of this bug.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>3675</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=3675]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10377"><![CDATA[Lithium-RC2]]></customfieldvalue>

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

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