<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:25:41 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>[NEUTRON-149] Security group and security rule events are not synced</title>
                <link>https://jira.opendaylight.org/browse/NEUTRON-149</link>
                <project id="10145" key="NEUTRON">neutron</project>
                    <description>&lt;p&gt;In some cases, mostly when using scripts that use python API and perform stress tests, we&apos;ve noticed that security groups and rules calls are not synced and so they are sometimes received disordered. &lt;/p&gt;

&lt;p&gt;Specifically:&lt;/p&gt;

&lt;p&gt;Security rules are created prior to security groups.&lt;br/&gt;
Security groups are deleted prior to security rules.&lt;/p&gt;

&lt;p&gt;This can be seen in the log below:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;PLEASE NOTICE LINES STARTING WITH &apos;#&apos;&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;PROBLEMS WHEN CREATING DATA&lt;/li&gt;
&lt;/ol&gt;



&lt;ol&gt;
	&lt;li&gt;A RULE IS CREATED EVEN THOUGH SECURITY GROUP DOES NOT EXIST YET&lt;br/&gt;
2017-03-22 11:20:06,227 | TRACE | on-dispatcher-70 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | created securityRule - SecurityRule{getDirection=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.DirectionIngress, getEthertype=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.EthertypeV6, getRemoteGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=95d74f3d-d5d9-4250-a78b-b8d6b2b5f8a9&amp;#93;&lt;/span&gt;, getSecurityGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=95d74f3d-d5d9-4250-a78b-b8d6b2b5f8a9&amp;#93;&lt;/span&gt;, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=d25961e5-b2a3-4767-a46d-59ed3e0c647c&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=26abf590-0383-4e24-90b3-ac7c3f581ec9&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;GBP HAS TO CACHE THIS RULE AND PROCESS IT AFTER THE GROUP IS CREATED&lt;br/&gt;
2017-03-22 11:20:06,227 | WARN  | on-dispatcher-70 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | Security group of security rule SecurityRuleKey [_uuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=26abf590-0383-4e24-90b3-ac7c3f581ec9&amp;#93;&lt;/span&gt;] does not exist yet. The rule will be processedwhen the missing security group is created.&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;NOW THE GROUP IS CREATED&lt;br/&gt;
2017-03-22 11:20:06,242 | TRACE | on-dispatcher-63 | NeutronSecurityGroupAware        | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | created securityGroup - SecurityGroup{getName=default, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=d25961e5-b2a3-4767-a46d-59ed3e0c647c&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=95d74f3d-d5d9-4250-a78b-b8d6b2b5f8a9&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;GBP PROCESSES CACHED SECURITY RULE&lt;br/&gt;
2017-03-22 11:20:06,264 | TRACE | on-dispatcher-63 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | Flushing pending security rule SecurityRule{getDirection=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.DirectionIngress, getEthertype=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.EthertypeV6, getRemoteGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=95d74f3d-d5d9-4250-a78b-b8d6b2b5f8a9&amp;#93;&lt;/span&gt;, getSecurityGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=95d74f3d-d5d9-4250-a78b-b8d6b2b5f8a9&amp;#93;&lt;/span&gt;, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=d25961e5-b2a3-4767-a46d-59ed3e0c647c&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=26abf590-0383-4e24-90b3-ac7c3f581ec9&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/li&gt;
&lt;/ol&gt;



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


&lt;ol&gt;
	&lt;li&gt;PROBLEMS WHEN DELETING DATA&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;CREATED RULE A IN GROUP G&lt;br/&gt;
2017-03-22 11:12:28,294 | TRACE | on-dispatcher-40 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | created securityRule - SecurityRule{getDirection=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.DirectionEgress, getEthertype=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.EthertypeV4, getSecurityGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=8742b1d1-551d-46e8-96d4-62343beb2dbd&amp;#93;&lt;/span&gt;, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=46eb8ea4-ef3a-4a05-a768-d0f53ac191fd&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=1816dd6b-42c2-4cbf-ad6b-88fc301a0cde&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;...&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;GROUP G IS REMOVED PRIOR TO RULE A&lt;br/&gt;
2017-03-22 11:12:28,328 | TRACE | on-dispatcher-40 | NeutronSecurityGroupAware        | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | deleted securityGroup - SecurityGroup{getName=CreateProjectUserTests-41f5c185-367f-43b-name, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=46eb8ea4-ef3a-4a05-a768-d0f53ac191fd&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=8742b1d1-551d-46e8-96d4-62343beb2dbd&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;GBP HAS TO CACHE GROUP G AND REMOVE IT LATER&lt;br/&gt;
2017-03-22 11:12:28,329 | WARN  | on-dispatcher-40 | NeutronSecurityGroupAware        | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | Cannot remove security group SecurityGroupKey [_uuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=8742b1d1-551d-46e8-96d4-62343beb2dbd&amp;#93;&lt;/span&gt;] before removing last security rule.&lt;br/&gt;
2017-03-22 11:12:28,329 | TRACE | on-dispatcher-40 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | Caching pending deleted security group SecurityGroupKey [_uuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=8742b1d1-551d-46e8-96d4-62343beb2dbd&amp;#93;&lt;/span&gt;]&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;#NOW THE RULE A IS DELETED, IT SHOULD HAVE BEEN BEFORE REMOVING SECURITY GROUP G&lt;br/&gt;
2017-03-22 11:12:28,329 | TRACE | on-dispatcher-40 | NeutronSecurityRuleAware         | 327 - org.opendaylight.groupbasedpolicy.neutron-mapper - 0.5.0.SNAPSHOT | deleted securityRule - SecurityRule{getDirection=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.DirectionEgress, getEthertype=class org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.EthertypeV4, getSecurityGroupId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=8742b1d1-551d-46e8-96d4-62343beb2dbd&amp;#93;&lt;/span&gt;, getTenantId=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=46eb8ea4-ef3a-4a05-a768-d0f53ac191fd&amp;#93;&lt;/span&gt;, getUuid=Uuid &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=1816dd6b-42c2-4cbf-ad6b-88fc301a0cde&amp;#93;&lt;/span&gt;, augmentations={}}&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26711">NEUTRON-149</key>
            <summary>Security group and security rule events are not synced</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="tcechval">Tomas Cechvala</assignee>
                                    <reporter username="tcechval">Tomas Cechvala</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Mar 2017 09:50:53 +0000</created>
                <updated>Wed, 4 Jul 2018 06:23:13 +0000</updated>
                                            <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="53632" author="yamahata" created="Fri, 24 Mar 2017 15:29:08 +0000"  >&lt;p&gt;It looks like networking-odl problem.&lt;br/&gt;
several questions to clarify.&lt;br/&gt;
What version of networking-od? Is v2driver used?&lt;/p&gt;

&lt;p&gt;creation case:&lt;br/&gt;
Does this happen only with default security group?&lt;br/&gt;
When neutron network is created, automatically default security group and rules are created. the name==default indicates that.&lt;/p&gt;

&lt;p&gt;deletion case:&lt;br/&gt;
Does this happend when rule is not deleted explicity via neutron API?&lt;br/&gt;
Remaining rule under group is automatically deleted when group is deleted.&lt;br/&gt;
I suspect this is the case and the cause is the following line.&lt;br/&gt;
the logic of rule auto deletion needs to be done early.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.openstack.org/gitweb?p=openstack/networking-odl.git;a=blob;f=networking_odl/ml2/mech_driver_v2.py;h=4622f28e0db262c8866322219673a42cc7ca19b8;hb=HEAD#l243&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.openstack.org/gitweb?p=openstack/networking-odl.git;a=blob;f=networking_odl/ml2/mech_driver_v2.py;h=4622f28e0db262c8866322219673a42cc7ca19b8;hb=HEAD#l243&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53633" author="yamahata" created="Fri, 24 Mar 2017 16:49:23 +0000"  >&lt;p&gt;Regarding to sg rule deletion, can you please give the following patch a try?&lt;br/&gt;
&lt;a href=&quot;https://review.openstack.org/#/c/449727/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.openstack.org/#/c/449727/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53634" author="yamahata" created="Fri, 24 Mar 2017 19:10:51 +0000"  >&lt;p&gt;Regarding creation, currently dependency validator for SG and SGRule is missing.&lt;br/&gt;
&lt;a href=&quot;https://bugs.opendaylight.org/show_bug.cgi?id=8069&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.opendaylight.org/show_bug.cgi?id=8069&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53635" author="yamahata" created="Fri, 24 Mar 2017 19:44:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://bugs.launchpad.net/networking-odl/+bug/1660911&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.launchpad.net/networking-odl/+bug/1660911&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53636" author="yamahata" created="Fri, 24 Mar 2017 19:54:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://review.openstack.org/#/c/449800/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.openstack.org/#/c/449800/&lt;/a&gt;&lt;br/&gt;
this experimental patch is for sg/sgrule creation.&lt;/p&gt;</comment>
                            <comment id="53637" author="tcechval@cisco.com" created="Tue, 28 Mar 2017 10:14:00 +0000"  >&lt;p&gt;Isaku,&lt;/p&gt;

&lt;p&gt;thank you for looking at this in such short notice.&lt;/p&gt;

&lt;p&gt;this was observed by running the following test script&lt;br/&gt;
/home/opnfv/repos/functest/functest/ci/run_tests.py -r&lt;br/&gt;
&lt;a href=&quot;https://github.com/opnfv/functest/blob/master/functest/ci/run_tests.py&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opnfv/functest/blob/master/functest/ci/run_tests.py&lt;/a&gt;&lt;br/&gt;
which runs multiple test tiers in our lab.&lt;br/&gt;
In this case we currently rely on karaf log when investigating, so we don&apos;t have clear answer how to replicate this yet.&lt;/p&gt;

&lt;p&gt;We use v2driver and we rely on stable/newton. I was trying to cherry pick your patches manually, but the corresponding files look different in master vs stable/newton.&lt;/p&gt;

&lt;p&gt;Could you please cherry-pick these patches to stable/newton? We will try to rerun tests accordingly.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="62754" author="opendaylight.release" created="Thu, 3 May 2018 09:38:12 +0000"  >&lt;p&gt;Since the bug is unassigned I&apos;m currently assigning it to you.&lt;/p&gt;

&lt;p&gt;Please assign to the relevant person.&#160;&lt;/p&gt;</comment>
                            <comment id="63156" author="vorburger" created="Mon, 28 May 2018 16:18:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=tcechval&quot; class=&quot;user-hover&quot; rel=&quot;tcechval&quot;&gt;tcechval&lt;/a&gt; &lt;a href=&quot;https://jira.opendaylight.org/browse/NEUTRON-158&quot; title=&quot;Dependency checking for Northbound API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NEUTRON-158&quot;&gt;NEUTRON-158&lt;/a&gt; may address this - are you interested in helping to test it, when we have something ready there?&lt;/p&gt;</comment>
                            <comment id="63358" author="vorburger" created="Thu, 7 Jun 2018 17:46:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/NEUTRON-158&quot; title=&quot;Dependency checking for Northbound API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NEUTRON-158&quot;&gt;NEUTRON-158&lt;/a&gt;, specifically &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/72372/,&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;c/72372&lt;/a&gt;,&#160;should address this. I would be very intersted in testing feedback. Shall we close this as a dupe of that?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="29588">NEUTRON-158</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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8069</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=8069]]></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_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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