ceilometer __init__() got an unexpected keyword argument 'match'

Bug #1300368 reported by Kurt Martin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
New
Undecided
Unassigned

Bug Description

This errors occurs in the jenkins tempest checks in the devstack logs for stable/havana. See logs
http://logs.openstack.org/52/84152/1/check/check-tempest-dsvm-full/9b924c0/logs/devstacklog.txt.gz
http://logs.openstack.org/52/84152/1/check/check-tempest-dsvm-neutron/0d35232/logs/devstacklog.txt.gz

2014-03-31 15:35:06 2014-03-31 15:35:06.119 18798 INFO migrate.versioning.api [-] 18 -> 19...
2014-03-31 15:35:06 2014-03-31 15:35:06.131 18798 INFO migrate.versioning.api [-] done
2014-03-31 15:35:06 /usr/local/lib/python2.7/dist-packages/alembic/util.py:326: UserWarning: Argument 'type' is now named 'type_' for function 'drop_constraint'
2014-03-31 15:35:06 (oldname, newname, fn.__name__))
2014-03-31 15:35:06 CRITI [ceilometer] __init__() got an unexpected keyword argument 'match'
2014-03-31 15:35:06 Traceback (most recent call last):
2014-03-31 15:35:06 File "/usr/local/bin/ceilometer-dbsync", line 10, in <module>
2014-03-31 15:35:06 sys.exit(dbsync())
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/__init__.py", line 139, in dbsync
2014-03-31 15:35:06 get_connection(cfg.CONF).upgrade()
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/impl_sqlalchemy.py", line 153, in upgrade
2014-03-31 15:35:06 migration.db_sync(session.get_bind())
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/sqlalchemy/migration.py", line 69, in db_sync
2014-03-31 15:35:06 alembic.command.upgrade(_alembic_config(), "head")
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 125, in upgrade
2014-03-31 15:35:06 script.run_env()
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 203, in run_env
2014-03-31 15:35:06 util.load_python_file(self.dir, 'env.py')
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 212, in load_python_file
2014-03-31 15:35:06 module = load_module_py(module_id, path)
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 58, in load_module_py
2014-03-31 15:35:06 mod = imp.load_source(module_id, path, fp)
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/sqlalchemy/alembic/env.py", line 77, in <module>
2014-03-31 15:35:06 run_migrations_online()
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/sqlalchemy/alembic/env.py", line 71, in run_migrations_online
2014-03-31 15:35:06 context.run_migrations()
2014-03-31 15:35:06 File "<string>", line 7, in run_migrations
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/environment.py", line 681, in run_migrations
2014-03-31 15:35:06 self.get_context().run_migrations(**kw)
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/migration.py", line 225, in run_migrations
2014-03-31 15:35:06 change(**kw)
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/sqlalchemy/alembic/versions/2c3ccda5a3ad_fix_uniq_name.py", line 65, in upgrade
2014-03-31 15:35:06 change_uniq(TABLE_NAME, UNIQ_NAME, COLUMNS)
2014-03-31 15:35:06 File "/opt/stack/new/ceilometer/ceilometer/storage/sqlalchemy/alembic/versions/2c3ccda5a3ad_fix_uniq_name.py", line 59, in change_uniq
2014-03-31 15:35:06 ['meter_id'], ['id'])
2014-03-31 15:35:06 File "<string>", line 7, in create_foreign_key
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/operations.py", line 577, in create_foreign_key
2014-03-31 15:35:06 initially=initially, match=match, **dialect_kw)
2014-03-31 15:35:06 File "/usr/local/lib/python2.7/dist-packages/alembic/operations.py", line 102, in _foreign_key_constraint
2014-03-31 15:35:06 **dialect_kw
2014-03-31 15:35:06 TypeError: __init__() got an unexpected keyword argument 'match'
2014-03-31 15:35:06 ++ failed
2014-03-31 15:35:06 ++ local r=1

Revision history for this message
gordon chung (chungg) wrote :

seems like latest alembic is breaking backwards compatibility...

that or we need to revert the revert we made to fix this: https://github.com/openstack/ceilometer/commit/0cd1c8baa626810339a87ce486f6470a4b1bcb99

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.