<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:26 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>[NETCONF-605] Support cache refresh without restart of ODL</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-605</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;In Kubernetes enivronment side load of yang models from devices that do not support ietf-netconf-monitorinig appears to be imporssible. Copying files into cache/schema on an nfs mount makes the files available in the container but upon restart of ODL a new container is created that does not see the yang files.&lt;/p&gt;

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

&lt;p&gt;Need a mechanism to recreate the cache index so that the side loaded models can be preserved across container re-creates&lt;/p&gt;</description>
                <environment></environment>
        <key id="31347">NETCONF-605</key>
            <summary>Support cache refresh without restart of ODL</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="bdfreeman1421">Brian Freeman</assignee>
                                    <reporter username="bdfreeman1421">Brian Freeman</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 Jan 2019 14:54:11 +0000</created>
                <updated>Wed, 7 Jul 2021 20:13:18 +0000</updated>
                                                                            <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="67701" author="cmanoj" created="Tue, 28 Jan 2020 08:45:11 +0000"  >&lt;p&gt;Hi Brian,&lt;/p&gt;

&lt;p&gt;We are not sure what you meant by &quot;new container&quot;. Upon ODL restart does it start a new docker container. In that case pointing the new container towards the proper nfs mount should solve the issue.&lt;/p&gt;

&lt;p&gt;From what i know, ODL restart which is within a docker container does not bring up a new filesystem, because the namespace is not deleted unless the docker container is deleted/removed.&lt;/p&gt;

&lt;p&gt;Or are you referring to any other container here?&lt;/p&gt;

&lt;p&gt;Please let us know your view.&lt;/p&gt;

&lt;p&gt;BR&lt;/p&gt;

&lt;p&gt;Manoj&lt;/p&gt;</comment>
                            <comment id="67828" author="cmanoj" created="Tue, 11 Feb 2020 09:38:30 +0000"  >&lt;p&gt;Hi Brian,&lt;/p&gt;

&lt;p&gt;A gentle reminder.&lt;/p&gt;

&lt;p&gt;BR&lt;/p&gt;

&lt;p&gt;Manoj&lt;/p&gt;</comment>
                            <comment id="67831" author="bdfreeman1421" created="Tue, 11 Feb 2020 14:07:08 +0000"  >&lt;p&gt;I tried to work around this problem by making the cache/schema directory part of an NFS mount but restarting ODL seemed to ignore the files in the directory. Perhaps the helm chart wasnt right but it seemed that ODL created the directory on boot rather than seeing one already there.&lt;/p&gt;

&lt;p&gt;I&apos;ll see if I can re-create the problem&lt;/p&gt;</comment>
                            <comment id="68136" author="jluhrsen" created="Thu, 21 May 2020 22:43:09 +0000"  >&lt;p&gt;These directories should remain by a simple karaf stop/start, so maybe something extra is happening in your setup?&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;$ ls -altr cache
total 0
drwxr-xr-x@  21 jamoluhrsen  staff   672 May 20 15:21 ..
drwxr-xr-x    2 jamoluhrsen  staff    64 May 20 15:21 schema
drwxr-xr-x    4 jamoluhrsen  staff   128 May 20 15:22 .
drwxr-xr-x  176 jamoluhrsen  staff  5632 May 20 15:35 34.222.248.49
$ ./bin/karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]
Karaf started in 7s. Bundle stats: 383 active, 385 total

    ________                       ________                .__  .__       .__     __
    \_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_
     /   |   \\____ \_/ __ \ /    \ |    |  \\__  \&amp;lt;   |  ||  | |  |/ ___\|  |  \   __\
    /    |    \  |_&amp;gt; &amp;gt;  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  &amp;gt;   Y  \  |
    \_______  /   __/ \___  &amp;gt;___|  /_______  (____  / ____||____/__\___  /|___|  /__|
            \/|__|        \/     \/        \/     \/\/            /_____/      \/


Hit &lt;span class=&quot;code-quote&quot;&gt;&apos;&amp;lt;tab&amp;gt;&apos;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a list of available commands
and &lt;span class=&quot;code-quote&quot;&gt;&apos;[cmd] --help&apos;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; help on a specific command.
Hit &lt;span class=&quot;code-quote&quot;&gt;&apos;&amp;lt;ctrl-d&amp;gt;&apos;&lt;/span&gt; or type &lt;span class=&quot;code-quote&quot;&gt;&apos;system:shutdown&apos;&lt;/span&gt; or &lt;span class=&quot;code-quote&quot;&gt;&apos;logout&apos;&lt;/span&gt; to shutdown OpenDaylight.

opendaylight-user@root&amp;gt;sleep 120
opendaylight-user@root&amp;gt;logout
$ ls -altr cache
total 0
drwxr-xr-x@  21 jamoluhrsen  staff   672 May 20 15:21 ..
drwxr-xr-x    2 jamoluhrsen  staff    64 May 20 15:21 schema
drwxr-xr-x    4 jamoluhrsen  staff   128 May 20 15:22 .
drwxr-xr-x  176 jamoluhrsen  staff  5632 May 20 15:35 34.222.248.49
$
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="69352" author="rovarga" created="Fri, 2 Jul 2021 20:40:51 +0000"  >&lt;p&gt;So the problem is that the cache directory is assumed to be a&#160; local directory with a single writer (i.e. it is populated through the exposed Cache&apos;s implementation).&lt;/p&gt;

&lt;p&gt;Strictly speaking this needs a lifecycle hook.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=bdfreeman1421&quot; class=&quot;user-hover&quot; rel=&quot;bdfreeman1421&quot;&gt;bdfreeman1421&lt;/a&gt; since Aluminium a refresh should be possible to affect by restarting this guy:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;opendaylight-user@root&amp;gt;scr:info org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
Component Description: org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
==========================================================================================
Class: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
Bundle: &#160;&#160;&#160;&#160;&#160;&#160;&#160;348 (org.opendaylight.netconf.sal-netconf-connector:2.0.0.SNAPSHOT)
Enabled: &#160;&#160;&#160;&#160;&#160;&#160;true
Immediate: &#160;&#160;&#160;&#160;true
Services: &#160;&#160;&#160;&#160;&#160;[org.opendaylight.netconf.sal.connect.api.SchemaResourceManager]
Scope: &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;singleton
Config PID(s): [org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager], Policy: optional
Base Props: &#160;&#160;&#160;(0 entries)

Component Configuration Id: 216
-------------------------------
State: &#160;&#160;&#160;&#160;&#160;&#160;&#160;ACTIVE
Service: &#160;&#160;&#160;&#160;&#160;434 [org.opendaylight.netconf.sal.connect.api.SchemaResourceManager]
Config Props: (2 entries)
 &#160;component.id&amp;lt;Long&amp;gt; = 216
 &#160;component.name&amp;lt;String&amp;gt; = org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
References: &#160;&#160;(total 1)
 &#160;- parserFactory: org.opendaylight.yangtools.yang.parser.api.YangParserFactory SATISFIED 1..1 static
 &#160;&#160;&#160;target=(*) scope=bundle (1 binding):
 &#160;&#160;&#160;* Bound to [305] from bundle 224 (org.opendaylight.yangtools.yang-parser-impl:7.0.3)

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;via:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;opendaylight-user@root&amp;gt;scr:disable org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
true
opendaylight-user@root&amp;gt;scr:enable org.opendaylight.netconf.sal.connect.impl.OSGiSchemaResourceManager
true
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and should be reflected in the log:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2021-07-02T22:38:10,172 | INFO &#160;| SCR Component Actor | OSGiSchemaResourceManager &#160;&#160;&#160;&#160;&#160;&#160;&#160;| 185 - org.opendaylight.netconf.sal-netconf-connector - 2.0.0.SNAPSHOT | Schema Resource Manager stopped
2021-07-02T22:38:15,228 | INFO &#160;| SCR Component Actor | OSGiSchemaResourceManager &#160;&#160;&#160;&#160;&#160;&#160;&#160;| 185 - org.opendaylight.netconf.sal-netconf-connector - 2.0.0.SNAPSHOT | Schema Resource Manager started
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;is that a sufficient non-restart? does it produce the desired result?&lt;/p&gt;</comment>
                            <comment id="69353" author="bdfreeman1421" created="Wed, 7 Jul 2021 20:13:18 +0000"  >&lt;p&gt;I think it would satisfy the no-reboot requriement (assuming the container works the way I think it does). Trying to test it now - I&apos;ll update the Jira with results.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="32605">NETCONF-672</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03mbr:</customfieldvalue>

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