X-Git-Url: https://review.fuel-infra.org/gitweb?p=openstack-build%2Fneutron-build.git;a=blobdiff_plain;f=xenial%2Fdebian%2Fpatches%2Ffix-no-attribute-code.patch;fp=xenial%2Fdebian%2Fpatches%2Ffix-no-attribute-code.patch;h=0000000000000000000000000000000000000000;hp=37f0125b60c61ca22de2a6523e2e4263a36f0e07;hb=e73d439989fd34b8a658be8dc9276aa857fed8d6;hpb=2423c3f0e0e8dda5df0112e7ad6fc3d7c2b71fc1 diff --git a/xenial/debian/patches/fix-no-attribute-code.patch b/xenial/debian/patches/fix-no-attribute-code.patch deleted file mode 100644 index 37f0125b6..000000000 --- a/xenial/debian/patches/fix-no-attribute-code.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- neutron.orig/neutron/db/api.py 2016-08-18 17:21:13.507395437 +0200 -+++ neutron/neutron/db/api.py 2016-08-18 17:22:04.214899405 +0200 -@@ -21,13 +21,11 @@ - from oslo_db import api as oslo_db_api - from oslo_db import exception as db_exc - from oslo_db.sqlalchemy import enginefacade --from oslo_log import log as logging - from oslo_utils import excutils - import osprofiler.sqlalchemy - import six - import sqlalchemy - from sqlalchemy.orm import exc --import traceback - - from neutron.common import exceptions - from neutron.common import profiler # noqa -@@ -45,7 +43,6 @@ - - - MAX_RETRIES = 10 --LOG = logging.getLogger(__name__) - - - def is_retriable(e): -@@ -59,7 +56,7 @@ - is_deadlock = moves.moved_function(is_retriable, 'is_deadlock', __name__, - message='use "is_retriable" instead', - version='newton', removal_version='ocata') --_retry_db_errors = oslo_db_api.wrap_db_retry( -+retry_db_errors = oslo_db_api.wrap_db_retry( - max_retries=MAX_RETRIES, - retry_interval=0.1, - inc_retry_interval=True, -@@ -67,22 +64,6 @@ - ) - - --def retry_db_errors(f): -- """Log retriable exceptions before retry to help debugging.""" -- -- @_retry_db_errors -- @six.wraps(f) -- def wrapped(*args, **kwargs): -- try: -- return f(*args, **kwargs) -- except Exception as e: -- with excutils.save_and_reraise_exception(): -- if is_retriable(e): -- LOG.debug("Retry wrapper got retriable exception: %s", -- traceback.format_exc()) -- return wrapped -- -- - def reraise_as_retryrequest(f): - """Packs retriable exceptions into a RetryRequest.""" -