summaryrefslogtreecommitdiffstats
path: root/nova/policy.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-08-17 15:21:36 -0400
committerRussell Bryant <rbryant@redhat.com>2012-08-17 15:33:36 -0400
commitfa16d173938b30af4e1cc6b312a75b12aff6c424 (patch)
treeb94c47ad8b5f3776fcb705b5ffb9595436d84cf6 /nova/policy.py
parent275b97a33a843be620cd348796c1d1aac72f007b (diff)
downloadnova-fa16d173938b30af4e1cc6b312a75b12aff6c424.tar.gz
nova-fa16d173938b30af4e1cc6b312a75b12aff6c424.tar.xz
nova-fa16d173938b30af4e1cc6b312a75b12aff6c424.zip
Fix get_vnc_console race.
There exists a window between a server create is done and when the host is assigned by the scheduler that a request to get the vnc console will result in a 500 error. This patch adds a check in the compute API to ensure that the instance has a host assigned before try to execute a rpc on the compute node. If not, it raises InstanceNotReady (which translates to a 409 in the OS API). Fix bug 1037809. Change-Id: I3f5af90d57ae84f98f787e14ccb66f1841ac0c6d
Diffstat (limited to 'nova/policy.py')
0 files changed, 0 insertions, 0 deletions