Report default port-bindings when VMI doesnt have any bindings property

Bug #1532987 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Hampapur Ajay

Bug Description

As part of
https://bugs.launchpad.net/juniperopenstack/+bug/1524183
https://review.opencontrail.org/#/c/15700/

bindings of 'vif_type', 'vif_details', 'vnic_type' migrated from contrail_plugin_base.py to layer converting between neutron and contrail representation (vnc_openstack/neutron_plugin_db.py for plugin-version-2 and vmi_res_handler.py for plugin-version-3)

However it has broken the upgrade case where VMI created prior to this version of s/w has no bindings property. Treat such VMIs so they report the binding keys as before upgrade(i.e. hard-coded to vrouter/port_filter:True/normal)

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

Review in progress for https://review.opencontrail.org/16224
Submitter: Hampapur Ajay (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/16224
Committed: http://github.org/Juniper/contrail-controller/commit/4ae954db39d51963f33e41c3d74dcdc5b52c6f0a
Submitter: Zuul
Branch: master

commit 4ae954db39d51963f33e41c3d74dcdc5b52c6f0a
Author: Hampapur Ajay <email address hidden>
Date: Mon Jan 11 15:54:28 2016 -0800

Handle upgrade case where vmi doesn't have bindings property and
return bindings dict as earlier (vrouter,normal..)

Change-Id: I94254ee43d0cddc5f5cf84cc5bb634f56f0d7e01
Closes-Bug: 1532987

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.