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

Bug #1480808 reported by Song Li
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Song Li

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

Song Li (lisong-cruise)
Changed in neutron:
assignee: nobody → Song Li (lisong-cruise)
status: New → Invalid
Changed in neutron:
status: Invalid → Confirmed
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Hi, I'm the chief bug injection of the neutron project and this is my fault!

I ignored that my decision to use exception_checker required bumping the minimum requirement for oslo_db to 2.0

Dear Song Li, I am going to push a patch for this bug and therefore try and put an end to my shame. I hope you won't mind.

Revision history for this message
Ann Taraday (akamyshnikova) wrote :

Is this issue solved?

Revision history for this message
Yu Yin (35686556-h) wrote :

Is this issue solved?

Changed in neutron:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.