NSX: wrong switch uuid reference used during dhcp/metadata operations

Bug #1312439 reported by Armando Migliaccio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Armando Migliaccio
Icehouse
New
Undecided
Unassigned

Bug Description

Change https://review.openstack.org/#/c/54578/ introduced a DB mapping between neutron network uuids and NSX logical switch uuids.

Some parts of the NSX plugin have not been fully updated to reflect the new logic and this result in stacktraces like these:

Server Error Message: Enti
ty '2306d291-abdd-42fa-8231-f8566b378b40' not registered.
2014-04-24 14:44:23.763 23228 ERROR neutron.plugins.vmware.dhcp_meta.nsx [req-470c5e04-89ee-4967-b53a-63a7d0ff1603 None] (u'Error while configuring DHC
P for port %s', '98e92c69-3f4f-4b32-995c-72c01229a13d')
2014-04-24 14:44:23.763 23228 ERROR neutron.api.v2.resource [req-470c5e04-89ee-4967-b53a-63a7d0ff1603 None] create failed
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 428, in create
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource obj)})
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 404, in notify
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource notifier_method)
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 280, in _send_dhcp_notification
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource self._dhcp_agent_notifier.notify(context, data, methodname)
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/nsx.py", line 88, in notify
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource self._handle_subnet_dhcp_access[action](context, data['subnet'])
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/nsx.py", line 134, in _subnet_c
reate
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource self.plugin.create_port(context, {'port': dhcp_port})
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/plugins/base.py", line 1204, in create_po
rt
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource self.handle_port_dhcp_access(context, port_data, action='create_port')
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcpmeta_modes.py", line 148, in handle_p
ort_dhcp_access
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource self.handle_port_dhcp_access_delegate(self, context, port_data, action)
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/nsx.py", line 241, in handle_po
rt_dhcp_access
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource raise n_exc.NeutronException()
2014-04-24 14:44:23.763 23228 TRACE neutron.api.v2.resource NeutronException: An unknown exception occurred.

tags: added: icehouse-backport-potential
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/90238
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0f2f768578900a7ca74091ab400bd9facce9eaf9
Submitter: Jenkins
Branch: master

commit 0f2f768578900a7ca74091ab400bd9facce9eaf9
Author: armando-migliaccio <email address hidden>
Date: Thu Apr 24 12:11:41 2014 -0700

    NSX: add nsx switch lookup to dhcp and metadata operations

    The operations in questions were still using the neutron network
    uuid as the nsx switch uuid, but this is no longer valid.

    Close-bug: #1312439

    Change-Id: I0f4bf02bb176c5c3914c7dd7e8249121af1b5a79

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to neutron (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/90540

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (stable/icehouse)

Reviewed: https://review.openstack.org/90540
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7225e2bcc6ca00168d5e6b3ef1a4e7d170dccc4f
Submitter: Jenkins
Branch: stable/icehouse

commit 7225e2bcc6ca00168d5e6b3ef1a4e7d170dccc4f
Author: armando-migliaccio <email address hidden>
Date: Thu Apr 24 12:11:41 2014 -0700

    NSX: add nsx switch lookup to dhcp and metadata operations

    The operations in questions were still using the neutron network
    uuid as the nsx switch uuid, but this is no longer valid.

    Close-bug: #1312439

    Change-Id: I0f4bf02bb176c5c3914c7dd7e8249121af1b5a79
    (cherry picked from commit 0f2f768578900a7ca74091ab400bd9facce9eaf9)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
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.