neutron-db-manage does not work properly when using Metaplugin

Bug #1300002 reported by Itsuro Oda
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Invalid
Wishlist
Itsuro Oda

Bug Description

neutron-db-manage does not create Neutron DB nor upgrade Neutron DB properly when using Metaplugin.

The first cause of this problem is that 'active_plugins' parameter passed to migration scripts includes only metaplugin (i.e. not include target plugins under metaplugin).

There some problems even if the first cause is fixed.
For example there are multiple scripts which handles an same table (off course the target plugin for each script is different, but they may be used at the same time under metaplugin).

Tags: db metaplugin
Itsuro Oda (oda-g)
Changed in neutron:
assignee: nobody → Itsuro Oda (oda-g)
Revision history for this message
Henry Gessau (gessau) wrote :

I have started some work on addressing migration issues for plugins that depend on other plugins, but I don't think I am covering all the variations of metaplugin. See https://review.openstack.org/84519

Revision history for this message
Itsuro Oda (oda-g) wrote :

Henry,

Thanks for your comment.
As discussed with you on IRC I will deal with metaplugin migration (based on this bug report).

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

In patch set 7 of https://review.openstack.org/84519 I have added a table of plugins with dependencies. This might allow you to add the metaplugin dependencies dynamically, something like this:

from neutron.db import migration

    ...

    meta_dependencies = determine_meta_contained_plugins()
    migration.PLUGIN_DEPENDENCIES['meta'] = meta_dependencies

    if migration.should_run(active_plugins, ...

Revision history for this message
Mark McClain (markmcclain) wrote :

The metaplugin is untested and will be released in Icehouse as untested and pending removal in Juno. Long term I think we should look at migration strategies away from the metaplugin as ML2 solves the problem better without special database tricks.

Changed in neutron:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: metaplugin
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/85660

Changed in neutron:
status: Triaged → In Progress
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

Hi, Mark

Metaplugin is tested by Metaplugin CI Test.
We stopped MetapluginCI for the last two weeks because we need to deal with this bug and the other bug( https://bugs.launchpad.net/neutron/+bug/1300570 ).
But now MetapluginCI is running.

Metaplugin will also be required after Juno because there are many plugins that cannot use ML2 (For example Vmware NSX).

Itsuro Oda (oda-g)
tags: added: db
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Itsuro Oda (<email address hidden>) on branch: master
Review: https://review.openstack.org/85660
Reason: DB migration refactoring is under development.
https://review.openstack.org/95738/

If it is done, this patch is not necessary since all tables exist.

Revision history for this message
Ann Taraday (akamyshnikova) wrote :

I think this should be fixed with heal script and other db refactor changes.

Revision history for this message
Itsuro Oda (oda-g) wrote :

> I think this should be fixed with heal script and other db refactor changes.

Yes. I want to close (abandon) this bug report but I don't find how to close.

Changed in neutron:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.