summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorAnte Karamatić <ante.karamatic@canonical.com>2013-05-20 07:21:31 +0200
committerNikola Dipanov <ndipanov@redhat.com>2013-06-18 14:32:06 +0200
commit2402055b955656c7fffa66018c7b8cfcc1596b1b (patch)
tree881a3c622a2db33b77514eec8224837e986a8886 /nova/utils.py
parentbf0f41d141ebdf7ead1e3a4f34cca2a16ff75056 (diff)
downloadnova-2402055b955656c7fffa66018c7b8cfcc1596b1b.tar.gz
nova-2402055b955656c7fffa66018c7b8cfcc1596b1b.tar.xz
nova-2402055b955656c7fffa66018c7b8cfcc1596b1b.zip
Check the instance ID before creating it
At least with libvirt 1.x instance goes into shutdown state before its ID is changed. This means that there's a race condition during reboot where nova might try to create an instance that's already defined. By checking if the ID of the new and old instance is the same, we avoid that situation and reiterate on the loop. The tests for this are added in I6215f80bd15820dac80151e7063916dbbc21d761 Change-Id: I493b828f0c6848fbadc591be2f47fd1b12fd3a51 Fixes: bug 1181924
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions