Comment 2 for bug 1019334

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

Reviewed: https://review.openstack.org/9177
Committed: http://github.com/openstack/nova/commit/ea711b229789d9db54b7e10fe4c67ee1bf1db8c6
Submitter: Jenkins
Branch: master

commit ea711b229789d9db54b7e10fe4c67ee1bf1db8c6
Author: Eoghan Glynn <email address hidden>
Date: Fri Jun 29 17:30:52 2012 +0000

    Create instance in DB before block device mapping

    Fixes lp 1019334

    A recently added foreign key constraint on the the block_device_mapping
    table causes boot-from-volume to fail, as the bdm is populated before the
    instance DB entry is created.

    This fix simply transposes the ordering to avoid breaking the constraint.

    Change-Id: Ic62ea3ba000a2cdf58d2bd5bb17dde2b8cf340e4