openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #06698
Re: Nova is considering Xen Domain-0 as instance
As Daniel suggested, I just ignored the ID == 0 and it seems to work fine
now. The resulting code is even simpler than suggested by Vish:
def list_instances(self):
return [self._conn.lookupByID(x).name()
for x in self._conn.listDomainsID()
if x != 0]
this is more of a design decision. So is this the correct approach to
correct this bug or for the record it should be done in another way?
Em 12 de janeiro de 2012 19:55, Daniel P. Berrange
<berrange@xxxxxxxxxx>escreveu:
> On Thu, Jan 12, 2012 at 07:36:59PM -0200, Rogério Vinhal Nunes wrote:
> > I really need some help in getting this to work. This seems pretty
> simple,
> > just tell nova-compute to ignore any instance named Domain-0 (actually it
> > could ignore any instance not named 'instance-XXXXXXXX'). As there is a
> > libvirt type to connect to xen, it is in openstack interest to fix this.
> As
> > I did make it work with a flawed old libvirt in Ubuntu 10.04, this seems
> > close to working.
>
> To be generally applicable to any libvirt driver, you should check for
> domain ID == 0. Libvirt reserves the domain ID 0, to refer to the VM
> representing the host OS, if any. This is why all LXC/KVM guests start
> from number 1 instead.
>
> Regards,
> Daniel
> --
> |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/:|
> |: http://libvirt.org -o- http://virt-manager.org:|
> |: http://autobuild.org -o- http://search.cpan.org/~danberr/:|
> |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:|
>
Follow ups
References