[analytics]tcl_rule in virtual network UVE is not getting decremented

Bug #1685458 reported by aswani kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
High
Sachin Bansal
R3.2.3.x
Fix Committed
High
Sachin Bansal
Trunk
Fix Committed
High
Sachin Bansal

Bug Description

Mainline 3058 mitaka single node

On removing policy from VN In virtual_network UVE tcl_rule count is not decrementing

Attached a policy to VN with five rules and tcl_rules are

UveVirtualNetworkConfig: {
total_acl_rules: 5,
routing_instance_list: [
"default-domain:ctest-TestAlarmConfigCases-36897465:ctest-alarm_vn-56492614:ctest-alarm_vn-56492614"
]
}

upon detaching policy still i am able to see 5 rules (Waited for more than 5 min to get updated)

UveVirtualNetworkConfig: {
total_acl_rules: 5,
routing_instance_list: [
"default-domain:ctest-TestAlarmConfigCases-36897465:ctest-alarm_vn-56492614:ctest-alarm_vn-56492614"
]
}
}

Tags: config
tags: added: analytics
Raj Reddy (rajreddy)
tags: added: config
removed: analytics
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/30891
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/30891
Committed: http://github.com/Juniper/contrail-controller/commit/cb6f312ba1a12ad9835fd09f1ec64d112d4f5e2a
Submitter: Zuul (<email address hidden>)
Branch: master

commit cb6f312ba1a12ad9835fd09f1ec64d112d4f5e2a
Author: Sachin Bansal <email address hidden>
Date: Mon May 1 10:26:32 2017 -0700

Reinitialize total_acl_count for each evaluate

If all policies are removed from a network, we were not setting
the acl counts back to 0. We should initialize it to 0 before
evaluating policies.

Change-Id: Ie1575095ca117346b3deefa7fe7d22e0ed59c492
Closes-Bug: 1685458

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

Review in progress for https://review.opencontrail.org/30924
Submitter: Sachin Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/30924
Committed: http://github.com/Juniper/contrail-controller/commit/fa1a1f81c79ec85baf05a6ab0d9e6e2a1a983005
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit fa1a1f81c79ec85baf05a6ab0d9e6e2a1a983005
Author: Sachin Bansal <email address hidden>
Date: Mon May 1 10:26:32 2017 -0700

Reinitialize total_acl_count for each evaluate

If all policies are removed from a network, we were not setting
the acl counts back to 0. We should initialize it to 0 before
evaluating policies.

Change-Id: Ie1575095ca117346b3deefa7fe7d22e0ed59c492
Closes-Bug: 1685458
(cherry picked from commit cb6f312ba1a12ad9835fd09f1ec64d112d4f5e2a)

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

Review in progress for https://review.opencontrail.org/32566
Submitter: Vinay Vithal Mahuli (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/32566
Committed: http://github.com/Juniper/contrail-controller/commit/b23a64092b1285de4faa355e801ae9b1f233777b
Submitter: Zuul (<email address hidden>)
Branch: R3.2.3.x

commit b23a64092b1285de4faa355e801ae9b1f233777b
Author: Sachin Bansal <email address hidden>
Date: Mon May 1 10:26:32 2017 -0700

Reinitialize total_acl_count for each evaluate

If all policies are removed from a network, we were not setting
the acl counts back to 0. We should initialize it to 0 before
evaluating policies.

Change-Id: Ie1575095ca117346b3deefa7fe7d22e0ed59c492
Closes-Bug: 1685458
(cherry picked from commit cb6f312ba1a12ad9835fd09f1ec64d112d4f5e2a)

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.