← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1454566] [NEW] Neutron DB migration failed in the script 2b801560a332_remove_hypervneutronplugin_tables.py when upgrade

 

Public bug reported:

  File "/usr/local/bin/neutron-db-manage", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/neutron/neutron/db/migration/cli.py", line 238, in main
    CONF.command.func(config, CONF.command.name)
  File "/opt/stack/neutron/neutron/db/migration/cli.py", line 106, in do_upgrade
    do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
  File "/opt/stack/neutron/neutron/db/migration/cli.py", line 72, in do_alembic_command
    getattr(alembic_command, cmd)(config, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 165, in upgrade
    script.run_env()
  File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 390, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 243, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 109, in <module>
    run_migrations_online()
  File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 100, in run_migrations_online
    context.run_migrations()
  File "<string>", line 7, in run_migrations
  File "/usr/local/lib/python2.7/dist-packages/alembic/environment.py", line 742, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/usr/local/lib/python2.7/dist-packages/alembic/migration.py", line 309, in run_migrations
    step.migration_fn(**kw)
  File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/2b801560a332_remove_hypervneutronplugin_tables.py", line 132, in upgrade
    _migrate_port_bindings(bind)
  File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/2b801560a332_remove_hypervneutronplugin_tables.py", line 123, in _migrate_port_bindings
    op.execute(ml2_port_bindings.insert(), ml2_bindings)
  File "<string>", line 7, in execute
  File "/usr/local/lib/python2.7/dist-packages/alembic/operations.py", line 1270, in execute
    execution_options=execution_options)
  File "/usr/local/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 108, in execute
    self._exec(sql, execution_options)
  File "/usr/local/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 104, in _exec
    conn = conn.execution_options(**execution_options)
TypeError: execution_options() argument after ** must be a mapping, not list

** Affects: neutron
     Importance: Undecided
     Assignee: Yang Yu (yuyangbj)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Yang Yu (yuyangbj)

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

Title:
  Neutron DB migration failed in the script
  2b801560a332_remove_hypervneutronplugin_tables.py when upgrade

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
    File "/usr/local/bin/neutron-db-manage", line 10, in <module>
      sys.exit(main())
    File "/opt/stack/neutron/neutron/db/migration/cli.py", line 238, in main
      CONF.command.func(config, CONF.command.name)
    File "/opt/stack/neutron/neutron/db/migration/cli.py", line 106, in do_upgrade
      do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
    File "/opt/stack/neutron/neutron/db/migration/cli.py", line 72, in do_alembic_command
      getattr(alembic_command, cmd)(config, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 165, in upgrade
      script.run_env()
    File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 390, in run_env
      util.load_python_file(self.dir, 'env.py')
    File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 243, in load_python_file
      module = load_module_py(module_id, path)
    File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 79, in load_module_py
      mod = imp.load_source(module_id, path, fp)
    File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 109, in <module>
      run_migrations_online()
    File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 100, in run_migrations_online
      context.run_migrations()
    File "<string>", line 7, in run_migrations
    File "/usr/local/lib/python2.7/dist-packages/alembic/environment.py", line 742, in run_migrations
      self.get_context().run_migrations(**kw)
    File "/usr/local/lib/python2.7/dist-packages/alembic/migration.py", line 309, in run_migrations
      step.migration_fn(**kw)
    File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/2b801560a332_remove_hypervneutronplugin_tables.py", line 132, in upgrade
      _migrate_port_bindings(bind)
    File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/2b801560a332_remove_hypervneutronplugin_tables.py", line 123, in _migrate_port_bindings
      op.execute(ml2_port_bindings.insert(), ml2_bindings)
    File "<string>", line 7, in execute
    File "/usr/local/lib/python2.7/dist-packages/alembic/operations.py", line 1270, in execute
      execution_options=execution_options)
    File "/usr/local/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 108, in execute
      self._exec(sql, execution_options)
    File "/usr/local/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 104, in _exec
      conn = conn.execution_options(**execution_options)
  TypeError: execution_options() argument after ** must be a mapping, not list

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


Follow ups

References