<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:12 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-1306] PUT to create config-subsytem service does not recognize odl-tcpmd5-cfg:key-access-factory</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1306</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;The Tcpmd5 guide for Bgpcep here&lt;br/&gt;
&lt;a href=&quot;https://wiki.opendaylight.org/view/BGP_LS_PCEP:TCP_MD5_Guide#RESTCONF_Configuration&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/BGP_LS_PCEP:TCP_MD5_Guide#RESTCONF_Configuration&lt;/a&gt;&lt;br/&gt;
uses POST, but that can fail when data is already created, so I was trying to use PUT instead, which needs keys in URI.&lt;/p&gt;

&lt;p&gt;I tried the following curl command. It is in bash, so data is in single quotes, and single quote inside is written as &apos;&quot;&apos;&quot;&apos;.&lt;/p&gt;

&lt;p&gt;curl -v -X PUT -H &quot;Content-Type:application/xml&quot; -d &apos;&amp;lt;service xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&lt;br/&gt;
 &amp;lt;type xmlns:x=&quot;urn:opendaylight:params:xml:ns:yang:controller:tcpmd5:cfg&quot;&amp;gt;x:key-access-factory&amp;lt;/type&amp;gt;&lt;br/&gt;
 &amp;lt;instance&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;global-key-access-factory&amp;lt;/name&amp;gt;&lt;br/&gt;
  &amp;lt;provider&amp;gt;/modules/module&lt;span class=&quot;error&quot;&gt;&amp;#91;type=&amp;#39;&amp;quot;&amp;#39;&amp;quot;&amp;#39;native-key-access-factory&amp;#39;&amp;quot;&amp;#39;&amp;quot;&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;name=&amp;#39;&amp;quot;&amp;#39;&amp;quot;&amp;#39;global-key-access-factory&amp;#39;&amp;quot;&amp;#39;&amp;quot;&amp;#39;&amp;#93;&lt;/span&gt;&amp;lt;/provider&amp;gt;&lt;br/&gt;
 &amp;lt;/instance&amp;gt;&lt;br/&gt;
&amp;lt;/service&amp;gt;&apos; 127.0.0.1:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:services/service/odl-tcpmd5-cfg:key-access-factory/config:instance/global-key-access-factory&lt;/p&gt;

&lt;p&gt;Reply is code 400 with this text:&lt;br/&gt;
{&quot;errors&quot;:{&quot;error&quot;:[&lt;/p&gt;
{&quot;error-type&quot;:&quot;protocol&quot;,&quot;error-tag&quot;:&quot;malformed-message&quot;,&quot;error-message&quot;:&quot;Error parsing input: Unknown child(ren) node(s) detected, identified by: (urn:opendaylight:params:xml:ns:yang:controller:config)type, in: list instance&quot;}
&lt;p&gt;]}}&lt;/p&gt;

&lt;p&gt;Is it a bug or am I doing something wrong?&lt;/p&gt;

&lt;p&gt;The underlying exceptions are only visible on DEBUG level in karaf.log:&lt;br/&gt;
2015-05-12 16:22:06,062 | DEBUG | y-access-factory | RestCodec                        | 283 - org.opendaylight.controller.sal-rest-connector - 1.2.0.SNAPSHOT | Value is not instance of IdentityrefTypeDefinition but is class java.lang.String. Therefore NULL is used as translation of  - odl-tcpmd5-cfg:key-access-factory&lt;br/&gt;
2015-05-12 16:22:06,066 | DEBUG | y-access-factory | XmlNormalizedNodeBodyReader      | 283 - org.opendaylight.controller.sal-rest-connector - 1.2.0.SNAPSHOT | Error parsing xml input&lt;br/&gt;
java.lang.IllegalStateException: Unknown child(ren) node(s) detected, identified by: (urn:opendaylight:params:xml:ns:yang:controller:config)type, in: list instance&lt;br/&gt;
        at com.google.common.base.Preconditions.checkState(Preconditions.java:197)&lt;span class=&quot;error&quot;&gt;&amp;#91;37:com.google.guava:18.0.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.yangtools.yang.data.impl.schema.SchemaUtils.findSchemaForChild(SchemaUtils.java:100)&lt;span class=&quot;error&quot;&gt;&amp;#91;74:org.opendaylight.yangtools.yang-data-impl:0.7.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Note that the same log contains segment suggesting that ODL knows the Yang model I was referring to:&lt;br/&gt;
2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | NetconfDeviceCommunicator        | 197 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice&lt;/p&gt;
{controller-config}: Message received &amp;lt;rpc-reply xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;m-18&quot;&amp;gt;&lt;br/&gt;
&amp;lt;data xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;// vi: set smarttab et sw=4 tabstop=4:&lt;br/&gt;
module odl-tcpmd5-cfg {&lt;br/&gt;
    yang-version 1;&lt;br/&gt;
    namespace &quot;urn:opendaylight:params:xml:ns:yang:controller:tcpmd5:cfg&quot;;&lt;br/&gt;
    prefix &quot;tcpmd5&quot;;&lt;br/&gt;
&lt;br/&gt;
    import config { prefix config; revision-date 2013-04-05; }&lt;br/&gt;
&lt;br/&gt;
    organization &quot;Cisco Systems, Inc.&quot;;&lt;br/&gt;
&lt;br/&gt;
    contact &quot;Robert Varga &amp;lt;rovarga@cisco.com&amp;gt;&quot;;&lt;br/&gt;
&lt;br/&gt;
    description&lt;br/&gt;
        &quot;This module contains the base YANG definitions for&lt;br/&gt;
         TCP MD5 Signature option.&lt;br/&gt;
&lt;br/&gt;
        Copyright (c)2014 Cisco Systems, Inc. All rights reserved.;&lt;br/&gt;
&lt;br/&gt;
        This program and the accompanying materials are made available&lt;br/&gt;
        under the terms of the Eclipse Public License v1.0 which&lt;br/&gt;
        accompanies this distribution, and is available at&lt;br/&gt;
        &lt;a href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;&quot;;&lt;br/&gt;
&lt;br/&gt;
    revision &quot;2014-04-27&quot; {
        description
            &quot;Initial revision&quot;;
    }&lt;br/&gt;
&lt;br/&gt;
    identity key-access-factory {
        description
            &quot;Service representing a way for accessing key informtion.&quot;;

        base &quot;config:service-type&quot;;
        config:java-class &quot;org.opendaylight.tcpmd5.api.KeyAccessFactory&quot;;
    }&lt;br/&gt;
&lt;br/&gt;
    typedef rfc2385-key {&lt;br/&gt;
        type string {
            length 1..80;
        }&lt;br/&gt;
    }&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
&amp;lt;/data&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;br/&gt;
&lt;br/&gt;
2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | AbstractObjectCache              | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for QNameModule{ns=urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring, rev=2010-10-04}&lt;br/&gt;
2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | AbstractObjectCache              | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)data&lt;br/&gt;
2015-05-12 16:20:27,775 | DEBUG | oupCloseable-6-1 | nfRemoteSchemaYangSourceProvider | 197 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice{controller-config}
&lt;p&gt;: YANG Schema successfully retrieved for odl-tcpmd5-cfg:Optional.of(2014-04-27)&lt;br/&gt;
2015-05-12 16:20:27,776 | DEBUG | sing-executor-11 | AbstractObjectCache              | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource@3ca77319&lt;br/&gt;
2015-05-12 16:20:27,776 | DEBUG | sing-executor-11 | AbstractObjectCache              | 41 - org.opendaylight.yangtools.object-cache-api - 0.7.0.SNAPSHOT | Looking up reference for org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource@cf79e2c9&lt;br/&gt;
2015-05-12 16:20:27,776 | DEBUG | sing-executor-11 | TextToASTTransformer             | 80 - org.opendaylight.yangtools.yang-parser-impl - 0.7.0.SNAPSHOT | Model NetconfYangTextSchemaSource{identifier=SourceIdentifier &lt;span class=&quot;error&quot;&gt;&amp;#91;name=odl-tcpmd5-cfg@2014-04-27&amp;#93;&lt;/span&gt;, device=RemoteDevice{controller-config}} parsed successfully&lt;br/&gt;
2015-05-12 16:20:27,776 | DEBUG | sing-executor-11 | TextToASTTransformer             | 80 - org.opendaylight.yangtools.yang-parser-impl - 0.7.0.SNAPSHOT | Model NetconfYangTextSchemaSource{identifier=SourceIdentifier &lt;span class=&quot;error&quot;&gt;&amp;#91;name=odl-tcpmd5-cfg@2014-04-27&amp;#93;&lt;/span&gt;, device=RemoteDevice{controller-config}} validated successfully&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25860">CONTROLLER-1306</key>
            <summary>PUT to create config-subsytem service does not recognize odl-tcpmd5-cfg:key-access-factory</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 May 2015 17:16:31 +0000</created>
                <updated>Thu, 19 Oct 2017 21:26:41 +0000</updated>
                            <resolved>Wed, 13 May 2015 18:34:22 +0000</resolved>
                                    <version>Post-Helium</version>
                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="50588" author="tony.tkacik@gmail.com" created="Wed, 13 May 2015 10:22:49 +0000"  >&lt;p&gt;YOu want to PUT only&lt;/p&gt;

&lt;p&gt; &amp;lt;instance xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;name&amp;gt;global-key-access-factory&amp;lt;/name&amp;gt;&lt;br/&gt;
  &amp;lt;provider&amp;gt;/modules/module&lt;span class=&quot;error&quot;&gt;&amp;#91;type=&amp;quot;native-key-access-factory&amp;quot;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;name=&amp;quot;global-key-access-factory&amp;quot;&amp;#93;&lt;/span&gt;&amp;lt;/provider&amp;gt;&lt;br/&gt;
 &amp;lt;/instance&amp;gt;&lt;/p&gt;</comment>
                            <comment id="50589" author="vrpolak" created="Wed, 13 May 2015 18:34:22 +0000"  >&lt;p&gt;Thanks Tony, that works.&lt;br/&gt;
This bug is user error, ODL behaves correctly, so marking as INVALID.&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>3188</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=3188]]></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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02prb:</customfieldvalue>

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