← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1480808] [NEW] got an unexpected keyword argument 'exception_checker' when migrate neutron db

 

Public bug reported:

+ /usr/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
Traceback (most recent call last):
  File "/usr/bin/neutron-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 366, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 119, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 357, in run_sanity_checks
    script_dir.run_env()
  File "/usr/lib/python2.7/site-packages/alembic/script.py", line 382, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/site-packages/alembic/util.py", line 241, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/site-packages/alembic/compat.py", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 24, in <module>
    from neutron.db.migration.models import head  # noqa
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/models/head.py", line 24, in <module>
    from neutron.db import address_scope_db  # noqa
  File "/usr/lib/python2.7/site-packages/neutron/db/address_scope_db.py", line 22, in <module>
    from neutron.extensions import address_scope as ext_address_scope
  File "/usr/lib/python2.7/site-packages/neutron/extensions/address_scope.py", line 19, in <module>
    from neutron.api.v2 import base
  File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 36, in <module>
    from neutron import quota
  File "/usr/lib/python2.7/site-packages/neutron/quota/__init__.py", line 28, in <module>
    from neutron.quota import resource_registry
  File "/usr/lib/python2.7/site-packages/neutron/quota/resource_registry.py", line 18, in <module>
    from neutron.quota import resource
  File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 139, in <module>
    class TrackedResource(BaseResource):
  File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 209, in TrackedResource
    exception_checker=lambda exc:
TypeError: __init__() got an unexpected keyword argument 'exception_checker'


/usr/lib/python2.7/site-packages/oslo_db/api.py 

class wrap_db_retry(object):
    def __init__(self, retry_interval=0, max_retries=0, inc_retry_interval=0,
                 max_retry_interval=0, retry_on_disconnect=False,
                 retry_on_deadlock=False, retry_on_request=False):
        super(wrap_db_retry, self).__init__()

did not contain the param exception_checker

** Affects: neutron
     Importance: Undecided
     Assignee: Song Li (lisong-cruise)
         Status: Invalid

** Changed in: neutron
     Assignee: (unassigned) => Song Li (lisong-cruise)

** Changed in: neutron
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1480808

Title:
  got an unexpected keyword argument 'exception_checker' when migrate
  neutron db

Status in neutron:
  Invalid

Bug description:
  + /usr/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
  Traceback (most recent call last):
    File "/usr/bin/neutron-db-manage", line 10, in <module>
      sys.exit(main())
    File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 366, in main
      CONF.command.func(config, CONF.command.name)
    File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 119, in do_upgrade
      run_sanity_checks(config, revision)
    File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 357, in run_sanity_checks
      script_dir.run_env()
    File "/usr/lib/python2.7/site-packages/alembic/script.py", line 382, in run_env
      util.load_python_file(self.dir, 'env.py')
    File "/usr/lib/python2.7/site-packages/alembic/util.py", line 241, in load_python_file
      module = load_module_py(module_id, path)
    File "/usr/lib/python2.7/site-packages/alembic/compat.py", line 79, in load_module_py
      mod = imp.load_source(module_id, path, fp)
    File "/usr/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 24, in <module>
      from neutron.db.migration.models import head  # noqa
    File "/usr/lib/python2.7/site-packages/neutron/db/migration/models/head.py", line 24, in <module>
      from neutron.db import address_scope_db  # noqa
    File "/usr/lib/python2.7/site-packages/neutron/db/address_scope_db.py", line 22, in <module>
      from neutron.extensions import address_scope as ext_address_scope
    File "/usr/lib/python2.7/site-packages/neutron/extensions/address_scope.py", line 19, in <module>
      from neutron.api.v2 import base
    File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 36, in <module>
      from neutron import quota
    File "/usr/lib/python2.7/site-packages/neutron/quota/__init__.py", line 28, in <module>
      from neutron.quota import resource_registry
    File "/usr/lib/python2.7/site-packages/neutron/quota/resource_registry.py", line 18, in <module>
      from neutron.quota import resource
    File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 139, in <module>
      class TrackedResource(BaseResource):
    File "/usr/lib/python2.7/site-packages/neutron/quota/resource.py", line 209, in TrackedResource
      exception_checker=lambda exc:
  TypeError: __init__() got an unexpected keyword argument 'exception_checker'

  
  /usr/lib/python2.7/site-packages/oslo_db/api.py 

  class wrap_db_retry(object):
      def __init__(self, retry_interval=0, max_retries=0, inc_retry_interval=0,
                   max_retry_interval=0, retry_on_disconnect=False,
                   retry_on_deadlock=False, retry_on_request=False):
          super(wrap_db_retry, self).__init__()

  did not contain the param exception_checker

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1480808/+subscriptions


Follow ups