Port update crashes when device id does not need to be updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Mithil Arun |
Bug Description
When I call the update_port() method using the ML2 plugin, I see the following error:
2014-07-04 10:05:40.043 17585 ERROR neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
2014-07-04 10:05:40.043 17585 TRACE neutron.
On further inspection of the file in question (/usr/lib/
--snip--
def update_port(self, context, id, port):
p = port['port']
changed_ips = False
with context.
port = self._get_
if 'device_owner' in p:
else:
if p.get('device_id') != port['device_id']:
# if the current device_owner is ROUTER_INF and the device_id or
# device_owner changed check device_id is not another tenants
# router
if ((current_
--snip--
'changed_device_id' should be set to 'False' by default.
Changed in neutron: | |
assignee: | nobody → Mithil Arun (arun-mithil) |
Changed in neutron: | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: ml2 |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
milestone: | none → juno-2 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/105471
Review: https:/