Gate Fail on TestHeatMigrationsSQLite.test_walk_versions: missing 1 required positional argument: 'self'

Bug #1567731 reported by Rico Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Critical
Rico Lin

Bug Description

At http://logs.openstack.org/56/302956/1/check/gate-heat-python34-db/6de121d/console.html#_2016-04-07_21_36_35_504

This appear within test env. python3.4

2016-04-07 21:36:35.504 | FAIL: heat.tests.db.test_migrations.TestHeatMigrationsMySQL.test_walk_versions
2016-04-07 21:36:35.504 | tags: worker-1
2016-04-07 21:36:35.504 | ----------------------------------------------------------------------
2016-04-07 21:36:35.505 | Traceback (most recent call last):
2016-04-07 21:36:35.505 | File "/home/jenkins/workspace/gate-heat-python34-db/heat/tests/db/test_migrations.py", line 140, in test_walk_versions
2016-04-07 21:36:35.505 | self.walk_versions(self.snake_walk, self.downgrade)
2016-04-07 21:36:35.505 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/oslo_db/sqlalchemy/test_migrations.py", line 193, in walk_versions
2016-04-07 21:36:35.505 | self.migrate_up(version, with_data=True)
2016-04-07 21:36:35.505 | File "/home/jenkins/workspace/gate-heat-python34-db/heat/tests/db/test_migrations.py", line 137, in migrate_up
2016-04-07 21:36:35.505 | super(HeatMigrationsCheckers, self).migrate_up(version, with_data)
2016-04-07 21:36:35.506 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/oslo_db/sqlalchemy/test_migrations.py", line 263, in migrate_up
2016-04-07 21:36:35.506 | self.REPOSITORY, version)
2016-04-07 21:36:35.506 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/migrate/versioning/api.py", line 186, in upgrade
2016-04-07 21:36:35.506 | return _migrate(url, repository, version, upgrade=True, err=err, **opts)
2016-04-07 21:36:35.506 | File "<decorator-gen-15>", line 2, in _migrate
2016-04-07 21:36:35.506 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/migrate/versioning/util/__init__.py", line 160, in with_engine
2016-04-07 21:36:35.506 | return f(*a, **kw)
2016-04-07 21:36:35.507 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/migrate/versioning/api.py", line 366, in _migrate
2016-04-07 21:36:35.507 | schema.runchange(ver, change, changeset.step)
2016-04-07 21:36:35.507 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/migrate/versioning/schema.py", line 93, in runchange
2016-04-07 21:36:35.507 | change.run(self.engine, step)
2016-04-07 21:36:35.507 | File "/home/jenkins/workspace/gate-heat-python34-db/.tox/py34/lib/python3.4/site-packages/migrate/versioning/script/py.py", line 148, in run
2016-04-07 21:36:35.507 | script_func(engine)
2016-04-07 21:36:35.508 | File "/home/jenkins/workspace/gate-heat-python34-db/heat/db/sqlalchemy/migrate_repo/versions/064_raw_template_predecessor.py", line 36, in upgrade
2016-04-07 21:36:35.508 | tmpl_table.c.predecessor.drop()
2016-04-07 21:36:35.508 | TypeError: drop() missing 1 required positional argument: 'self'

Revision history for this message
Rabi Mishra (rabi) wrote :

It seems this is not specific to heat, and other projects[1] impacted by this too. May be something to do with oslo libraries.

[1]http://logs.openstack.org/18/234218/7/check/gate-nova-python34-db/f06e8bb/console.html#_2016-04-07_20_29_02_908

Revision history for this message
Rabi Mishra (rabi) wrote :

I thinks it's due to the latest fixtures (2.0.0). Rolling it back to 1.4.0 seems to fix the tests.

Revision history for this message
Rico Lin (rico-lin) wrote :

Global environment is update with https://github.com/openstack/requirements/commit/2454205023f34753509053a869c84ecb226877a3

We need to added it to test-requirement as well

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/303219

Changed in heat:
status: Triaged → In Progress
Changed in heat:
milestone: none → newton-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/303557

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/303219
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=8f630a8bda91012454c19c59f21725141822350f
Submitter: Jenkins
Branch: master

commit 8f630a8bda91012454c19c59f21725141822350f
Author: ricolin <email address hidden>
Date: Fri Apr 8 13:18:30 2016 +0800

    Add fixtures into test-requirements

    We have broken gate, because we have no limitation to fixtures,
    and the new version is incompatible to us.
    We need to add fixtures into test-requirements to make
    sure that we always up to date with global requirements.
    Closes-Bug: #1567731

    Change-Id: Ib0cac0c217db195ce3723cee3f09d26e6be9f0ea

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/303890

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (stable/mitaka)

Change abandoned by Rico Lin (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/303557
Reason: in favor of https://review.openstack.org/#/c/303890/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/mitaka)

Reviewed: https://review.openstack.org/303890
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=22549178fe231572da624fe680233159f92b369e
Submitter: Jenkins
Branch: stable/mitaka

commit 22549178fe231572da624fe680233159f92b369e
Author: ricolin <email address hidden>
Date: Fri Apr 8 13:18:30 2016 +0800

    Add fixtures into test-requirements

    We have broken gate, because we have no limitation to fixtures,
    and the new version is incompatible to us.
    We need to add fixtures into test-requirements to make
    sure that we always up to date with global requirements.
    Closes-Bug: #1567731
    Depends-On: I0cffb6fa806b74c171aa8068b0a133a762594f64

    Change-Id: I14377e0497f1589f1234226babcf7d78761b7b7b

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/heat 7.0.0.0b1

This issue was fixed in the openstack/heat 7.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 6.1.0

This issue was fixed in the openstack/heat 6.1.0 release.

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.