[Discovery-Rel3.0-Centos-1]: Applying rule on DNS-server affects the rule entry already applied to XMPP server and vice versa. (Tested for client type : vrouter-agent)

Bug #1548771 reported by Pulkit Tandon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Released
High
Deepinder Setia
Trunk
Fix Committed
High
Deepinder Setia

Bug Description

Bug Template : Centos

OS version: 3.10.0-229.el7.x86_64 #1 (Centos7.1)
Contrail Version: 3.0-1.el7.centos

Setup details:
Multinode setup.
Testbed file attached

Configurations:
Discovery server running and it does auto assignments of services to clients.
Rules were created over that.

Description:

3 dns-servers + xmpp servers are present in topology:
nodeh4: 77.77.1.10
nodeg12: 77.77.2.10
nodec10: 77.77.3.10

3 vrouter compute nodes are present in the topology:
nodeh8: 77.77.1.11
nodeg31: 77.77.2.11
nodec28: 77.77.3.11

Step 1: contrail-discovery.conf file was updated with min and max TTL values as “60” .For all default assignments, TTL 60 was working as expected..

Step 2: Created Rule 1 as follows:
77.77.3.0/24,xmpp-server,, 77.77.0.0/16,contrail-vrouter-agent:0,,

As expected, as soon as this rule is created, all vrouter-agent clients resubscribe to 77.77.3.11,xmpp-server

Step 3: Please see the attached snap shot named "Screen Shot only xmpp rule.png”. Everything is working as expected till this point.

Step 4: Created Rule 2 as follows:
77.77.3.0/24,dns-server,, 77.77.3.11/32,contrail-vrouter-agent:0,,

As expected, as soon as this rule is created, 77.77.3.11,vrouter-agent clients subscribes to 77.77.3.10,dns-server.

Step 5: Noted that 77.77.3.11,vrouter-agent client which was subscribed to 77.77.3.11,xmpp-server is affected due to rule 2.
It is not following rule anymore and is having 2 open entries.
Please see the attached snap shot named "Screen Shot after dns rule.png” to prove what happened.

Logs:
The issue is reproducible and self descriptive.
So no logs have been taken.

Revision history for this message
Pulkit Tandon (pulkitt) wrote :
Revision history for this message
Pulkit Tandon (pulkitt) wrote :
Revision history for this message
Pulkit Tandon (pulkitt) wrote :
Pulkit Tandon (pulkitt)
information type: Proprietary → Public
Pulkit Tandon (pulkitt)
summary: [Discovery-Rel3.0-Centos-1]: Applying rule on DNS-server affects the
- rule entry already applied to XMPP server (Tested for client type :
- vrouter-agent)
+ rule entry already applied to XMPP server and vice versa. (Tested for
+ client type : vrouter-agent)
Changed in juniperopenstack:
milestone: r3.0-fcs → none
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17876
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17877
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17876
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17876
Committed: http://github.org/Juniper/contrail-controller/commit/696c4cd5b3a441084922b0125846c324aff7f830
Submitter: Zuul
Branch: master

commit 696c4cd5b3a441084922b0125846c324aff7f830
Author: Deepinder Setia <email address hidden>
Date: Thu Feb 25 18:16:57 2016 -0800

Handle of multiple matching assignment rules. Add test cases.

Change-Id: Ifd31127e7ca4751b852890c041592bb58ff25f6b
Closes-Bug: #1540777
CLoses-Bug: #1548771

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/18068
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18068
Committed: http://github.org/Juniper/contrail-controller/commit/47fd8d8cab12688ca8990a9b84bb19f6892b626d
Submitter: Zuul
Branch: R3.0

commit 47fd8d8cab12688ca8990a9b84bb19f6892b626d
Author: Deepinder Setia <email address hidden>
Date: Thu Feb 25 18:16:57 2016 -0800

Handle of multiple matching assignment rules. Add test cases.

Fixes-Bug: #1540777
Fixes-Bug: #1548771
(cherry picked from commit 696c4cd5b3a441084922b0125846c324aff7f830)

Change-Id: I2c248fe07aaf2b7740c7bb7bbab02269c6f3e4cc

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

Tested on contrail version "3.0.0.0-2725"
Bug was found fix. hence closing the fix for 3.0 branch .

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

Automation test case name to test this bug:
test_rule_on_xmpp_do_not_impact_dns

tags: added: automation
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.