shade fails if see too duplicate images in account.

o = shade.OpenStackCloud(**creds)
o.create_image(name=’killme’, filename=’/tmp/random_junk’, disk_format=’qcow2', 
container_format=’bare’, wait=True)

|Traceback (most recent call last): ... File "/usr/lib/python2.7/dist-packages/shade/openstackcloud.py", line 2269, in create_image current_image = self.get_image(name) File "/usr/lib/python2.7/dist-packages/shade/openstackcloud.py", line 1703, in get_image return _utils._get_entity(self.search_images, name_or_id, filters) File "/usr/lib/python2.7/dist-packages/shade/_utils.py", line 143, in _get_entity "Multiple matches found for %s" % name_or_id) shade.exc.OpenStackCloudException: Multiple matches found for killme|



On 11/18/2016 12:20 AM, Clint Byrum wrote:
You may find the 'shade' library a straight forward choice:

http://docs.openstack.org/infra/shade/

Excerpts from George Shuklin's message of 2016-11-17 20:17:08 +0200:
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.

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to