diff options
author | Chris Behrens <cbehrens@codestud.com> | 2013-03-07 21:03:19 +0000 |
---|---|---|
committer | Chris Behrens <cbehrens@codestud.com> | 2013-03-07 21:48:22 +0000 |
commit | 6a080df6bd8817019d204e3142a236b7974f7656 (patch) | |
tree | d7bd4f7c15e6584c5f04b98fea6ce03ae6fda711 /nova/notifications.py | |
parent | e23769827dbd5c9eb9d392e6452ca33253f88329 (diff) | |
download | nova-6a080df6bd8817019d204e3142a236b7974f7656.tar.gz nova-6a080df6bd8817019d204e3142a236b7974f7656.tar.xz nova-6a080df6bd8817019d204e3142a236b7974f7656.zip |
Fix access_ip_* race
The code currently sets access_ip_* in a 2nd DB call after an instance
goes ACTIVE, which means there's a slight race when someone is querying
the API for their instance. It's possible to see the instance ACTIVE but
access_ip_* will be blank.
To fix this, we should set access_ip_* at the same time the instance goes
ACTIVE. This also removes an unnecessary extra DB call.
Fixes bug 1152328
Change-Id: I0fe542d49fbc95f27a24f57f674264f8789bc527
Diffstat (limited to 'nova/notifications.py')
0 files changed, 0 insertions, 0 deletions