schema_transformer: service chains destroyed on init

Bug #1570857 reported by eon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Unassigned
R2.20
Fix Committed
Undecided
Unassigned
R2.21.x
Fix Committed
Undecided
Unassigned
R2.22.x
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

1. schema is initialized it reads servicechains from cassandra and mark them as stale
2. initial ifmap poll the result is processed and compared against the cassandra objects retrieved at step 1
3. process_stale_objects is called and remove all servicechains marked as stale
4. process_networks is called and recreate the servicechains

3. and 4. should be inverted

process_networks calls to Servicechain.create() will unset the create_staled property of servicechains that were retrieved at step 1 so that process_stale_objects will not destroy valid servicechains.

Observed on R2.21.x

Tags: config
eon (eon-5)
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/19327
Submitter: Jean-Philippe Braun (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/19327
Committed: http://github.org/Juniper/contrail-controller/commit/165ae65a26c7939c6e1a719f12bd93cd9873fbf3
Submitter: Zuul
Branch: R2.21.x

commit 165ae65a26c7939c6e1a719f12bd93cd9873fbf3
Author: Jean-Philippe Braun <email address hidden>
Date: Fri Apr 15 15:18:07 2016 +0200

Avoid destroying servicechains on schema init

Change-Id: Ibc23f6f84c588e8fddd2d8c02ea7adeacf754742
Closes-Bug: #1570857

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

Review in progress for https://review.opencontrail.org/19540
Submitter: Suresh Balineni (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/19541
Submitter: Suresh Balineni (<email address hidden>)

Sachin Bansal (sbansal)
Changed in opencontrail:
status: New → Fix Committed
Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19541
Committed: http://github.org/Juniper/contrail-controller/commit/c7ed2e18c37eb21897489634fb3501ca6f8a1f79
Submitter: Zuul
Branch: R2.20

commit c7ed2e18c37eb21897489634fb3501ca6f8a1f79
Author: Jean-Philippe Braun <email address hidden>
Date: Fri Apr 15 15:18:07 2016 +0200

Avoid destroying servicechains on schema init

Change-Id: Ibc23f6f84c588e8fddd2d8c02ea7adeacf754742
Closes-Bug: #1570857

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/19540
Committed: http://github.org/Juniper/contrail-controller/commit/8d3669fa591f5fd616dda4f910e44dee88bf1328
Submitter: Zuul
Branch: R2.22.x

commit 8d3669fa591f5fd616dda4f910e44dee88bf1328
Author: Jean-Philippe Braun <email address hidden>
Date: Fri Apr 15 15:18:07 2016 +0200

Avoid destroying servicechains on schema init

Change-Id: Ibc23f6f84c588e8fddd2d8c02ea7adeacf754742
Closes-Bug: #1570857

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.