Port update without subnet id causes an exception

Bug #1132852 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Gary Kotton

Bug Description

Updating a port with the existing ip_address and no subnet_id causes an exception:

2013-02-25 10:24:07.247 24249 WARNING quantum.api.extensions [-] Extension routed-service-insertion not supported by any of loaded plugins
2013-02-25 10:24:26.473 24249 ERROR quantum.api.v2.resource [-] update failed
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource Traceback (most recent call last):
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/resource.py", line 82, in resource
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource result = method(request=request, **args)
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/api/v2/base.py", line 449, in update
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 603, in update_port
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource context, id, port)
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/db/db_base_plugin_v2.py", line 1323, in update_port
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource p['fixed_ips'])
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource File "/opt/stack/quantum/quantum/db/db_base_plugin_v2.py", line 645, in _update_ips_for_port
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource original_ip['subnet_id'] == new_ip['subnet_id']):
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource KeyError: 'subnet_id'
2013-02-25 10:24:26.473 24249 TRACE quantum.api.v2.resource

Gary Kotton (garyk)
tags: added: folsom-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/22865

Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
status: New → In Progress
Gary Kotton (garyk)
Changed in quantum:
milestone: none → grizzly-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/22865
Committed: http://github.com/openstack/quantum/commit/ee2b6eeff0fc431f5c263b2a55f72d966fb39942
Submitter: Jenkins
Branch: master

commit ee2b6eeff0fc431f5c263b2a55f72d966fb39942
Author: Gary Kotton <email address hidden>
Date: Mon Feb 25 16:04:13 2013 +0000

    Port update with existing ip_address only causes exception

    Fixes bug 1132852

    Change-Id: Iedb0dce3ece270eb0a58af6aa8800e2047dc920d

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc1 → 2013.1
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.