← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1250454] Re: create_table in downgrade does not match table's content before migration

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => icehouse-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1250454

Title:
  create_table in downgrade does not match table's content before
  migration

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  create_table in downgrade in migration
  2a6d0b51f4bb_cisco_plugin_cleanup does not match table's content
  created by migration folsom_initial, because of this there is a
  problem with downgrade.

  File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/2a6d0b51f4bb_cisco_plugin_cleanup.py", line 87, in downgrade
      sa.PrimaryKeyConstraint(u'id')
    File "<string>", line 7, in create_table
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/alembic/operations.py", line 631, in create_table
      self._table(name, *columns, **kw)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/alembic/operations.py", line 117, in _table
      t = sa_schema.Table(name, m, *columns, **kw)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 318, in __new__
      table._init(name, metadata, *args, **kw)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 385, in _init
      self._init_items(*args)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 64, in _init_items
      item._set_parent_with_dispatch(self)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/events.py", line 234, in _set_parent_with_dispatch
      self._set_parent(parent)
    File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 2131, in _set_parent
      "named '%s' is present." % (table.description, col))
  ArgumentError: Can't create ForeignKeyConstraint on table 'portprofile_bindings': no column named 'ports' is present.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1250454/+subscriptions