neutron port-update api fails with VIF_TYPE_VROUTER error

Bug #1591995 reported by sureshkvl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Sahil Sabharwal
OpenContrail
Fix Committed
Medium
Sahil Sabharwal

Bug Description

neutron port-update api fails with the " 'module' object has no attribute 'VIF_TYPE_VROUTER' " error, in File "/opt/stack/contrail/openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py", line 507, in update_port

On further investigations, VIF_TYPE_VROUTER attribute has been removed from the Neutron port extensions(neutron/extensions/portbindings.py) after Kilo.
But contrail_plugin_base.py , update_port code still refers the VIF_TYPE_VROUTER attribute.

Log:

<suresh> 2016-06-13 12:30:40.128 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 625, in _update
<suresh> 2016-06-13 12:30:40.128 TRACE neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
<suresh> 2016-06-13 12:30:40.128 TRACE neutron.api.v2.resource File "/opt/stack/contrail/openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py", line 507, in update_port
<suresh> 2016-06-13
<suresh> 2016-06-13 12:30:40.128 TRACE neutron.api.v2.resource portbindings.VIF_TYPE_VROUTER
<suresh> 2016-06-13 12:30:40.128 TRACE neutron.api.v2.resource AttributeError: 'module' object has no attribute 'VIF_TYPE_VROUTER'

Tags: config neutron
tags: added: config neutron
Changed in juniperopenstack:
assignee: nobody → Sachin Bansal (sbansal)
Changed in opencontrail:
assignee: nobody → Sachin Bansal (sbansal)
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → ssabharwal@juniper.net (ssabharwal)
Changed in opencontrail:
assignee: Sachin Bansal (sbansal) → ssabharwal@juniper.net (ssabharwal)
Changed in juniperopenstack:
importance: Undecided → Medium
Changed in opencontrail:
importance: Undecided → Medium
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

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

Reviewed: https://review.opencontrail.org/21328
Committed: http://github.org/Juniper/contrail-neutron-plugin/commit/07ffed4016cffd333cdddbafe79f624c15d249e0
Submitter: Zuul
Branch: master

commit 07ffed4016cffd333cdddbafe79f624c15d249e0
Author: sahilsabharwal <email address hidden>
Date: Tue Jun 21 13:16:10 2016 -0700

1. Added attribute "VIF_TYPE_VROUTER" in (/opt/stack/contrail/openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py)
2. This attribute was used to be in (neutron/extensions/portbindings.py) and has been removed after Kilo.

Change-Id: Ic876976f75863a84c75ccaeb40cec882ff836211
Closes-Bug: #1591995

Sachin Bansal (sbansal)
Changed in opencontrail:
status: New → Fix Committed
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.