Btw in the patch i needed to create a new admin_context otherwise the following exception would be raised:
2014-03-18 12:15:06.119 ERROR neutron.api.v2.resource [req-946a316d-74f7-477e-bcfd-8e5070dcc7ea demo c166d9316f814891bcb66b96c4c891d6] update failed 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource Traceback (most recent call last): 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource result = method(request=request, **args) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 505, in update 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 656, in update_port 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource port) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 1417, in update_port 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource port.update(self._filter_non_model_columns(p, models_v2.Port)) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 447, in __exit__ 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource self.rollback() 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 61, in __exit__ 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource compat.reraise(type_, value, traceback) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 447, in __exit__ 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource self.rollback() 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 396, in rollback 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource self._restore_snapshot(dirty_only=self.nested) 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 246, in _restore_snapshot 2014-03-18 12:15:06.119 TRACE neutron.api.v2.resource assert self._is_transaction_boundary
Btw in the patch i needed to create a new admin_context otherwise the following exception would be raised:
2014-03-18 12:15:06.119 ERROR neutron. api.v2. resource [req-946a316d- 74f7-477e- bcfd-8e5070dcc7 ea demo c166d9316f81489 1bcb66b96c4c891 d6] update failed api.v2. resource Traceback (most recent call last): api.v2. resource File "/opt/stack/ neutron/ neutron/ api/v2/ resource. py", line 87, in resource api.v2. resource result = method( request= request, **args) api.v2. resource File "/opt/stack/ neutron/ neutron/ api/v2/ base.py" , line 505, in update api.v2. resource obj = obj_updater( request. context, id, **kwargs) api.v2. resource File "/opt/stack/ neutron/ neutron/ plugins/ ml2/plugin. py", line 656, in update_port api.v2. resource port) api.v2. resource File "/opt/stack/ neutron/ neutron/ db/db_base_ plugin_ v2.py", line 1417, in update_port api.v2. resource port.update( self._filter_ non_model_ columns( p, models_v2.Port)) api.v2. resource File "/usr/local/ lib/python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 447, in __exit__ api.v2. resource self.rollback() api.v2. resource File "/usr/local/ lib/python2. 7/dist- packages/ sqlalchemy/ util/langhelper s.py", line 61, in __exit__ api.v2. resource compat. reraise( type_, value, traceback) api.v2. resource File "/usr/local/ lib/python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 447, in __exit__ api.v2. resource self.rollback() api.v2. resource File "/usr/local/ lib/python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 396, in rollback api.v2. resource self._restore_ snapshot( dirty_only= self.nested) api.v2. resource File "/usr/local/ lib/python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 246, in _restore_snapshot api.v2. resource assert self._is_ transaction_ boundary
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.
2014-03-18 12:15:06.119 TRACE neutron.