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.\

Or you want to say I need to pass uuid for new image in image_create() function? Never hear about such thing.

On 11/25/2016 12:48 PM, Ricardo Carrillo Cruz wrote:
That is expected.

The shade calls accept name_or_id param for a lot of methods for convenience. 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
shade cannot guess it.

2016-11-25 11:42 GMT+01:00 George Shuklin <george.shuk...@gmail.com <mailto:george.shuk...@gmail.com>>:

    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/
    <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
    <mailto:OpenStack-operators@lists.openstack.org>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
    <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators>

    _______________________________________________
    OpenStack-operators mailing list
    OpenStack-operators@lists.openstack.org
    <mailto:OpenStack-operators@lists.openstack.org>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
    <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