provide easy v2 -> ml2 transition

Bug #1649722 reported by YAMAMOTO Takashi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

there should be an easy way to migrate from v2 to ml2.
eg. a script

incase we want to do something similar with what neutron did for
ovs/lb, [1]
at least we need to fill the following tables:

ml2_port_binding_levels
ml2_port_bindings
ml2_distributed_port_bindings

from:

midonet_port_bindings
portbindingports

and:

networksegments

from:

midonet_network_bindings

[1] https://github.com/openstack/neutron/blob/11c0900dea4d4e691c0c68cd7b0c9cff656ce7a2/neutron/db/migration/migrate_to_ml2.py

probably it can be done in two steps.
1. make the monolithic plugin use ml2-compatible schema. i guess it can be done via usual contract migrations. probably we need to make it use OVO, or use ml2 code directly. otherwise ml2 schema changes will break our plugin.
2. have a script to do the rest of migration if any. i guess none.

random concerns:
- the relevant ml2 schema is not entirely stable. there're planned schema changes like distributed port binding stuff.
- ml2 doesn't use OVO yet.
- probably we need a way to control the order to execute migration scripts.
- how long should we allow users to switch?

Changed in networking-midonet:
importance: Undecided → High
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
description: updated
description: updated
description: updated
Changed in networking-midonet:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-midonet (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/464171

Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
milestone: none → 5.0.0
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/464171
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=bbb7012a5d17559af181aeb95fc61e9fb7ffd50b
Submitter: Jenkins
Branch: master

commit bbb7012a5d17559af181aeb95fc61e9fb7ffd50b
Author: YAMAMOTO Takashi <email address hidden>
Date: Fri May 12 19:07:38 2017 +0900

    gate_hook: Add "grenade-ml2" alias for grenade job

    To prepare v2 plugin version of the job.

    Related-Bug: #1649722
    Change-Id: Id0bdc290f73e8a5fb30ec84d34ad23a8c98fb4e3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/464936
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=82ae52179afa3410515b2689a59357aed3fa06fe
Submitter: Jenkins
Branch: master

commit 82ae52179afa3410515b2689a59357aed3fa06fe
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue May 16 11:02:21 2017 +0900

    v2 -> ml2 db migration

    On ML2 startup, try to migrate DB rows for v2 plugin to ML2 tables.

    Closes-Bug: #1649722
    Change-Id: Icf3aa5fca153b0f9bc28036370ab214cf8792a99

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 5.0.0.0b2

This issue was fixed in the openstack/networking-midonet 5.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-midonet (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/477435

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/477513

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/477792

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/477844

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/477845

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/478394

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/486778

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/486778
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=b3913d9709dd4b824d7b4578f15f296f9e1968b8
Submitter: Jenkins
Branch: master

commit b3913d9709dd4b824d7b4578f15f296f9e1968b8
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Jul 25 07:04:10 2017 +0900

    devstack: Provide functions earlier for grenade

    Closes-Bug: #1700487
    Related-Bug: #1649722
    Change-Id: I2353bdcbe5d9b77fd1d5941bc672d5bab53717ef

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477882
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=4a04e568ad1e3037ced2efdd3ee6a887254abb2d
Submitter: Jenkins
Branch: master

commit 4a04e568ad1e3037ced2efdd3ee6a887254abb2d
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Jun 27 19:53:36 2017 +0900

    devstack: Avoid creating midonet.ini in neutron_plugin_configure_common

    Because neutron_plugin_configure_common is used by grenade,
    where overwriting the existing config will break the test.

    Related-Bug: #1649722
    Change-Id: I7308e3bc2de53e75761069c8d9e178cfcfd36703

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477435
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=429ad8b75185dcc9991bb8c9a91f6f23ad6e577f
Submitter: Jenkins
Branch: master

commit 429ad8b75185dcc9991bb8c9a91f6f23ad6e577f
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Jun 26 16:50:52 2017 +0900

    gate_hook: Add grenade-v2 case

    Related-Bug: #1649722
    Change-Id: I1b5278653307ac12dfd84ba6c63dc6aa021a0a55

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477513
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=f10ddd939db488a7043b4e1f4683251d62421a7c
Submitter: Jenkins
Branch: master

commit f10ddd939db488a7043b4e1f4683251d62421a7c
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Jun 26 21:29:46 2017 +0900

    grenade: Create and verify a few resources

    Related-Bug: #1649722
    Change-Id: I239379128d68648c4bd2faff1829810217332628

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-midonet (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/489461

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/478394
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=2b7a27ff3527fe405a315319caf3ecd6f272eb1e
Submitter: Jenkins
Branch: master

commit 2b7a27ff3527fe405a315319caf3ecd6f272eb1e
Author: YAMAMOTO Takashi <email address hidden>
Date: Wed Jun 28 14:38:55 2017 +0900

    v2_migration: Update Neutron alembic versions

    After the recent Neutron changes. [1][2][3]

    [1] Ia13568879c2b6f80fb190ccafe7e19ca05b0c6a8
    [2] I3f91b3927c33021facc9eb9238555c0e06a918c0
    [3] Ib1ea7d0faee4f0544141fdcbb75164aadcfc5056

    Related-Bug: #1649722
    Change-Id: I5721b939a790232a9edcec8c17ba83fa240711eb

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477792
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=ce4d31cfe2ea19e6c4bab541f7f72c0b1bf1e7a8
Submitter: Jenkins
Branch: master

commit ce4d31cfe2ea19e6c4bab541f7f72c0b1bf1e7a8
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Jun 27 16:11:28 2017 +0900

    grenade: Migrate from monolithic plugin to ml2

    Related-Bug: #1649722
    Change-Id: I20879b73e80342737be80a2264e83efb77c12cea

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477844
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=e616b3df17265149ef7c344bf314c3b0d0a9ae18
Submitter: Jenkins
Branch: master

commit e616b3df17265149ef7c344bf314c3b0d0a9ae18
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Jun 27 18:10:22 2017 +0900

    grenade: Enable QoS

    Because:
    - It might be interesting for v2 -> ml2 migration job.
    - Unlike other advanced services, it's in neutron repo.

    Related-Bug: #1649722
    Change-Id: Icc8ef3e6c4ee448aadc58b533a125543b171d777

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/477845
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=91417fba834abe62a0e3a2b172c9a78b5047bc4b
Submitter: Jenkins
Branch: master

commit 91417fba834abe62a0e3a2b172c9a78b5047bc4b
Author: YAMAMOTO Takashi <email address hidden>
Date: Tue Jun 27 18:21:52 2017 +0900

    grenade: Verify QoS

    Related-Bug: #1649722
    Change-Id: Ic2faa7ad649141a862d7825059a41958f7c92f2f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to networking-midonet (stable/ocata)

Reviewed: https://review.openstack.org/489461
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=c4b3286c70747550ab89d41ebbe94f628050508b
Submitter: Jenkins
Branch: stable/ocata

commit c4b3286c70747550ab89d41ebbe94f628050508b
Author: YAMAMOTO Takashi <email address hidden>
Date: Fri May 12 19:07:38 2017 +0900

    gate_hook: Add "grenade-ml2" alias for grenade job

    To prepare v2 plugin version of the job.

    Related-Bug: #1649722
    Change-Id: Id0bdc290f73e8a5fb30ec84d34ad23a8c98fb4e3
    (cherry picked from commit bbb7012a5d17559af181aeb95fc61e9fb7ffd50b)

tags: added: in-stable-ocata
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.