Image Member index not tracked in sqlalchemy models

Bug #1154777 reported by Mark Washenberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Mark Washenberger
Grizzly
Fix Released
High
Mark Washenberger

Bug Description

Migration 008 creates an index on the image members table

    Index('ix_image_members_image_id_member', image_members.c.image_id,
          image_members.c.member)

But the Image member model class does not reflect this

class ImageMember(BASE, ModelBase):
    """Represents an image members in the datastore"""
    __tablename__ = 'image_members'
    __table_args__ = (UniqueConstraint('image_id', 'member'), {})

Changed in glance:
assignee: nobody → Mark Washenberger (markwash)
status: New → In Progress
Brian Waldon (bcwaldon)
Changed in glance:
importance: Undecided → High
milestone: none → grizzly-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/24351
Committed: http://github.com/openstack/glance/commit/eff956b6c8e453b8371ac049c21bad792d27e7ac
Submitter: Jenkins
Branch: master

commit eff956b6c8e453b8371ac049c21bad792d27e7ac
Author: Mark J. Washenberger <email address hidden>
Date: Wed Mar 13 11:50:43 2013 -0700

    Declare index on ImageMember model

    This index was added in migration 008. However, it was not on the model,
    which meant any autocreated db would not have it.

    Fixes bug 1154777

    Change-Id: I34590ffebaf547be9a12e5a85216cda145d9e8db

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