← Back to team overview

openstack team mailing list archive

Re: strange problem when reboot nova-compute node: domain not found: no domain with matching name

 

Ritesh,

 

I did a test:

I downloaded a qcow2 format ubuntu
12.04(http://docs.openstack.org/essex/openstack-compute/admin/content/starti
ng-images.html) and use it create a new instance.

Everything is fine,no any error information occurred.

But when I reboot compute node, the situation was same, and after run virsh
define again then to restart nova-compute, in the ubuntu12.04 instance
booting, it also gives out:

libvir: QEMU error : Domain not found: no domain with matching name
'instance-0000000c'

 

but finally, instance: 7f2050b7-b83b-4603-b7c2-3a6912188e9c] Instance
rebooted successfully, means this instance run normally and I also could ssh
it, same like others before.

So, it looks like no relation about images. I think perhaps something in
libvirt or qemu perhaps had potential problems.

 

The situation is:

 

If I only create one instance from ubuntu12.04 and run it in the first one,
anything run well, have no "libvirt:QEMU error,.." Information comes out; 

If I continue to boot instance from the centos(image created by me) or
fedora(downloaded from
http://docs.openstack.org/essex/openstack-compute/admin/content/starting-ima
ges.html) or windows image,it show me:

"libvirt:QEMU error,domain not found...",but instance would finally spawn
successfully and run well.

 

It looks like "libvirt:QEMU error,domain not found,." does not stop instance
running and working.

 

But, I did not know why reboot nova-compute node, /etc/libvirt/qemu would
delete the one of instances XML file and nova-compute would stop to
continue.

 

Romi

 

 

From: romi zhang [mailto:romizhang1968@xxxxxxx] 
Sent: Saturday, September 15, 2012 2:32 PM
To: 'Ritesh Nanda'
Cc: 'openstack@xxxxxxxxxxxxxxxxxxx'
Subject: RE: [Openstack] strange problem when reboot nova-compute node:
domain not found: no domain with matching name

 

Ritesh,

 

I will try your method.

 

In the past,when I boot a new instance from a ubuntu image,it works ok.
Centos and windows image was created by me according docs.openstack.org
information,and every time when a new instance created from centos and
windows,system always told me "Libvirt: QEMU error: Domain not found: no
domain with matching name,...", but finally, the instance works well.

 

So, I am not clear about the reason.

 

Thanks.

 

Romi

 

From: Ritesh Nanda [mailto:riteshnanda09@xxxxxxxxx] 
Sent: Friday, September 14, 2012 3:12 AM
To: romi zhang
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] strange problem when reboot nova-compute node:
domain not found: no domain with matching name

 

Hello romi,

    Image got into a stuck state , only solution is to hack your database
for this particular instance and mark it as deleted, den restart nova-*
service, it would start working.

On Thu, Sep 13, 2012 at 9:45 PM, romi zhang <romizhang1968@xxxxxxx> wrote:

Hi,

 

I've installed essex and when I reboot one of the nova-compute node and next
when I start nova-compute service again,the system promote:

Libvirt: QEMU error: Domain not found: no domain with matching name
'instance-0000000a'

 

Then I found:  

#ls /var/lib/nova/instances

_base instance-0000000a instance-0000000b instance-0000000c

#ls /etc/libvirt/qemu

instance-0000000b.xml instance-0000000c.xml Network

 

So:

/var/lib/nova/instances/instance-0000000a# virsh define libvirt.xml

Domain instance-0000000a defined from libvirt.xml

And:

#ls /etc/libvirt/qemu

Instance-0000000a.xml instance-0000000b.xml instance-0000000c.xml network

 

Then I restart: nova-compute &, and nova-compute could normally started.

I did not understand why reboot compute node,and usually the first
instance's xml file was deleted and nova-compute will terminate.

 

By the way, when I create a new instance, the first line in the log also is
: Libvirt: QEMU error: Domain not found: no domain with matching name
'instance-0000000a'

 

Anyone who had met such a problem and why?

 

Regards,

 

romi


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp




-- 

 With Regards  

 Ritesh Nanda

 

 

 


References