Comment 2 for bug 975651

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit e4d04f50adc2426f08872b0cececfe48f1d18683
Author: Adam Gandelman <email address hidden>
Date: Fri Apr 6 20:59:39 2012 -0700

    012_id_to_uuid: Also convert ramdisk + kernel ids

    The original migration converts numerical IDs to UUIDs. It updates
    image_members and image_properties that reference image_id, but stops
    short of updating actual properties that reference the new UUIDs,
    specifically kernel_ids and ramdisk_ids. This breaks launching
    of instances in Nova whos images are associated with a kernel and/or rd.

    Also, this fixes an issue when migrating against non-sqlite
    databases where the actual conversion is executed twice.

    Fixes bug 975655
    Fixes bug 975651

    Update: Only update kernel_ids and ramdisk_ids in image_properties
            when converting to UUIDs

    Change-Id: I76ecabc5ee266e2e9765740721e8ec1722cc5a7c