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)
Reviewed: https:/ /review. openstack. org/468646 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=893d11be865 88c8da744f6bbdf 24b184c2d78dc0
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 893d11be86588c8 da744f6bbdf24b1 84c2d78dc0
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 instances.
this object in _provision_
Change-Id: I396b767815b666 706fec980ded482 fa4746d2efc 42f3546c4e7fe4e fa682293cf)
Closes-Bug: #1693654
(cherry picked from commit 40cf447d28a5c98