yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #15967
[Bug 1315538] Re: NSX: cluster is passed instead of context during metadata operation
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1315538
Title:
NSX: cluster is passed instead of context during metadata operation
Status in OpenStack Neutron (virtual network service):
Fix Released
Status in neutron icehouse series:
Fix Released
Bug description:
The following stacktrace has been observed using NSX DHCP:
2014-05-02 14:00:36.295 30957 DEBUG neutron.plugins.vmware.api_client.base [req-2a7489ae-ec5c-4bf4-868d-0f929e3588c6 None] [0] Released connection https://192.168.1.13:443. 10 connection(s) available. release_connect
ion /opt/stack/neutron/neutron/plugins/vmware/api_client/base.py:176
2014-05-02 14:00:36.296 30957 DEBUG neutron.plugins.vmware.api_client.eventlet_request [req-2a7489ae-ec5c-4bf4-868d-0f929e3588c6 None] [0] Completed request 'POST /ws.v1/lservices-node/20e0dc1c-a1da-455f-8841-3c52d78
6696c/lport': 201 _handle_request /opt/stack/neutron/neutron/plugins/vmware/api_client/eventlet_request.py:152
2014-05-02 14:00:36.296 30957 DEBUG neutron.plugins.vmware.api_client.client [req-2a7489ae-ec5c-4bf4-868d-0f929e3588c6 None] Request returns "<httplib.HTTPResponse instance at 0x4c49368>" request /opt/stack/neutron/n
eutron/plugins/vmware/api_client/client.py:93
2014-05-02 14:00:36.297 30957 ERROR neutron.api.v2.resource [req-2a7489ae-ec5c-4bf4-868d-0f929e3588c6 None] add_router_interface failed
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource result = method(request=request, **args)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 193, in _handle_action
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource return getattr(self._plugin, name)(*arg_list, **kwargs)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/plugins/base.py", line 1719, in add_router_interface
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource context, router_id, interface=router_iface_info)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcpmeta_modes.py", line 157, in handle_router_metadata_access
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource router_id, interface)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/combined.py", line 89, in handle_router_metadata_access
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource plugin, context, router_id, interface)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/nsx.py", line 312, in handle_router_metadata_access
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource context, subnet_id, is_enabled)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/lsnmanager.py", line 294, in lsn_metadata_configure
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource self.lsn_port_metadata_setup(context, lsn_id, subnet)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/lsnmanager.py", line 225, in lsn_port_metadata_setup
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource lsn_port_id = self.lsn_port_create(self.cluster, lsn_id, data)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/lsnmanager.py", line 453, in lsn_port_create
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource subnet_info['mac_address'], lsn_id)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dhcp_meta/lsnmanager.py", line 442, in lsn_port_save
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource context, lsn_port_id, subnet_id, mac_addr, lsn_id)
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/vmware/dbexts/lsn_db.py", line 96, in lsn_port_add_for_lsn
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource with context.session.begin(subtransactions=True):
2014-05-02 14:00:36.297 30957 TRACE neutron.api.v2.resource AttributeError: 'NSXCluster' object has no attribute 'session'
This is because the wrong parameter is passed to during the DB
operation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1315538/+subscriptions
References