<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:22:53 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>[NETVIRT-955] Subnet update with allocation-pools and no-allocation-pools does not reflect in Configuration DataStore</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-955</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Distro: distribution-karaf-0.6.0-Carbon.tar.gz &lt;br/&gt;
Openstack setup: carbon + ocata &lt;br/&gt;
ODL setup: 3 node cluster setup&lt;/p&gt;

&lt;p&gt;Steps:&lt;/p&gt;

&lt;p&gt;1. Create a network:&lt;br/&gt;
network create net1 --provider-network-type vxlan&lt;/p&gt;

&lt;p&gt;2. Create  a subnet:&lt;br/&gt;
subnet create --network net1 --allocation-pool start=10.0.0.20,end=10.0.0.100 --subnet-range 10.0.0.0/24 sub1 &lt;/p&gt;

&lt;p&gt;Set allocation pool&lt;br/&gt;
===================&lt;br/&gt;
3. Update subnet:&lt;br/&gt;
subnet set --allocation-pool start=10.0.0.101,end=10.0.0.200 sub1 &lt;/p&gt;

&lt;p&gt;Karaf logs:&lt;br/&gt;
Update Subnet notification handler is invoked Original: Subnet{getAllocationPools=[AllocationPools{getEnd=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.100&amp;#93;&lt;/span&gt;], getStart=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.20&amp;#93;&lt;/span&gt;], augmentations={}}], getCidr=IpPrefix [_ipv4Prefix=Ipv4Prefix &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.0/24&amp;#93;&lt;/span&gt;], getDnsNameservers=[], getGatewayIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.1&amp;#93;&lt;/span&gt;], getHostRoutes=[], getIpVersion=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.IpVersionV4, getName=sub1, getNetworkId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=a1159d34-fc70-4418-b980-b47103ca28b2&amp;#93;&lt;/span&gt;, getProjectId=9c9916b0cd944640a4286dbf148d5c6a, getRevisionNumber=2, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=9c9916b0-cd94-4640-a428-6dbf148d5c6a&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=fddc3173-1ee6-4e32-89d9-a7eeeac2bef1&amp;#93;&lt;/span&gt;, isEnableDhcp=true, augmentations={}}, Update: Subnet{getCidr=IpPrefix [_ipv4Prefix=Ipv4Prefix &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.0/24&amp;#93;&lt;/span&gt;], getDnsNameservers=[], getGatewayIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.1&amp;#93;&lt;/span&gt;], getHostRoutes=[], getIpVersion=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.IpVersionV4, getName=sub1, getNetworkId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=a1159d34-fc70-4418-b980-b47103ca28b2&amp;#93;&lt;/span&gt;, getRevisionNumber=3, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=9c9916b0-cd94-4640-a428-6dbf148d5c6a&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=fddc3173-1ee6-4e32-89d9-a7eeeac2bef1&amp;#93;&lt;/span&gt;, isEnableDhcp=true, augmentations={}}&lt;/p&gt;

&lt;p&gt;Set no-allocation pool&lt;br/&gt;
======================&lt;br/&gt;
4. Update subnet:&lt;br/&gt;
subnet set --allocation-pool start=10.0.0.101,end=10.0.0.200 --no-allocation-pool sub1 &lt;/p&gt;

&lt;p&gt;Karaf logs:&lt;br/&gt;
Update Subnet notification handler is invoked Original: Subnet{getCidr=IpPrefix [_ipv4Prefix=Ipv4Prefix &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.0/24&amp;#93;&lt;/span&gt;], getDnsNameservers=[], getGatewayIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.1&amp;#93;&lt;/span&gt;], getHostRoutes=[], getIpVersion=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.IpVersionV4, getName=sub1, getNetworkId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=a1159d34-fc70-4418-b980-b47103ca28b2&amp;#93;&lt;/span&gt;, getRevisionNumber=3, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=9c9916b0-cd94-4640-a428-6dbf148d5c6a&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=fddc3173-1ee6-4e32-89d9-a7eeeac2bef1&amp;#93;&lt;/span&gt;, isEnableDhcp=true, augmentations={}}, Update: Subnet{getCidr=IpPrefix [_ipv4Prefix=Ipv4Prefix &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.0/24&amp;#93;&lt;/span&gt;], getDnsNameservers=[], getGatewayIp=IpAddress [_ipv4Address=Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.0.0.1&amp;#93;&lt;/span&gt;], getHostRoutes=[], getIpVersion=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.IpVersionV4, getName=sub1, getNetworkId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=a1159d34-fc70-4418-b980-b47103ca28b2&amp;#93;&lt;/span&gt;, getRevisionNumber=4, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=9c9916b0-cd94-4640-a428-6dbf148d5c6a&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=fddc3173-1ee6-4e32-89d9-a7eeeac2bef1&amp;#93;&lt;/span&gt;, isEnableDhcp=true, augmentations={}}&lt;/p&gt;

&lt;p&gt;Observation:&lt;br/&gt;
1. In both updates, the allocation-pools values are not modified. &lt;br/&gt;
Whereas, while giving the &quot;openstack subnet show sub1&quot; command, the allocation pools are modified with updated values.&lt;br/&gt;
PFA for Datastore and Openstack show command.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20876">NETVIRT-955</key>
            <summary>Subnet update with allocation-pools and no-allocation-pools does not reflect in Configuration DataStore</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</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="HariPrasidh">Hari Prasidh</assignee>
                                    <reporter username="arthi.b@hcl.com">Arthi Bhattacharjee</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Oct 2017 09:24:38 +0000</created>
                <updated>Wed, 31 Jan 2018 07:03:53 +0000</updated>
                            <resolved>Wed, 31 Jan 2018 07:03:37 +0000</resolved>
                                    <version>Carbon</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                                                                <comments>
                            <comment id="38499" author="arthi.b@hcl.com" created="Fri, 13 Oct 2017 09:24:38 +0000"  >&lt;p&gt;Attachment allocation_pool_DS.txt has been added with description: DataStore_and_Openstack_show_command&lt;/p&gt;</comment>
                            <comment id="38500" author="arthi.b@hcl.com" created="Fri, 13 Oct 2017 09:25:43 +0000"  >&lt;p&gt;Attachment allocation_pool_logs.zip has been added with description: Karaf logs&lt;/p&gt;</comment>
                            <comment id="60012" author="hariprasidh" created="Fri, 10 Nov 2017 10:56:26 +0000"  >&lt;p&gt;I have tested the same scenario in pike/nitrogen and have observed during subnet creation, the Json request made with &quot;allocation_pools&quot; from networking-odl where as in subnet update json request made without &quot;allocation_pools&quot;.&lt;/p&gt;

&lt;p&gt;please find the attachment for server log. &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/attachment/14222/14222_server.log&quot; title=&quot;server.log attached to NETVIRT-955&quot;&gt;server.log&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;Subnet create:&lt;br/&gt;
----------------&lt;br/&gt;
2017-11-10 18:03:28.469 7256 INFO networking_odl.journal.journal &lt;span class=&quot;error&quot;&gt;&amp;#91;req-942d2a71-0534-4f77-a901-046e63f7e52f - - - - -&amp;#93;&lt;/span&gt; Processing - create subnet 45a46065-aa42-41a2-ac72-1a3f2013da83&lt;br/&gt;
2017-11-10 18:03:28.469 7256 DEBUG networking_odl.common.client &lt;span class=&quot;error&quot;&gt;&amp;#91;req-942d2a71-0534-4f77-a901-046e63f7e52f - - - - -&amp;#93;&lt;/span&gt; Sending METHOD (post) URL (&lt;a href=&quot;http://192.168.70.111:8080/controller/nb/v2/neutron/subnets&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.70.111:8080/controller/nb/v2/neutron/subnets&lt;/a&gt;) JSON ({&lt;br/&gt;
  &quot;subnet&quot;: {&lt;br/&gt;
    &quot;updated_at&quot;: &quot;2017-11-10T23:03:28Z&quot;, &lt;br/&gt;
    &quot;ipv6_ra_mode&quot;: null, &lt;br/&gt;
    &quot;allocation_pools&quot;: [&lt;/p&gt;
      {
        &quot;start&quot;: &quot;10.0.0.20&quot;, 
        &quot;end&quot;: &quot;10.0.0.100&quot;
      }
&lt;p&gt;    ], &lt;br/&gt;
    &quot;host_routes&quot;: [], &lt;br/&gt;
    &quot;revision_number&quot;: 0, &lt;br/&gt;
    &quot;ipv6_address_mode&quot;: null, &lt;br/&gt;
    &quot;id&quot;: &quot;45a46065-aa42-41a2-ac72-1a3f2013da83&quot;, &lt;br/&gt;
    &quot;dns_nameservers&quot;: [], &lt;br/&gt;
    &quot;gateway_ip&quot;: &quot;10.0.0.1&quot;, &lt;br/&gt;
    &quot;shared&quot;: false, &lt;br/&gt;
    &quot;project_id&quot;: &quot;6897fe14713d429f9dc88cf878f80a11&quot;, &lt;br/&gt;
    &quot;description&quot;: &quot;&quot;, &lt;br/&gt;
    &quot;tags&quot;: [], &lt;br/&gt;
    &quot;cidr&quot;: &quot;10.0.0.0/24&quot;, &lt;br/&gt;
    &quot;service_types&quot;: [], &lt;br/&gt;
    &quot;name&quot;: &quot;sub1&quot;, &lt;br/&gt;
    &quot;enable_dhcp&quot;: true, &lt;br/&gt;
    &quot;network_id&quot;: &quot;1bbbb3fc-34bd-4c9a-b583-8bf604a88243&quot;, &lt;br/&gt;
    &quot;tenant_id&quot;: &quot;6897fe14713d429f9dc88cf878f80a11&quot;, &lt;br/&gt;
    &quot;created_at&quot;: &quot;2017-11-10T23:03:28Z&quot;, &lt;br/&gt;
    &quot;ip_version&quot;: 4&lt;br/&gt;
  }&lt;br/&gt;
}) request /usr/lib/python2.7/site-packages/networking_odl/common/client.py:89&lt;/p&gt;


&lt;p&gt;Subnetupdate:&lt;br/&gt;
---------------&lt;br/&gt;
2017-11-10 18:04:43.891 7262 INFO networking_odl.journal.journal &lt;span class=&quot;error&quot;&gt;&amp;#91;req-bfc04f5b-f8f2-403b-8acf-69eadb2c46f0 - - - - -&amp;#93;&lt;/span&gt; Processing - update subnet 45a46065-aa42-41a2-ac72-1a3f2013da83&lt;br/&gt;
2017-11-10 18:04:43.893 7262 DEBUG networking_odl.common.client &lt;span class=&quot;error&quot;&gt;&amp;#91;req-bfc04f5b-f8f2-403b-8acf-69eadb2c46f0 - - - - -&amp;#93;&lt;/span&gt; Sending METHOD (put) URL (&lt;a href=&quot;http://192.168.70.111:8080/controller/nb/v2/neutron/subnets/45a46065-aa42-41a2-ac72-1a3f2013da83&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.70.111:8080/controller/nb/v2/neutron/subnets/45a46065-aa42-41a2-ac72-1a3f2013da83&lt;/a&gt;) JSON ({&lt;br/&gt;
  &quot;subnet&quot;: &lt;/p&gt;
{
    &quot;updated_at&quot;: &quot;2017-11-10T23:04:43Z&quot;, 
    &quot;ipv6_ra_mode&quot;: null, 
    &quot;host_routes&quot;: [], 
    &quot;revision_number&quot;: 1, 
    &quot;ipv6_address_mode&quot;: null, 
    &quot;dns_nameservers&quot;: [], 
    &quot;gateway_ip&quot;: &quot;10.0.0.1&quot;, 
    &quot;shared&quot;: false, 
    &quot;description&quot;: &quot;&quot;, 
    &quot;tags&quot;: [], 
    &quot;service_types&quot;: [], 
    &quot;name&quot;: &quot;sub1&quot;, 
    &quot;enable_dhcp&quot;: true, 
    &quot;created_at&quot;: &quot;2017-11-10T23:03:28Z&quot;
  }
&lt;p&gt;}) request /usr/lib/python2.7/site-packages/networking_odl/common/client.py:89&lt;/p&gt;

&lt;p&gt;If am not wrong, the update request should made with the &quot;allocation-pool&quot;, which  was missing above, so that config data store not update with &quot;allocation-pools&quot;.&lt;/p&gt;</comment>
                            <comment id="60450" author="yamahata" created="Wed, 13 Dec 2017 01:25:38 +0000"  >&lt;p&gt;It looks like an issue in netwokring-odl or openstack neutron. Let me dig into it.&lt;/p&gt;

&lt;p&gt;Also can you get openstack neutron log with debug=true and with logger ml2 driver enabled?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="60451" author="yamahata" created="Wed, 13 Dec 2017 01:38:47 +0000"  >&lt;p&gt;Can you please try &lt;a href=&quot;https://review.openstack.org/#/c/527556/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.openstack.org/#/c/527556/&lt;/a&gt;&#160;?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="60473" author="hariprasidh" created="Thu, 14 Dec 2017 09:37:54 +0000"  >&lt;p&gt;I&apos;ve tested with above patch and observed issue is not reproduced .&lt;br/&gt;
Thanks&#160; for&#160;your&#160;patch.&lt;/p&gt;</comment>
                            <comment id="60889" author="gvrangan" created="Wed, 31 Jan 2018 07:03:53 +0000"  >&lt;p&gt;Fixed in networking-odl&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12620" name="allocation_pool_DS.txt" size="40614" author="arthi.b@hcl.com" created="Fri, 13 Oct 2017 09:24:38 +0000"/>
                            <attachment id="12621" name="allocation_pool_logs.zip" size="387549" author="arthi.b@hcl.com" created="Fri, 13 Oct 2017 09:25:43 +0000"/>
                            <attachment id="14222" name="server.log" size="97439" author="HariPrasidh" created="Fri, 10 Nov 2017 10:55:21 +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>9286</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=9286]]></customfieldvalue>

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

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