fix task.owner to be nullable=False in models.py

Bug #1257949 reported by Nikhil Komawar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Nikhil Komawar

Bug Description

We currently, do not allow NULL owner for tasks and models.py lets it be NULL however, the tasks table ensures that it does not set NULL owner.

So, we do not need migration - just need fix in the code patch for this.

Changed in glance:
assignee: nobody → nikhil komawar (nikhil-komawar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/60330
Committed: http://github.com/openstack/glance/commit/21cfc3f465f18a030878032477ec255421a2e8dc
Submitter: Jenkins
Branch: master

commit 21cfc3f465f18a030878032477ec255421a2e8dc
Author: Nikhil Komawar <email address hidden>
Date: Thu Dec 5 13:57:05 2013 -0500

    Makes tasks owner not nullable in models.py

    The tasks table scheme in migration for adding tasks to Glance DB has a
    flag for disabling from setting a NULL owner.

    In order to keep the behavior consistent across the glance codebase,
    this patch adds owner as not nullable in the models.py.

    Fixes bug: 1257949

    Change-Id: Id9fff4277f427b7d83d80b5a0a8029968f70e0df

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-2 → 2014.1
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.