neutron migrations are not idempotent or invariant to enabled services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Critical
|
Ann Taraday |
Bug Description
Neutron is currently failing during grenade upgrade testing. The symptom is that meteringlabels table doesn't exist.
The root cause is that neutron migrations are not idempotent or invariant to enabled services (which must be true for migrations for the system to work as expected). As can be seen here - https:/
Migration content might be skipped based on configuration conditionals. This means it's possible for 2 different installations to report as db schema 569e98a8132b but have different schemas. The logic of db migrations assumes that 569e98a8132b can only result in a single schema, so future migrations depend on the content all being the same here.
The solution here is to probably build a set of "healing migrations" that undo all the past conditional skips to get neutron back in line with a migration id means exactly a single schema. Anything other than that will be largely impossible to support in the field.
(previous description below)
Hello,
I just got a neutron-db-manage failure in the Gate : http://
Relevant stack trace is
"
2014-04-13 23:53:15.281 | INFO [alembic.migration] Running upgrade b65aa907aec -> 33c3db036fe4, set_length_
2014-04-13 23:53:15.296 | Traceback (most recent call last):
2014-04-13 23:53:15.296 | File "/usr/local/
.......
2014-04-13 23:53:15.340 | sqlalchemy.
"
Changed in neutron: | |
status: | New → Confirmed |
summary: |
- neutron-db-manage fails with metering enabled + neutron migrations are not idempotent or invariant to enabled services |
description: | updated |
Changed in neutron: | |
importance: | Undecided → Critical |
Changed in neutron: | |
assignee: | nobody → Ann Kamyshnikova (akamyshnikova) |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
milestone: | none → juno-1 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-1 → 2014.2 |
I don't see that in the logs for the link you posted. Looks like the migration worked okay. Wrong link?
http:// logs.openstack. org/77/ 83777/1/ check/check- tempest- dsvm-neutron- heat-slow/ a7ad8c0/ logs/devstacklo g.txt.gz