Error nailgun migration from 5_0 to 5_0_1

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

Bug Description

1. checkout fuel-web stable/5.0 run `manage.py migrate upgrade head`
2. upload fixtures `manage.py loaddefault && manage.py loaddata nailgun/fixtures/sample_environment.json`
3. checkout master, run `manage.py migrate upgrade head`

sqlalchemy.exc.IntegrityError: (IntegrityError) column "can_update_from_versions" contains null values
 'ALTER TABLE releases ADD COLUMN can_update_from_versions TEXT NOT NULL' {}

http://paste.openstack.org/show/83616/

Tags: nailgun
Revision history for this message
Evgeniy L (rustyrobot) wrote :

Here is the comment from me where I suggested to remove not null constraint.

https://review.openstack.org/#/c/86275/29/nailgun/nailgun/db/sqlalchemy/models/release.py

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/99668

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

Reviewed: https://review.openstack.org/99668
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=8106cba16120157668bb1d1cb8624a92707a64e2
Submitter: Jenkins
Branch: master

commit 8106cba16120157668bb1d1cb8624a92707a64e2
Author: Dima Shulyak <email address hidden>
Date: Thu Jun 12 16:49:45 2014 +0300

    Use server_default=[] for can_update_from_versions

    Column can_update_from_versions of release table
    should use server_default='[]'

    Change-Id: I2d8a1e3e9ea85a5c99684eacb4eb3131cfb9fb81
    Closes-Bug: #1328874

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Evgeniy L (rustyrobot) wrote :

It's not so easy to cover such bugs with tests, I created separate bug, lets think how it could be done

https://bugs.launchpad.net/fuel/+bug/1330466

Changed in fuel:
milestone: 5.0.1 → 5.1
Revision history for this message
Evgeniy L (rustyrobot) wrote :

Removing from 5.0.1 release since we don't have migration changes in maintenance releases.

https://bugs.launchpad.net/fuel/+bug/1335088

no longer affects: fuel/5.0.x
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.