Comment 4 for bug 1693654

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

Reviewed: https://review.openstack.org/468646
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=893d11be86588c8da744f6bbdf24b184c2d78dc0
Submitter: Jenkins
Branch: stable/ocata

commit 893d11be86588c8da744f6bbdf24b184c2d78dc0
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
    (cherry picked from commit 40cf447d28a5c9842f3546c4e7fe4efa682293cf)