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.
Reviewed: https:/ /review. openstack. org/6343 github. com/openstack/ glance/ commit/ e4d04f50adc2426 f08872b0cececfe 48f1d18683
Committed: http://
Submitter: Jenkins
Branch: master
commit e4d04f50adc2426 f08872b0cececfe 48f1d18683
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: I76ecabc5ee266e 2e9765740721e8e c1722cc5a7c