summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2013-03-13 14:45:49 -0400
committerRussell Bryant <rbryant@redhat.com>2013-03-13 17:53:17 -0400
commitdced117ea919b74d9521ff422b4eb8a880474a0d (patch)
tree8f8a5dabb58ed85441876408a2feb790948480fc /nova/api
parent1df14918988ba45fc95b6925a617238af398cc50 (diff)
downloadnova-dced117ea919b74d9521ff422b4eb8a880474a0d.tar.gz
nova-dced117ea919b74d9521ff422b4eb8a880474a0d.tar.xz
nova-dced117ea919b74d9521ff422b4eb8a880474a0d.zip
Generalize console error handling during build.
There is a race condition where you can create an instance and then quickly request a VNC or Spice console before the instance is ready. The way this went down was different depending on the virt driver in use. The libvirt driver would raise InstanceNotFound. The xenapi driver would raise InstanceNotReady. This patch moves the handling of this race that was in the xenapi driver up to the compute manager. Now, all of the virt drivers that support this method (libvirt, xenapi, vmware) will all raise InstanceNotFound in this case, and the compute manager will convert it into InstanceNotReady IFF the vm_state is BUILDING. Related to bug 1154327. Change-Id: I68f4a6db8aac26c6f731c985d97299ee38c34448
Diffstat (limited to 'nova/api')
0 files changed, 0 insertions, 0 deletions