Comment 2 for bug 1693654

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

Reviewed: https://review.openstack.org/468232
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=40cf447d28a5c9842f3546c4e7fe4efa682293cf
Submitter: Jenkins
Branch: master

commit 40cf447d28a5c9842f3546c4e7fe4efa682293cf
Author: Matt Riedemann <email address hidden>
Date: Thu May 25 21:35:09 2017 -0400

    Avoid lazy-loading instance.id when cross_az_attach=False

    The instance is no longer created in the API so the id attribute
    won't be set, which means when checking the instance AZ against
    the volume AZ, if they don't match we can't put the instance.id
    in the error message. We shouldn't have been putting the instance
    primary key in the error message anyway.

    This fixes the bug by using the instance.uuid which is set in
    this object in _provision_instances.

    Change-Id: I396b767815b666706fec980ded482fa4746d2efc
    Closes-Bug: #1693654