A server create failed because of a lack of available memory on the host. But, the server stayed in a BUILD status when it should have been moved to an ERROR status. The following exception was noted during the attempt to change the status:
rt/xenapi/vm_utils.py:493
2011-09-15 21:24:40,889 DEBUG nova.virt.xenapi.vm_utils [-] image_size_bytes=1458287104, allowed_size_bytes=42949672960 from (pid=8316) _check_vdi_size /usr/lib/pymodules/python2.6/nova/virt/xenapi/vm_utils.py:510
2011-09-15 21:24:41,083 ERROR nova.virt.xenapi.vmops [-] instance instance-00010799: not enough free memory
(nova.virt.xenapi.vmops): TRACE: None
(nova.virt.xenapi.vmops): TRACE:
2011-09-15 21:24:41,084 ERROR nova.compute.manager [-] Instance '10799' failed to spawn. Is virtualization enabled in the BIOS? Details: 'module' object has no attribute 'instance_set_state'
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 424, in _run_instance
(nova.compute.manager): TRACE: network_info, block_device_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi_conn.py", line 190, in spawn
(nova.compute.manager): TRACE: self._vmops.spawn(context, instance, network_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 149, in spawn
(nova.compute.manager): TRACE: vm_ref = self._create_vm(context, instance, vdis, network_info)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/xenapi/vmops.py", line 176, in _create_vm
(nova.compute.manager): TRACE: power_state.SHUTDOWN)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/db/api.py", line 573, in instance_set_state
(nova.compute.manager): TRACE: return IMPL.instance_set_state(context, instance_id, state, description)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 452, in __getattr__
(nova.compute.manager): TRACE: return getattr(backend, key)
(nova.compute.manager): TRACE: AttributeError: 'module' object has no attribute 'instance_set_state'
(nova.compute.manager): TRACE:
2011-09-15 21:24:41,205 INFO nova.virt.xenapi [-] Task [Async.host.call_plugin] OpaqueRef:3fbf7df1-3cfa-9078-846b-78568381fd6f status: success <value>{"message": "", "returncode": "0"}</value>
It looks like this has uncovered two problems. The first is that instance_set_state is not defined on the implementation of that interface. The second, and IMHO scarier issue is that an exception in run_instance left the instance in the building status...