OpenStack Compute (Nova)

Comment 2 for bug 755666

Andrey Brindeyev (abrindeyev) wrote :

That patch does not helped me with same error. I patched nova (downloaded diff from linked branch and applied it to bzr972 rev) and error is still here:

2011-04-11 12:42:27,730 nova.rpc: MSG_ID is dbe301a61bdd4331b9731e87987beaa9
2011-04-11 12:42:28,258 nova.utils: Running cmd (subprocess): ip link show dev vlan100
2011-04-11 12:42:28,272 nova.utils: Attempting to grab semaphore "ensure_bridge" for method "ensure_bridge"...
2011-04-11 12:42:28,273 nova.utils: Attempting to grab file lock "ensure_bridge" for method "ensure_bridge"...
2011-04-11 12:42:28,274 nova.utils: Running cmd (subprocess): ip link show dev br100
2011-04-11 12:42:28,287 nova.utils: Running cmd (subprocess): sudo route -n
2011-04-11 12:42:28,311 nova.utils: Running cmd (subprocess): sudo ip addr show dev vlan100 scope global
2011-04-11 12:42:28,337 nova.utils: Running cmd (subprocess): sudo brctl addif br100 vlan100
2011-04-11 12:42:28,363 nova.utils: Result was 1
2011-04-11 12:42:28,413 nova.virt.libvirt_conn: instance instance-00000001: starting toXML method
2011-04-11 12:42:28,545 nova.virt.libvirt_conn: instance instance-00000001: finished toXML method
2011-04-11 12:42:28,607 nova: called setup_basic_filtering in nwfilter
2011-04-11 12:42:28,607 nova: ensuring static filters
2011-04-11 12:42:28,727 nova.utils: Attempting to grab semaphore "iptables" for method "apply"...
2011-04-11 12:42:28,728 nova.utils: Attempting to grab file lock "iptables" for method "apply"...
2011-04-11 12:42:28,736 nova.utils: Running cmd (subprocess): sudo iptables-save -t filter
2011-04-11 12:42:28,760 nova.utils: Running cmd (subprocess): sudo iptables-restore
2011-04-11 12:42:28,785 nova.utils: Running cmd (subprocess): sudo iptables-save -t nat
2011-04-11 12:42:28,811 nova.utils: Running cmd (subprocess): sudo iptables-restore
2011-04-11 12:42:28,869 nova.utils: Running cmd (subprocess): mkdir -p /var/lib/nova/instances/instance-00000001/
2011-04-11 12:42:28,888 nova.virt.libvirt_conn: instance instance-00000001: Creating image
2011-04-11 12:42:28,986 nova.utils: Attempting to grab semaphore "73f3cf93" for method "call_if_not_exists"...
2011-04-11 12:42:29,001 nova.utils: Running cmd (subprocess): cp /var/lib/nova/instances/_base/73f3cf93 /var/lib/nova/instances/instance-00000001/kernel
2011-04-11 12:42:29,040 nova.utils: Attempting to grab semaphore "57de2572" for method "call_if_not_exists"...
2011-04-11 12:42:29,055 nova.utils: Running cmd (subprocess): cp /var/lib/nova/instances/_base/57de2572 /var/lib/nova/instances/instance-00000001/ramdisk
2011-04-11 12:42:29,113 nova.utils: Attempting to grab semaphore "58677c0c_sm" for method "call_if_not_exists"...
2011-04-11 12:42:29,380 nova.utils: Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_size=2M,backing_file=/var/lib/nova/instances/_base/58677c0c_sm /var/lib/nova/instances/instance-00000001/disk
2011-04-11 12:42:29,422 nova.virt.libvirt_conn: instance instance-00000001: injecting key into image 1483176972
2011-04-11 12:42:29,438 nova.compute.disk: Mounting disk...
2011-04-11 12:42:34,053 nova.compute.disk: Injecting SSH key...
2011-04-11 12:42:34,800 nova.compute.disk: Deleting guestfs object...
2011-04-11 12:42:36,332 nova.exception: Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/python2.6/site-packages/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/python2.6/site-packages/nova/virt/libvirt_conn.py", line 611, in spawn
(nova.exception): TRACE: domain = self._create_new_domain(xml)
(nova.exception): TRACE: File "/usr/lib/python2.6/site-packages/nova/virt/libvirt_conn.py", line 1070, in _create_new_domain
(nova.exception): TRACE: domain = self._conn.defineXML(xml)
(nova.exception): TRACE: File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1292, in defineXML
(nova.exception): TRACE: if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
(nova.exception): TRACE: libvirtError: operation failed: domain 'instance-00000001' already exists with uuid 9537b6de-83d5-bd54-0ff0-24a442655bdb
(nova.exception): TRACE:
2011-04-11 12:42:36,334 nova.compute.manager: ERROR [8HGU4JYRQD8X6S7MS82Q abr rhelimg] Instance '1' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 234, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/python2.6/site-packages/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: operation failed: domain 'instance-00000001' already exists with uuid 9537b6de-83d5-bd54-0ff0-24a442655bdb
(nova.compute.manager): TRACE:
2011-04-11 12:42:48,358 nova.compute.manager: Found instance 'instance-00000001' in DB but no VM. State=5, so setting state to shutoff.
2011-04-11 12:43:48,398 nova.compute.manager: Found instance 'instance-00000001' in DB but no VM. State=5, so setting state to shutoff.