<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Em... Sorry, I'm trying to create_image. And it traces on
      duplicate images during creation process, not while passing image
      name to some 'create instance' or 'delete image' functions.\</p>
    <p>Or you want to say I need to pass uuid for new image in
      image_create() function? Never hear about such thing.<br>
    </p>
    On 11/25/2016 12:48 PM, Ricardo Carrillo Cruz wrote:<br>
    <blockquote
cite="mid:CADe0dKCPF-At-0z+UZuqXftS8jNXrpRfPmCzxt1KdkKSyTN7QA@mail.gmail.com"
      type="cite">
      <div dir="ltr">That is expected.
        <div><br>
        </div>
        <div>The shade calls accept name_or_id param for a lot of
          methods for convenience.</div>
        <div>In your case, as there are multiple images with the same
          name you should pass the ID of the image you want to use,
          otherwise</div>
        <div>shade cannot guess it.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-11-25 11:42 GMT+01:00 George
          Shuklin <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:george.shuklin@gmail.com" target="_blank">george.shuklin@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="m_-3551686187211260521moz-cite-prefix">shade
                fails if see too duplicate images in account.<br>
                <br>
                <pre name="bb64" id="m_-3551686187211260521bb64" class="m_-3551686187211260521graf m_-3551686187211260521graf--pre m_-3551686187211260521graf-after--p">o = shade.OpenStackCloud(**creds)
o.create_image(name=’killme’, filename=’/tmp/random_junk’, disk_format=’qcow2', container_format=’bare’, wait=True)</pre>
                <pre name="54b3" id="m_-355168618721126052154b3" class="m_-3551686187211260521graf m_-3551686187211260521graf--pre m_-3551686187211260521graf-after--pre"><code class="m_-3551686187211260521markup--code m_-3551686187211260521markup--pre-code">Traceback (most recent call last):
 ...
  File "/usr/lib/python2.7/dist-<wbr>packages/shade/openstackcloud.<wbr>py", line 2269, in create_image
    current_image = self.get_image(name)
  File "/usr/lib/python2.7/dist-<wbr>packages/shade/openstackcloud.<wbr>py", line 1703, in get_image
    return _utils._get_entity(self.<wbr>search_images, name_or_id, filters)
  File "/usr/lib/python2.7/dist-<wbr>packages/shade/_utils.py", line 143, in _get_entity
    "Multiple matches found for %s" % name_or_id)
shade.exc.<wbr>OpenStackCloudException: Multiple matches found for killme</code></pre><div><div class="h5">
      

      

      On 11/18/2016 12:20 AM, Clint Byrum wrote:

    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <pre>You may find the 'shade' library a straight forward choice:

<a moz-do-not-send="true" class="m_-3551686187211260521moz-txt-link-freetext" href="http://docs.openstack.org/infra/shade/" target="_blank">http://docs.openstack.org/<wbr>infra/shade/</a>

Excerpts from George Shuklin's message of 2016-11-17 20:17:08 +0200:
</pre>
      <blockquote type="cite">
        <pre>Hello.

I can't find proper documentation about how to use openstack clients 
from inside python application. All I can find is just examples and 
rather abstract (autogenerated) reference. Is there any normal 
documentation about proper way to use openstack clients from python 
applications?


Thanks.

</pre>
      </blockquote>
      <pre>______________________________<wbr>_________________
OpenStack-operators mailing list
<a moz-do-not-send="true" class="m_-3551686187211260521moz-txt-link-abbreviated" href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.<wbr>openstack.org</a>
<a moz-do-not-send="true" class="m_-3551686187211260521moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a>
</pre>
    </blockquote>
    <p>

    </p>
  </div></div></div>


______________________________<wbr>_________________

OpenStack-operators mailing list

<a moz-do-not-send="true" href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a>

<a moz-do-not-send="true" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a>


</blockquote></div>
</div>



</blockquote>
</body></html>