oslo.db model tests broken by alembic 0.8.4

Bug #1488167 reported by Ihar Hrachyshka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Ihar Hrachyshka
oslo.db
New
Critical
Unassigned

Bug Description

neutron functional tests are broken [1] by new alembic 0.8.1 release
because it now catches some differences between models and migration
scripts that were not caught before (specifically, in foreign key
attributes).

[1]: http://logs.openstack.org/66/211166/2/gate/gate-neutron-dsvm-functional/867114c/

Tags: db
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

The global requirements fix for kilo: https://review.openstack.org/#/c/216328/

Changed in neutron:
status: New → In Progress
assignee: nobody → Ihar Hrachyshka (ihar-hrachyshka)
description: updated
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Henry Gessau (gessau) wrote :

I don't understand why the gate pipeline is failing on that after it passed the check pipeline.

Looks to me like the gate does not always fast forward to the latest neutron code?

With the latest neutron code this error does not occur.

Henry Gessau (gessau)
tags: added: db
Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Revision history for this message
Alan Pevec (apevec) wrote :

@Ihar - is this https://bitbucket.org/zzzeek/alembic/issues/321 which was fixed in alembic 0.8.2 ?

Revision history for this message
Alan Pevec (apevec) wrote :

Archiving answer from IRC:

<ihrachys> apevec: https://bitbucket.org/zzzeek/alembic/issues/317/implement-autogen-detection-for-onupdate
<apevec> ok, so still an issue
<apevec> hm, says resolved?
<ihrachys> apevec: it's solved in 0.8.2. the problem is not the release itself, it's that neutron functional tests fail with it
<ihrachys> apevec: because now it catches some differences between models and alembic scripts that were not caught before
<ihrachys> and backporting the patch from master that syncs models is not an option because it introduces a new migration script
<ihrachys> there is no runtime issue per se, mere testing
<ihrachys> so if you are brave to run with smth that is not validated in gate, fine, you can do it with alembic 0.8.2+ for kilo too

Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-3 → 7.0.0
Revision history for this message
Sean Dague (sdague) wrote :

This has popped back in Alembic 0.8.4 because of oslo.db tests

Changed in oslo.db:
importance: Undecided → Critical
summary: - neutron stable jobs are busted by alembic 0.8.1
+ oslo.db model tests broken by alembic 0.8.1
summary: - oslo.db model tests broken by alembic 0.8.1
+ oslo.db model tests broken by alembic 0.8.4
Revision history for this message
Henry Gessau (gessau) wrote :

Backporting https://review.openstack.org/258471 will address this.

We also need to fix the constraints for the functional job, since we should not have picked up 0.8.4 automatically.

Revision history for this message
Henry Gessau (gessau) wrote :

Comment #7 is invalid. Neutron stable jobs are not impacted by alembic 0.8.4 since they do not use variants.

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.