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:
Dariusz Smigiel 2016-06-17 15:49:51 +00:00 committed by Armando Migliaccio
parent ab324cf161
commit 44de48a442
1 changed files with 1 additions and 6 deletions

View File

@ -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)