← Back to team overview

openstack team mailing list archive

How to resolve error "Domain not found: no domain with matching ..."

 

When I reboot my vm today(reboot works well before), it show :

*2012-01-20 16:55:19,112 WARNING nova.virt.libvirt_conn [-] Error from
libvirt during undefine of instance-00000013. Code=42 Error=Domain not
found: no domain with matching uuid '60f24c80-aee7-8e21-a14f-0682b82b13e2'**
*
*2012-01-20 16:55:19,113 ERROR nova.exception [-] Uncaught exception**
**(nova.exception): TRACE: Traceback (most recent call last):**
**(nova.exception): TRACE: File "/data/stack/nova/nova/exception.py", line
98, in wrapped**
**(nova.exception): TRACE: return f(*args, **kw)**
**(nova.exception): TRACE: File
"/data/stack/nova/nova/virt/libvirt/connection.py", line 499, in reboot**
**(nova.exception): TRACE: self.destroy(instance, network_info,
cleanup=False)**
**(nova.exception): TRACE: File
"/data/stack/nova/nova/virt/libvirt/connection.py", line 299, in destroy**
**(nova.exception): TRACE: virt_dom.undefine()**
**(nova.exception): TRACE: File
"/usr/lib/python2.7/dist-packages/libvirt.py", line 975, in undefine**
**(nova.exception): TRACE: if ret == -1: raise libvirtError
('virDomainUndefine() failed', dom=self)**
**(nova.exception): TRACE: libvirtError: Domain not found: no domain with
matching uuid '60f24c80-aee7-8e21-a14f-0682b82b13e2'**
**(nova.exception): TRACE: **
**2012-01-20 16:55:19,153 ERROR nova.rpc [-] Exception during message
handling**
**(nova.rpc): TRACE: Traceback (most recent call last):**
**(nova.rpc): TRACE: File "/data/stack/nova/nova/rpc/impl_kombu.py", line
620, in _process_data**
**(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)**
**(nova.rpc): TRACE: File "/data/stack/nova/nova/exception.py", line 98, in
wrapped**
**(nova.rpc): TRACE: return f(*args, **kw)**
**(nova.rpc): TRACE: File "/data/stack/nova/nova/compute/manager.py", line
117, in decorated_function**
**(nova.rpc): TRACE: function(self, context, instance_id, *args, **kwargs)**
**(nova.rpc): TRACE: File "/data/stack/nova/nova/compute/manager.py", line
631, in reboot_instance**
**(nova.rpc): TRACE: self.driver.reboot(instance_ref, network_info)**
**(nova.rpc): TRACE: File "/data/stack/nova/nova/exception.py", line 129,
in wrapped**
**(nova.rpc): TRACE: raise Error(str(e))**
**(nova.rpc): TRACE: Error: Domain not found: no domain with matching uuid
'60f24c80-aee7-8e21-a14f-0682b82b13e2'**
**(nova.rpc): TRACE: *

why it happened ?

Then I goto the instances dir, add
<uuid>60f24c80-aee7-8e21-a14f-0682b82b13e2<</uuid> to ***.xml
use "virsh create ***.xml" to create an vm, then I reboot again , it failed.

Otherwise , I use "virsh define ***.xml", then I reboot again, it
successfully.

I want to know is it  correct ?


-- 
非淡薄无以明志,非宁静无以致远