<p dir="ltr">Oops, sorry, I assumed a create_server instance as that is where I usually encountered that message.<br>
( I never needed myself creating duplicate images, tho it is possible as mgagne pointed out)</p>
<div class="gmail_extra"><br><div class="gmail_quote">El 25 nov. 2016 21:17, "George Shuklin" <<a href="mailto:george.shuklin@gmail.com">george.shuklin@gmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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 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 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_2634556685913764152m_-3551686187211260521moz-cite-prefix">shade
fails if see too duplicate images in account.<br>
<br>
<pre name="bb64" id="m_2634556685913764152m_-3551686187211260521bb64" class="m_2634556685913764152m_-3551686187211260521graf m_2634556685913764152m_-3551686187211260521graf--pre m_2634556685913764152m_-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_2634556685913764152m_-355168618721126052154b3" class="m_2634556685913764152m_-3551686187211260521graf m_2634556685913764152m_-3551686187211260521graf--pre m_2634556685913764152m_-3551686187211260521graf-after--pre"><code class="m_2634556685913764152m_-3551686187211260521markup--code m_2634556685913764152m_-3551686187211260521markup--pre-code">Traceback (most recent call last):
...
File "/usr/lib/python2.7/dist-packa<wbr>ges/shade/openstackcloud.py", line 2269, in create_image
current_image = self.get_image(name)
File "/usr/lib/python2.7/dist-packa<wbr>ges/shade/openstackcloud.py", line 1703, in get_image
return _utils._get_entity(self.search<wbr>_images, name_or_id, filters)
File "/usr/lib/python2.7/dist-packa<wbr>ges/shade/_utils.py", line 143, in _get_entity
"Multiple matches found for %s" % name_or_id)
shade.exc.OpenStackCloudExcept<wbr>ion: Multiple matches found for killme</code></pre><div><div class="m_2634556685913764152h5">
On 11/18/2016 12:20 AM, Clint Byrum wrote:
</div></div></div><div><div class="m_2634556685913764152h5">
<blockquote type="cite">
<pre>You may find the 'shade' library a straight forward choice:
<a class="m_2634556685913764152m_-3551686187211260521moz-txt-link-freetext" href="http://docs.openstack.org/infra/shade/" target="_blank">http://docs.openstack.org/infr<wbr>a/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 class="m_2634556685913764152m_-3551686187211260521moz-txt-link-abbreviated" href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.open<wbr>stack.org</a>
<a class="m_2634556685913764152m_-3551686187211260521moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-operators</a>
</pre>
</blockquote>
<p>
</p>
</div></div></div>
______________________________<wbr>_________________
OpenStack-operators mailing list
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.open<wbr>stack.org</a>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-operators</a>
</blockquote></div>
</div>
</blockquote>
</div><br>______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a 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><br>
<br></blockquote></div></div>