Remove workaround for bug/1543094
Bug which caused DB exceeded retry limit is solved. Change-Id: Ie7b7d994d7443a9575fad0b322683c4f3009d139 Related-Bug: #1543094
This commit is contained in:
parent
ab324cf161
commit
44de48a442
|
@ -17,7 +17,6 @@ from eventlet import greenthread
|
|||
from neutron_lib.api import validators
|
||||
from neutron_lib import constants as const
|
||||
from neutron_lib import exceptions as exc
|
||||
from oslo_concurrency import lockutils
|
||||
from oslo_config import cfg
|
||||
from oslo_db import exception as os_db_exception
|
||||
from oslo_log import helpers as log_helpers
|
||||
|
@ -1248,11 +1247,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
|
|||
|
||||
@utils.transaction_guard
|
||||
def create_port(self, context, port):
|
||||
# TODO(kevinbenton): remove when bug/1543094 is fixed.
|
||||
with lockutils.lock(port['port']['network_id'],
|
||||
lock_file_prefix='neutron-create-port',
|
||||
external=True):
|
||||
result, mech_context = self._create_port_db(context, port)
|
||||
result, mech_context = self._create_port_db(context, port)
|
||||
# notify any plugin that is interested in port create events
|
||||
kwargs = {'context': context, 'port': result}
|
||||
registry.notify(resources.PORT, events.AFTER_CREATE, self, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue