Database migration is broken for Cisco plugin

Bug #1210219 reported by Henry Gessau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Henry Gessau

Bug Description

Running upgrade None -> folsom, folsom initial database
Running upgrade folsom -> 2c4af419145b, l3_support
Running upgrade 2c4af419145b -> 5a875d0e5c, ryu
Running upgrade 5a875d0e5c -> 48b6f43f7471, DB support for service types
Running upgrade 48b6f43f7471 -> 3cb5d900c5de, security_groups
Running upgrade 3cb5d900c5de -> 1d76643bcec4, nvp_netbinding
Running upgrade 1d76643bcec4 -> 2a6d0b51f4bb, cisco plugin cleanup
(OperationalError) (1051, "Unknown table 'services_bindings'") '\nDROP TABLE services_bindings' ()

Tags: cisco
Henry Gessau (gessau)
Changed in neutron:
assignee: nobody → Henry Gessau (gessau)
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

def upgrade(active_plugin=None, options=None):
    ...
    op.drop_table(u'services_bindings')
    ...

def downgrade(active_plugin=None, options=None):
    ...
    op.create_table(
        u'service_bindings',
    ...

Changed in neutron:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/41094
Committed: http://github.com/openstack/neutron/commit/bffaf03a81b2402b83c62f4effb9dfb7f6588148
Submitter: Jenkins
Branch: master

commit bffaf03a81b2402b83c62f4effb9dfb7f6588148
Author: HenryGessau <email address hidden>
Date: Fri Aug 9 09:48:31 2013 -0400

    Fix broken database migration for Cisco plugin

    Remove migration for a table that was never used.
    Correct table drop order due to foreignkey dependency.

    Closes bug: #1210219

    Change-Id: I38bcedf7a84967bea2c1679a6a6ab51a9451b33a

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
importance: Undecided → High
milestone: none → havana-3
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-3 → 2013.2
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.