<div dir="ltr">OK Guys, I now have a working installation of KVM+Glance+OpenStack API (novatools), i will document that and will notify you.<br><br><div class="gmail_quote">On Thu, Feb 17, 2011 at 10:08 AM, Thierry Carrez <span dir="ltr"><<a href="mailto:thierry@openstack.org">thierry@openstack.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Ahmed El Gamil wrote:<br>
<br>
>     (nova.compute.manager): TRACE: Error: Unexpected error while running<br>
>     command.<br>
>     (nova.compute.manager): TRACE: Command: /usr/bin/curl --fail<br>
>     --silent http://<ip address>:3333/_images/2/image -H 'Date: Wed, 16<br>
>     Feb 2011 14:23:23 GMT' -H 'Authorization: AWS<br>
>     ba97af70-24cf-4054-9185-ecf925d71385:openstack:sIAZBh7GJ7dE8urnZhvwla7upgY='<br>
>     -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<br>
>     'instance-00000007'<br>
><br>
> ttx on IRC told me that it shouldn't fetch a :3333 URL, but that was<br>
> 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>
</div>Right, that URL (with :3333/_images) should not be hit if you run with<br>
--image_service=nova.image.glance.GlanceImageService, since we have the<br>
following code in nova/virt/images.py:<br>
<br>
def image_url(image):<br>
  if FLAGS.image_service == "nova.image.glance.GlanceImageService":<br>
    return "http://%s:%s/images/%s" % (FLAGS.glance_host,<br>
      FLAGS.glance_port, image)<br>
  return "http://%s:%s/_images/%s/image" % (FLAGS.s3_host,<br>
    FLAGS.s3_port, image)<br>
<br>
So there seems to be a local issue, either you don't run the above code<br>
(Bexar release), or the flag is not set properly. To debug this you<br>
could instrument the above code to trace the value of<br>
FLAGS.image_service. Something like adding before the first "if":<br>
<br>
LOG.debug("FLAGS.image_service is %s" % FLAGS.image_service)<br>
<br>
--<br>
Thierry Carrez (ttx)<br>
Release Manager, OpenStack<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>