[nailgun] Squash 5.0.1 and 5.1 migration files

Bug #1335088 reported by Evgeniy L
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dima Shulyak

Bug Description

Squash migration files, 5.0.1 [1] into single 5.1 [2] file.

[1] https://github.com/stackforge/fuel-web/blob/master/nailgun/nailgun/db/migration/alembic_migrations/versions/fuel_5_0_1.py
[2] https://github.com/stackforge/fuel-web/blob/master/nailgun/nailgun/db/migration/alembic_migrations/versions/fuel_5_1.py

In stable release we cannot change migrations because migration process should be rectilinear.
If we had 5.0.1 migration files (in stable/5.0 branch) and 5.1 (in current master), it would be impossible to upgrade from 5.0.1 to 6.0.

5.x upgrades

5.0 -> 5.0.1
5.0 -> 5.1

6.x upgrades

5.1 -> 6.0
5.0.1 ≠> 6.0 because our migration files (master branch) supports only upgrades from 5.0 to 5.1 and from 5.1 to 6.0, and 6.0 knows nothing about 5.0.1

Evgeniy L (rustyrobot)
Changed in fuel:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Dima Shulyak (dshulyak)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/106360
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=9ea52a54eaccd5e4fb2254c0897d3d6e524745f2
Submitter: Jenkins
Branch: master

commit 9ea52a54eaccd5e4fb2254c0897d3d6e524745f2
Author: Dima Shulyak <email address hidden>
Date: Fri Jul 11 15:30:42 2014 +0300

    Squash 5_0_1 and 5_1 migrations

    Change-Id: Iad237f87d8fe1f22d613a8989ee931108731be9c
    Closes-Bug: #1335088

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

verified on
{

    "build_id": "2014-09-09_00-01-11",
    "ostf_sha": "f7b5d9d0d1cfaba5f1fe1e2c634493e92bce11db",
    "build_number": "505",
    "auth_required": true,
    "api": "1.0",
    "nailgun_sha": "7683df5722975c1cae48a1a3efdad872b4aaace6",
    "production": "docker",
    "fuelmain_sha": "6cdd8c3deaa5e52806a5c75c4177f3b41d157a22",
    "astute_sha": "b622d9b36dbdd1e03b282b9ee5b7435ba649e711",
    "feature_groups": [
        "mirantis"
    ],
    "release": "5.1",
    "release_versions": {
        "2014.1-5.0": {
            "VERSION": {
                "build_id": "2014-05-27_05-51-41",
                "mirantis": "yes",
                "build_number": "26",
                "ostf_sha": "a8b7660082a6f152794c610d6abe30d360fd577d",
                "nailgun_sha": "bd09f89ef56176f64ad5decd4128933c96cb20f4",
                "production": "docker",
                "api": "1.0",
                "fuelmain_sha": "505741e4f431f85a8d0252fc42754d10c0326c1a",
                "astute_sha": "a7eac46348dc77fc2723c6fcc3dbc66cc1a83152",
                "release": "5.0",
                "fuellib_sha": "2f79c0415159651fc1978d99bd791079d1ae4a06"
            }
        },
        "2014.1.1-5.0.2": {
            "VERSION": {
                "build_id": "2014-09-08_15-45-27",
                "ostf_sha": "2969c1ad443b632e815bb1f01149c3800cd7aa3a",
                "build_number": "71",
                "api": "1.0",
                "nailgun_sha": "c18a21381843dffe807b254a4ff96eec259953cb",
                "production": "docker",
                "fuelmain_sha": "b1e46c8c3ac86a8eafac225507294226322160ea",
                "astute_sha": "6db5f5031b74e67b92fcac1f7998eaa296d68025",
                "feature_groups": [
                    "mirantis"
                ],
                "release": "5.0.2",
                "fuellib_sha": "c891490242d7d88f3c9582cf023e8f2db0b9d337"
            }
        },
        "2014.1.1-5.1": {
            "VERSION": {
                "build_id": "2014-09-09_00-01-11",
                "ostf_sha": "f7b5d9d0d1cfaba5f1fe1e2c634493e92bce11db",
                "build_number": "505",
                "api": "1.0",
                "nailgun_sha": "7683df5722975c1cae48a1a3efdad872b4aaace6",
                "production": "docker",
                "fuelmain_sha": "6cdd8c3deaa5e52806a5c75c4177f3b41d157a22",
                "astute_sha": "b622d9b36dbdd1e03b282b9ee5b7435ba649e711",
                "feature_groups": [
                    "mirantis"
                ],
                "release": "5.1",
                "fuellib_sha": "203ef3179007cffe3236032e61ecbaf1cd20605f"
            }
        }
    },
    "fuellib_sha": "203ef3179007cffe3236032e61ecbaf1cd20605f"

}

Changed in fuel:
status: Fix Committed → Fix Released
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.