<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hey Ahmed,
<div><br>
</div>
<div><br>
</div>
<div>TL;DR Glance doesn't appear to be supported with libvirt driver yet.</div>
<div><br>
</div>
<div>Judging by the stack trace, it looks like the code is taking an S3 code path even though you've selected the GlanceImageService.</div>
<div><br>
</div>
<div>Looking through the code, it doesn't appear that the libvirt/Glance code is there yet (the patch from the <span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; "><a href="https://bugs.launchpad.net/nova/+bug/708673" target="_blank">708673</a> doesn't
 appear to be enough).</span></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3"><br>
</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3">This should be logged as a bug. I don't *think* the fix will be that hard, we just need to modify images.fetch() to respect the image_service and to stream the data using the Glance client
 rather than curl. Until then, I think the objectstore or local-store will be your best bet.</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3"><br>
</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3">Hope that helps,</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3"><br>
</font></div>
<div><font class="Apple-style-span" face="'Times New Roman'" size="3">Rick<br>
</font>
<div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF201996" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> openstack-bounces+rick.harris=rackspace.com@lists.launchpad.net [openstack-bounces+rick.harris=rackspace.com@lists.launchpad.net] on behalf of Ahmed El
 Gamil [ahmed@manhag.org]<br>
<b>Sent:</b> Thursday, February 17, 2011 1:48 AM<br>
<b>To:</b> openstack@lists.launchpad.net<br>
<b>Subject:</b> Re: [Openstack] Glance, libvirt/kvm snapshots<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Guys,<br>
<br>
So The guys over at IRC convinced me that posting that to the mailing list would be cooler to solve/discuss, so don't let me down :).<br>
<br>
Basically i'm working on launching an instance via the openstack API, using the Bexar release and the python-novatools (the novatools command), The hypervisor is KVM and Glance is used for Imaging(image_service=nova.image.glance.GlanceImageService).<br>
<br>
After using the boot subcommand in novatools, the instance is marked as "build" and i get the following errors in the logs:<br>
<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
 2011-02-16 09:23:23,535 ERROR nova.compute.manager [F--YCJOZ14LY9LTFHYH1 c9er openstack] instance 7: Failed to spawn<br>
(nova.compute.manager): TRACE: Traceback (most recent call last):<br>
(nova.compute.manager): TRACE:   File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 211, in run_instance<br>
(nova.compute.manager): TRACE:     self.driver.spawn(instance_ref)<br>
(nova.compute.manager): TRACE:   File "/usr/lib/pymodules/python2.6/nova/exception.py", line 122, in _wrap<br>
(nova.compute.manager): TRACE:     raise Error(str(e))<br>
(nova.compute.manager): TRACE: Error: Unexpected error while running command.<br>
(nova.compute.manager): TRACE: Command: /usr/bin/curl --fail --silent http://<ip address>:3333/_images/2/image -H 'Date: Wed, 16 Feb 2011 14:23:23 GMT' -H 'Authorization: AWS ba97af70-24cf-4054-9185-ecf925d71385:openstack:sIAZBh7GJ7dE8urnZhvwla7upgY=' -o /var/lib/nova/instances/_base/2<br>
(nova.compute.manager): TRACE: Exit code: 22<br>
(nova.compute.manager): TRACE: Stdout: ''<br>
(nova.compute.manager): TRACE: Stderr: ''<br>
(nova.compute.manager): TRACE:<br>
libvir: QEMU error : Domain not found: no domain with matching name 'instance-00000007'<br>
</blockquote>
<div><br>
ttx on IRC told me that it shouldn't fetch a :3333 URL, but that was fixed in a bug at
<a href="https://bugs.launchpad.net/nova/+bug/708673" target="_blank">https://bugs.launchpad.net/nova/+bug/708673</a><br>
<br>
Any hints on what could cause that ? did anybody work with novatools against kvm/glance ?<br>
<br>
Thanks in advance.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<PRE>
Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace. 
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at abuse@rackspace.com, and delete the original message. 
Your cooperation is appreciated.
</PRE></body>
</html>