DB Migration 12 fails when image has no members/properties

Bug #976908 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Sam Morrison
Essex
Invalid
High
Eoghan Glynn

Bug Description

In the case where there are no foreign keys for a particular image the following
error is produced:

  File "/usr/lib/python2.7/dist-packages/glance/registry/db/migrate_repo/versions/012_id_to_uuid.py", line 228, in _get_foreign_keys
    image_members_fk_name = list(t_image_members.foreign_keys)[0].name
IndexError: list index out of range

Changed in glance:
assignee: Sam Morrison (sorrison) → Brian Waldon (bcwaldon)
Brian Waldon (bcwaldon)
Changed in glance:
assignee: Brian Waldon (bcwaldon) → Sam Morrison (sorrison)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/6061
Committed: http://github.com/openstack/glance/commit/4e35808f94db8c17a20608e137e2940195821fac
Submitter: Jenkins
Branch: master

commit 4e35808f94db8c17a20608e137e2940195821fac
Author: Sam Morrison <email address hidden>
Date: Mon Apr 2 11:22:10 2012 +1000

    Fix db migration 12

    * fix bug 976908

    Change-Id: I0248f825396d08688238e6d2ef37c8fcb49e8c9d

Changed in glance:
status: In Progress → Fix Committed
Sam Morrison (sorrison)
tags: added: essex-backport
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/7618

Thierry Carrez (ttx)
Changed in glance:
milestone: none → folsom-1
status: Fix Committed → Fix Released
Revision history for this message
Sam Morrison (sorrison) wrote :

This bug should be marked as invalid as it was due to DB migrations not being set up correctly and hence no foreign keys on tables. Not to do with what my initial guess was.

Revision history for this message
Mark McLoughlin (markmc) wrote :

Right, we -1ed the backport. Removing from the essex series

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

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/8603

Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-1 → 2012.2
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.